QA/Telemetry/BrowserConsoleCommands: Difference between revisions

Jump to navigation Jump to search
Line 42: Line 42:


* '''Run Maintenance Task'''
* '''Run Maintenance Task'''
** 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");
Line 48: Line 48:


* '''Crash Firefox'''
* '''Crash Firefox'''
** force firefox to crash through the browser console
** force Firefox to crash through the browser console


  Cu.import("resource://gre/modules/ctypes.jsm");
  Cu.import("resource://gre/modules/ctypes.jsm");
Line 54: Line 54:
  let badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
  let badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
  badptr.contents;
  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