Closed Bug 1669353 Opened 4 years ago Closed 4 years ago

Stop using ProcessDescriptor.getTarget / process target from about:debugging

Categories

(DevTools :: about:debugging, enhancement)

enhancement

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files)

While looking into bug 1620248, I was wondering if we were still trying to instantiate process targets outside of the legacy listeners.
We do, at least from about:debugging, over here:
https://searchfox.org/mozilla-central/source/devtools/client/aboutdebugging/src/actions/debug-targets.js#263
but this isn't really justified. We probably tweaked this code a couple of time when migration to descriptors.

Assignee: nobody → poirot.alex

We can let about:devtools-toolbox instantiate it, as we do for most other target types.

Depends on D92499
Tweak an existing mock in the main process about:debugging test to check that we are not creating any target.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7952069faaaf [devtools] Remove unused processId attribute from about:debugging on process targets. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/3281394da09e [devtools] Stop instantiating main process target front from about:debugging. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/ff1750ffbc4d [devtools] Tweak about:debugging main process test to check no target is created r=ochameau
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: