mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
8be561cece
Previously, when creating a new WebConsoleActor, we were also creating a new Debugger instance. The problem was that we would never call `enable` on it, which is what allows to create debuggee for all existing globals, and for the ones that will be created after. This means that we had multiple workaround to get a global debuggee, and in the case of function, would add a global as a debuggee only to get its script location. This patch remove the creation of the new Debugger, and retrieve the parent actor Debugger instance instead. This shuffles things around a bit, are the Debugger instance was created by the ThreadActor, but is now by the target actor (BrowsingContext, ContentProcess, ...). We can then remove the now unused `getGlobalDebugObject` hooks we were using in the Function previewer, as we get a proper Debugger object, with the script location. Differential Revision: https://phabricator.services.mozilla.com/D44480 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
content-process.js | ||
content-process.jsm | ||
frame.js | ||
moz.build | ||
worker.js |