зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
actors | ||
connectors | ||
performance | ||
performance-new | ||
socket | ||
startup | ||
tests | ||
debugger-server-connection.js | ||
debugger-server.js | ||
moz.build |