links to js with syntax errors go to view-source: instead of debugger
Categories
(DevTools :: Debugger, enhancement)
Tracking
(Not tracked)
People
(Reporter: support, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Steps to reproduce:
- go to https://ewnjtgouierg.github.io/ffbugs/SyntaxError.html
- open console
- click on the syntax error link
Actual results:
a new tab with view-source:https://ewnjtgouierg.github.io/ffbugs/SyntaxError.html is open
Expected results:
ideally, source code should open in devtools Debugger tab editor, as with run-time exceptions
perhaps Debugger is not compatible with not fully parsed source code?
whatever optimization was the reason for this implementation the result is inconvenience / inconsistency as source code sometimes is opened in completely different place / style
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 month ago
|
Comment 2•1 month ago
|
||
Thanks for the report jaborandi. This looks like Bug 1846116: when there's a SyntaxError, the file stopped being parsed and DevTools don't get a "source" for the script, so we default to view-source. We could probably do something a bit more user-friendly
Description
•