Support startLine, startColumn, endLine, and endColumn query parameters in `Debugger.findScripts`
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: arai, Assigned: bthrall)
References
(Blocks 3 open bugs)
Details
Attachments
(9 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
SourceActor._findDebuggeeScripts in DevTools performs the following:
findScriptsto list all scripts for given source- filter out all non-outer-most scripts
- traverse all child scripts and find scripts that matches given line and column
this is almost what findScripts itself provides with query, except that it only supports single line.
Adding start/end line/column query parameters can replace the !forBreakpointPositions case of _findDebuggeeScripts.
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
It's simpler to require that 'start' and 'end' be both present than to define
what happens when only one or the other is present. Based on current DevTools
usage, this should be fine.
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
In the check for the 'line' property, 'lineEnd' needs to be set to 'line'
because 'line' is implemented as 'start.line' and 'end.line' having the same
value.
| Assignee | ||
Comment 4•1 year ago
|
||
To improve readability of parseQuery()
| Assignee | ||
Comment 5•1 year ago
|
||
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 7•1 year ago
|
||
| Assignee | ||
Comment 8•1 year ago
|
||
| Assignee | ||
Comment 9•1 year ago
|
||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6e4673119a7b
https://hg.mozilla.org/mozilla-central/rev/8cc4773cf657
https://hg.mozilla.org/mozilla-central/rev/004ee290b7a5
https://hg.mozilla.org/mozilla-central/rev/4c97b411c7bf
https://hg.mozilla.org/mozilla-central/rev/897f9534b4b6
https://hg.mozilla.org/mozilla-central/rev/4dd56efa4143
https://hg.mozilla.org/mozilla-central/rev/b0727ea04c48
https://hg.mozilla.org/mozilla-central/rev/80e2abc3001d
https://hg.mozilla.org/mozilla-central/rev/f120ce31576f
Description
•