QA/Telemetry/BrowserConsoleCommands: Difference between revisions

Jump to navigation Jump to search
Line 36: Line 36:
** force firefox to run the maintenance task
** force firefox to run the maintenance task


<pre>
Cu.import("resource://gre/modules/CrashManager.jsm");
Cu.import("resource://gre/modules/CrashManager.jsm");
CrashManager.Singleton.runMaintenanceTasks();
CrashManager.Singleton.runMaintenanceTasks();
 
</pre>
* '''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();
Confirmed users
924

edits

Navigation menu