Confirmed users
924
edits
| Line 36: | Line 36: | ||
** force firefox to run the maintenance task | ** force firefox to run the maintenance task | ||
Cu.import("resource://gre/modules/CrashManager.jsm"); | |||
Cu.import("resource://gre/modules/CrashManager.jsm"); | CrashManager.Singleton.runMaintenanceTasks(); | ||
CrashManager.Singleton.runMaintenanceTasks(); | |||
* '''Crash Firefox''' | |||
** force firefox to crash through the browser console | |||
Cu.import("resource://gre/modules/ctypes.jsm"); | |||
let zero = new ctypes.intptr_t(8); | |||
let badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t)); | |||
badptr.contents; | |||
* '''Run Maintenance Task''' | |||
** run the maintenance task on the crash manager | |||
Cu.import("resource://gre/modules/CrashManager.jsm"); | |||
CrashManager.Singleton.runMaintenanceTasks(); | |||