From 36fd4f01e4bebf9b7dfe00b7bfbded8834c4739b Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Tue, 2 Feb 2021 19:08:22 +0000 Subject: [PATCH] Bug 1686950 - [devtools] RDM should stop watching resources and targets after performing cleanup r=nchevobbe Depends on D103325 When we stop watching for resources, if there are no other watchers currently in activity, we will unregister the JSWindowActors, with following stack: ``` unregisterJSWindowActor@resource://devtools/server/actors/watcher/WatcherRegistry.jsm:344:17 maybeUnregisteringJSWindowActor@resource://devtools/server/actors/watcher/WatcherRegistry.jsm:280:7 unwatchTargets@resource://devtools/server/actors/watcher.js:199:21 handler@resource://devtools/shared/protocol/Actor.js:172:37 onPacket@resource://devtools/server/devtools-server-connection.js:379:58 send/<@resource://devtools/shared/transport/local-transport.js:68:25 exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:103:22 DevToolsUtils.executeSoon*exports.executeSoon@resource://devtools/shared/DevToolsUtils.js:54:21 send@resource://devtools/shared/transport/local-transport.js:56:21 send@resource://devtools/shared/protocol/Front.js:272:30 generateRequestMethods/