gecko-dev/devtools/server
Nicolas Chevobbe 8be561cece Bug 1577798 - Don't create a new Debugger instance in WebConsoleActor. r=ochameau,jlast.
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
2019-09-16 12:12:22 +00:00
..
actors Bug 1577798 - Don't create a new Debugger instance in WebConsoleActor. r=ochameau,jlast. 2019-09-16 12:12:22 +00:00
connectors Bug 1577092 - Change devtools server connectors to expose connectTo functions r=nchevobbe 2019-08-28 13:07:40 +00:00
performance Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed (part 1). r=jimb 2019-07-16 00:56:19 +00:00
performance-new Bug 1575682 - Bridge the perf actor so that it can be reused with the popup r=julienw 2019-09-04 20:05:18 +00:00
socket Bug 1561435 - Format devtools/server/, a=automatic-formatting 2019-07-05 11:26:00 +02:00
startup Bug 1577798 - Don't create a new Debugger instance in WebConsoleActor. r=ochameau,jlast. 2019-09-16 12:12:22 +00:00
tests Bug 1577798 - Don't create a new Debugger instance in WebConsoleActor. r=ochameau,jlast. 2019-09-16 12:12:22 +00:00
debugger-server-connection.js Bug 1452920 - Clean up WebConsoleActor events and responses. r=nchevobbe 2019-08-19 06:57:42 +00:00
debugger-server.js Bug 1577092 - Remove connectTo* helpers in debugger-server and use connectors directly r=nchevobbe 2019-08-28 13:07:56 +00:00
moz.build Bug 1575682 - Bridge the perf actor so that it can be reused with the popup r=julienw 2019-09-04 20:05:18 +00:00