Make the source ID in debugger frontend unique per URL and per target
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox87 fixed)
| Tracking | Status | |
|---|---|---|
| firefox87 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(3 files, 1 obsolete file)
makeSourceId is written as if only service worker were the only one distinct thread/target debugged by the debugger frontend:
https://searchfox.org/mozilla-central/rev/4e290edc65023e16f5fe7d12f84d3b629433c7ab/devtools/client/debugger/src/client/firefox/create.js#80-89
This may cause troubles in the browser toolbox, if the same URL appear in both parent and content process. I have no idea how much troubles it can cause.
It would probably show the URL only once instead of once per target.
But I don't know if that can also mess up with breakpoints??
| Assignee | ||
Comment 1•5 years ago
|
||
This code was designed for when the debugger was only supporting service workers as additional target.
Now that we can have many: regular workers, content process, addons...
We should ensure that each target type gets its own source set.
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
| Assignee | ||
Comment 3•5 years ago
|
||
I think we were only trying to assert the URL of the selected source. That's what I'm doing here.
Using findSource, which picks the first matching source by URL breaks
the support of the debugger with many targets.
With many targets, the debugger will start spawning one source per URL, per target.
Leading to many sources with the same URL.
| Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e0dd5c6ff61c
https://hg.mozilla.org/mozilla-central/rev/1785e6308186
https://hg.mozilla.org/mozilla-central/rev/eba8fe38d149
Description
•