Closed Bug 1829607 Opened 1 year ago Closed 1 year ago

Internal exception is shown instead of a clear network error request when original file fails loading

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:
https://www.reddit.com/r/Ubuntu/comments/np8awb/is_wayland_fractional_scalling_broken_in_ubuntu/

  • open the debugger on this page
  • click from the console on any log coming from a typescript file

You will see a message like this in CodeMirror instead of a clear, actually meaningful message to the user:

Impossible de récupérer la source d’origine : can't assign to property "metadata" on "unsupported protocol for sourcemap request webpack:///client/src/lib/printObjectToConsole/index.ts": not an object
URL de la source : <unknown>

The issue here is that we aren't able to retrieve webpack:///client/src/lib/printObjectToConsole/index.ts from network (and source map doesn't inline this source content)

networkEvent was throwing string exception, which were poorly handled.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d7c012ed58a [devtools] Fix exception message when original file failed loading. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
QA Whiteboard: [qa-114b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: