Closed Bug 1940024 Opened 1 month ago Closed 1 month ago

links to js with syntax errors go to view-source: instead of debugger

Categories

(DevTools :: Debugger, enhancement)

Firefox 134
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1846116

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:

  1. go to https://ewnjtgouierg.github.io/ffbugs/SyntaxError.html
  2. open console
  3. 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

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.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Component: JavaScript Engine → Debugger
Product: Core → DevTools

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

Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1846116
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.