Closed Bug 1617531 Opened 5 years ago Closed 5 years ago

Pretty-print button is not always displayed for minified javascript files in Firefox Developer Edition 74.0b (64-bit)

Categories

(DevTools :: Debugger, defect, P3)

74 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1555307

People

(Reporter: mozilla-bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Debugger
Product: Firefox → DevTools

The priority flag is not set for this bug.
:jlast, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jlaster)

I can easily reproduce the bug using STRs from comment #0

Honza

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Priority: -- → P3

(clearing ni)

Flags: needinfo?(jlaster)

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.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: