Open Bug 1644432 Opened 5 years ago Updated 5 years ago

Try to reuse Toolbox's target instead of spawning a new one

Categories

(WebExtensions :: Developer Tools, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

Details

Bug 1626494's review:
https://phabricator.services.mozilla.com/D67438?id=288314#inline-449686
highlighted that we might actually not have to spawn a duplicated target for WebExtension.
It looks like WebExtension code related to DevTools always run while a Toolbox is opened and so could probably just reused its existing Target/TargetList/ResourceWatcher.
The main reason to use a distinct Target would be if WebExtension and Toolbox were having distinct lifecycle. For example, if WebExtension was still running after the toolbox get closed. Or if WebExtension code runs before the toolbox get opened. But it doesn't seem to be the case.

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.