Open Bug 1792683 Opened 3 years ago Updated 2 months ago

Allow loading JSWindow Actors in the new module loader dedicated to DevTools

Categories

(DevTools :: Framework, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

Details

Bug 1790383 introduces a new Module Loader instance which is dedicated to DevTools.
This is only used by the Browser Toolbox in order to be able to debug the privileged scope.
Having a dedicated global alongside a dedicated module loader allows to debug all the JSMs and ES Modules without any side effect. Without pausing in the modules used by the browser toolbox itself. Without using the same state of the existing modules, by spawning brand new modules instances.

But this work did'nt apply to JSWindow actor modules. These modules can only be loaded in the shared JSM global and module loader.
This means that any breakpoint set in the code will pause, even if the code runs in the context of the browser toolbox.

We would benefit from introducing some flags to load some JSWindow Actors in the DevTools module loader. Then, only the browser toolbox would use this flag.

The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Framework
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.