Pretty-print button is not always displayed for minified javascript files in Firefox Developer Edition 74.0b (64-bit)
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: mozilla-bugzilla, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
145.90 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
Open the following webpage in Firefox Developer Edition 74.0b6 (64-bit) on Windows 10:
https://ec.europa.eu/programmes/erasmus-plus/projects/eplus-project-details/#project/2018-1-AT01-KA116-038883
Press F12 and go to the Debugger tab.
In the Sources tree, expand the following path: ec.europa.eu -> programmes -> valor/dist -> then double-click to open the file erasmus-plus-5.9.0-prod-drupal.min.js
Actual results:
The file erasmus-plus-5.9.0-prod-drupal.min.js is opened in the Source debugger, but the "Pretty-print" button is not visible, even though this is a minified javascript file. Only the "Blackbox source" button is visible.
Expected results:
The "Pretty-print" button ({}) should also be visible, to allow me to expand the minified file, as available for other files on other websites.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
The priority flag is not set for this bug.
:jlast, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•5 years ago
|
||
I can easily reproduce the bug using STRs from comment #0
Honza
Comment 5•5 years ago
|
||
Looking at this briefly, I see the file ends with //# sourceMappingURL=erasmus-plus-5.9.4-prod-drupal.min.js.map
and the following is returning true
:
prefs.clientSourceMapsEnabled && isSourceWithMap(state, id)
Thus our canPrettyPrintSource
is returning false
and we don't show the icon.
Comment 6•5 years ago
|
||
Duplicate of bug 1555307, same root cause: https://bugzilla.mozilla.org/show_bug.cgi?id=1555307#c2
Description
•