Add descriptor metaclass for the process target type
Categories
(DevTools :: Framework, task, P1)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: yulia, Assigned: yulia)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission-m1)
Attachments
(3 files)
process, we need to open a connection to it. If we create a list of targets without care, we could suffer a performance hit, since every target requires that we spin up a server in its dedicated process, along with a loader, and all of its associated actors -- when all we want is potentially the URL -- or to just know that it exists. Spinning up all targets at once is almost never necessary, usually we want a list of metadata from the targets so we can iterate over them (for example the about:debugging panel does this). We need an api that allows us to work with listing and selecting targets safely.
This is a first pass at this idea, which will implement a metaclass for processes, which is the only target type that is not represented by a proxy, but by a json object.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
WIP for metaclass concept
The best place to start is the test, it outlines what the API looks like.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Backed out 2 changesets (bug 1566450) for causing browser_aboutdebugging_process_main_local.js to perma fail
backout: https://hg.mozilla.org/integration/autoland/rev/a68fa605c6a45bcf94df9e00fdf8169304602c9f
Assignee | ||
Comment 5•5 years ago
|
||
I am looking into this but it is trickier than I thought. It looks to be due to the destruction order of targets, specifically -- the process target doesn't unmanage itself when destroyed. Not sure how that is happening.
Will keep looking
Assignee | ||
Comment 6•5 years ago
|
||
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e603094e855a
https://hg.mozilla.org/mozilla-central/rev/4c1d22f89c09
https://hg.mozilla.org/mozilla-central/rev/8edf73d4926a
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•3 years ago
|
Description
•