The SourceMapURLService should use actor ID as often as possible
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: loganfsmyth, Assigned: loganfsmyth)
References
(Blocks 1 open bug)
Details
Attachments
(8 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
Bug 1642371 - Part 6: Expose the original position as an object for simpler arg processing. r=jlast!
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
The source map url service allows parts of the codebase to subscribe to get notifications when the filename/line/column of a particular location changes. This happens when a sourcemap loads and causes the location to change from an original to generated location. It also happens if the pref is toggled off because then all of the sourcemap-based locations need to be cleared.
Unfortunately, right now many places that subscribe to these notifications do so using the url of the generated source file instead of the actor ID, which means that if the same file gets loaded multiple times, or an original source file shares the same URL as the generated source file, the debugger cannot know which file it is being asked to open.
Making this work fully for JavaScript files is going to be blocked on https://bugzilla.mozilla.org/show_bug.cgi?id=1641121, but for now, we can at least get the URL service updated to support IDs, and get the CSS viewer/editor panes updated to use IDs, since they all work directly work stylesheet actors and are guaranteed to know the actor IDs, so that's what this issue will focus primarily on as an end goal, though I'll get as much of this done for JS files as I can.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D77737
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D77738
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D77739
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D77740
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D77741
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D77742
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D77743
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a3e4d6f3ed54
https://hg.mozilla.org/mozilla-central/rev/0b2da4c0f24e
https://hg.mozilla.org/mozilla-central/rev/dc664b97bfa8
https://hg.mozilla.org/mozilla-central/rev/75d20dce12de
https://hg.mozilla.org/mozilla-central/rev/35154fa9ea39
https://hg.mozilla.org/mozilla-central/rev/06d0c56d7a02
https://hg.mozilla.org/mozilla-central/rev/0d02eb26dbca
https://hg.mozilla.org/mozilla-central/rev/802ae8321efb
Description
•