Closed
Bug 1825208
Opened 2 years ago
Closed 2 years ago
pretty printing HTML file with script on first line does not work
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(firefox113 fixed)
RESOLVED
FIXED
113 Branch
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
(Whiteboard: [devtools:relnote])
Attachments
(1 file)
Steps to reproduce
- Navigate to
data:text/html,<meta charset=utf8><script>{"use strict"; globalThis.foo = function() {}}</script>
- Open debugger
- Select the data url source
- Click the pretty print button
Expected results
The inline script gets pretty printed
Actual results
There's an error
Assignee | ||
Comment 1•2 years ago
|
||
If a <script>
is on the first line of the HTML file, we were miscalculating
its position in the HTML file because there is not previous line breaks.
A test case is added to fix this.
Depends on D173660
Updated•2 years ago
|
Severity: -- → S3
status-firefox111:
--- → fixed
status-firefox112:
--- → fixed
status-firefox113:
--- → fixed
status-firefox-esr102:
--- → fixed
Priority: -- → P2
Updated•2 years ago
|
status-firefox111:
fixed → ---
status-firefox112:
fixed → ---
status-firefox113:
fixed → ---
status-firefox-esr102:
fixed → ---
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/56a150341644
[devtools] Fix pretty printing inline script on first line. r=devtools-reviewers,ochameau.
Comment 3•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox113:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Updated•2 years ago
|
Whiteboard: [devtools:relnote]
You need to log in
before you can comment on or make changes to this bug.
Description
•