Open Bug 1327705 Opened 7 years ago Updated 11 months ago

Debugger can't prettify scripts from sourcemap


(DevTools :: Debugger, defect, P3)



(Not tracked)


(Reporter: arni2033, Unassigned)


(Blocks 2 open bugs)



(1 file)

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
1. Open the following "data:" url:
data:text/html,<script src=""></script>

2. Open debugger
3. Prettify script "jquery.js" (sic)

1. Download and extract attached "testcase 1" in a folder with a short full name
2. Open .html file
3. Open debugger
4. Prettify script "jquery.js" (sic)

AR:  Prettify button switches to "enabled" state, but nothing happens with the script

ER:  Either X or Y
 X) Script should be prettified
 Y) Prettify button should be in "enabled" state and also disabled. That's the only logical option if
    Firefox developers don't admit admit the possibility that script from sourcemap isn't prettified
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Canvas Debugger
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Blocks: source-maps
Product: Firefox → DevTools
Priority: -- → P3
Severity: normal → S3

This is a known issue as pretty-print does generate its own sourcemap, we would have to somehow juggle the original sourcemap and the one from pretty-print, which would be quite complex
Or, pretty-print could accept the sourcemap original mapping and alter it somehow (sounds complex too)

You need to log in before you can comment on or make changes to this bug.