Closed
Bug 1361271
Opened 8 years ago
Closed 2 years ago
pretty-print of file not available when sourceMappingURL comment exists
Categories
(DevTools :: Debugger, enhancement, P5)
Tracking
(firefox108 fixed)
RESOLVED
FIXED
108 Branch
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: karlcow, Assigned: bomsy)
References
(Blocks 3 open bugs, )
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Firefox Nightly 55.0a1 (2017-04-27) (64-bit)
1. Go to https://queso-cdn.prod.reuters.tv/index.html?autoplay=true&muted=true&countdown=true&preroll=true&proll=iuuq%3A%2F%2Fqvcbet.h.epvcmfdmjdl.ofu%2Fhbnqbe%2Fbet%3Fta%3D3y3%26jv%3D%2F4735792%2Fwjefp.vt.sfvufst%2Fxpsme%2Fbsujdmf%26djv_tat%3D300y250%2C1500y692%26dvtu_qbsbnt%3DwjefpDiboofm%253E13421%252D13976%252D13978%252D14073%252D1003%252D118169%2526wjefpJe%253E371551279%2526uzqf%253Ebsujdmf_qsfspmm%2526begsjfoemz%253Eusvf%26jnqm%3Dt%26hegq_sfr%3D1%26fow%3Dwq%26pvuqvu%3Dynm_wbtu3%26vowjfxfe_qptjujpo_tubsu%3D1%26dpssfmbups%3D8499280988809153%26vsm%3Diuuq%3A%2F%2Fvt.sfvufst.dpn%26eftdsjqujpo_vsm%3Diuuq%253B%252G%252Gxxx.sfvufst.dpn%252Gbsujdmf%252Gvt-hfsnboz-vtb-usvnq-jwbolb-jeVTLCO17S0A8&poster=http%3A%2F%2Fs1.reutersmedia.net%2Fresources%2Fr%2F%3Fd%3D20170425%26i%3D128192763%26w%3D780%26r%3D128192763-10_0%26t%3D2&mid=128192763&title=VERBATIM%3A%20Ivanka%20Trump%20hears%20groans%20at%20women%27s%20summit&suppress_ads=false&suppress_rtv=false&source=http%3A%2F%2Fwww.reuters.com%2Farticle%2Fus-germany-usa-trump-ivanka-idUSKBN17R0Z8&chartbeat_uid=52639&chartbeat_domain=preview.reuters.com®ion=US&draggable=false&hide_title=false&correlator=8499280988809153
2. Open the Debugger.
3. find https://queso-cdn.prod.reuters.tv/assets/embedded.bundle.js
4. The script appears
but then
* no options to unminify it.
* no way to set a sensible breaking point.
Comment 1•8 years ago
|
||
Filed this here: https://github.com/devtools-html/debugger.html/issues/2782
Comment 2•8 years ago
|
||
For now you should be able to right click on the tab and choose Pretty Print Source.
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Blocks: devtools-webcompat-team
Updated•6 years ago
|
Summary: unminification of script not available → unminification of script not available when sourceMappingURL comment exists
Updated•6 years ago
|
Updated•4 years ago
|
Blocks: dbg-prettyprint
Summary: unminification of script not available when sourceMappingURL comment exists → pretty-print of file not available when sourceMappingURL comment exists
Assignee | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
We want to
- enable pretty printing when source mapped files are unavailable, even if there is a sourceMappingURL
- potentially keep the option to prettify minified & sourcemapped files, but only in the context menu and with a warning
Reason for the second item is that combining pretty printing and sourcemaps might confuse the debugger.
Comment 8•2 years ago
|
||
The following check should probably also check if an original source is actually available:
https://searchfox.org/mozilla-central/rev/fa81b64fc1a339e2b2b1f6a8637a689916e13c4e/devtools/client/debugger/src/selectors/sources.js#194
(prefs.clientSourceMapsEnabled && isSourceWithMap(state, id))
If it isn't available, we would consider that sourcemap isn't available for this minified file and allow to pretty print.
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 9•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → hmanilla
Attachment #9298169 -
Attachment description: Bug 1361271 - [devtools] Show pretty-print icon for minified files with sourceMappingURL [WIP] → Bug 1361271 - [devtools] Fix pretty-printing on sourcemapped sources r=ochameau
Status: NEW → ASSIGNED
Comment 10•2 years ago
|
||
Pushed by hmanilla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a40d18af9277
[devtools] Fix pretty-printing on sourcemapped sources r=ochameau,flod
Comment 11•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox108:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•