Closed Bug 1383704 Opened 8 years ago Closed 8 years ago

DevTools Pretty Print doesnt work

Categories

(DevTools :: Debugger, defect)

56 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: maggus.staab, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20170723030206 Steps to reproduce: for some reason, Firefox (and also Chrome62) are not able to pretty-print this minified JS file http://www.moxiemanager.com/moxiemanager/js/moxman.api.min.js STR - open the above url - open dev tools - select the file in the source panel - click "{ }" the prettify button Actual results: the "prettyfied" file was somehow reformatted but it is still not readable for a human Expected results: a human readable file, at least with some basic formatting which show functions, blocks etc.
Component: Untriaged → Developer Tools: Debugger
to add for my STR: you need to open http://www.moxiemanager.com/demos/ which then loads http://www.moxiemanager.com/moxiemanager/js/moxman.api.min.js (the above mentioned JS script))
Component: Developer Tools: Debugger → Developer Tools: Source Editor
Component: Developer Tools: Source Editor → Developer Tools: Debugger
pretty printing worked for me. Perhaps it's because we updated the pretty print library recently... https://shipusercontent.com/414f9b1afd92febc73f54d86363051b4/Screen%20Shot%202017-09-29%20at%2012.06.13%20AM.png
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
confirmed, seemed to be fixed on nightly 58.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.