gecko-dev/devtools/startup
Nick Alexander d917365044 Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes
Background task mode is roughly equivalent to `xpcshell`, but inside
the regular browser startup flow.  There is no browser window (no
`Window` at all) and there should be no content processes.  It's
sufficient to treat it like `xpcshell`, with its own stripped-down
actor and a few tweaks to the integration points.

The structural changes in this commit keep `--backgroundtask` mode
slim in the regular case when the Devtools are *not* requested.  This
is reflected in the small changes needed to the
`browser_xpcom_graph_wait.js` test: loading the Devtools
unconditionally causes a huge amount of code to be loaded.  In order
to load the Devtools framework conditionally, we check for
Devtools-specific command line flags and delegate to Devtools when
appropriate.  In order to check the command line flags, we turn the
`BackgroundTasksManager` into an XPCOM service, which allows it to be
instantiated by XPCOM in order to handle the command line.

One final note: this leaves two XPCOM components, "backgroundtasks"
and "backgroundtasksmanager".  Why not combine them?  This is
technically possible but not attractive: we really do want a natural
place for native/C++ code ("backgroundtasks") and JavaScript code
("backgroundtasksmanager").

Differential Revision: https://phabricator.services.mozilla.com/D129771
2022-03-03 03:38:39 +00:00
..
aboutdevtools Bug 1753426 - [devtools] Fix documentation links in the source code r=jdescottes 2022-02-07 13:08:10 +00:00
locales Bug 1733496 - Migrate key-shortcuts.properties to Fluent. r=jdescottes,fluent-reviewers 2021-11-18 16:40:03 +00:00
tests Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau 2021-11-17 12:43:26 +00:00
AboutDebuggingRegistration.jsm Bug 1567443 - Added flag for indicating secure Chrome UI in nsIAboutModule. r=pbz,webcompat-reviewers,twisniewski 2021-10-26 13:32:31 +00:00
AboutDevToolsToolboxRegistration.jsm Bug 1559181 - Switch about blocking to use new REJECT_POLICY and cleanup tests r=Gijs 2020-10-22 19:36:52 +00:00
DevToolsShim.jsm Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau 2021-11-17 12:43:26 +00:00
DevToolsStartup.jsm Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes 2022-03-03 03:38:39 +00:00
components.conf
enableDevToolsPopup.inc.xhtml
jar.mn
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00