Alexandre Poirot caec8eadf9 Bug 2044741 - [devtools] Delay devtools JSProcess actor unregistration. r=devtools-reviewers,nchevobbe
Avoid unregistering the JS Process actor ASAP on DevTools closing
as it may throw many exception if any RDP Request or JSProcess Actor
query is still pending after the devtools closing.

It required some tweaks in the parent process as WatcherActor.conn
may now be null because of shifted executions and we weren't correctly
unregistering it because of lack of `connectionPrefix`.

As well as some tweaks around `sharedData` to force persisting it across
processes, otherwise the content process may still hold now destroyed
watcher actor sessionData and keep instantiating actor.

Last, but not least, because there is some shift in precise execution
timings, I had to tweak docshell DOM event listeners as we may leave
listeners on docshell's window object when the cleanup method
is call after the docshell starts being destroyed and docshell.domWindow
is already null.

Differential Revision: https://phabricator.services.mozilla.com/D306953
2026-07-15 08:33:48 +00:00

Firefox Browser

Firefox is a fast, reliable and private web browser from the non-profit Mozilla organization.

Contributing

To learn how to contribute to Firefox read the Firefox Contributors' Quick Reference document.

We use bugzilla.mozilla.org as our issue tracker, please file bugs there.

Resources

If you have a question about developing Firefox, and can't find the solution on Firefox Source Docs, you can try asking your question on Matrix at chat.mozilla.org in the Introduction channel.

S
Description
No description provided
Readme
5.6 GiB
Languages
JavaScript 32.8%
C++ 23.6%
HTML 21.5%
C 10.4%
Kotlin 3.5%
Other 7.8%