Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 1 user
Status: WontFix
Owner:
Email to this user bounced
Closed: Oct 2012
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment
Source map data URI does not load original sources
Reported by culda.ri...@gmail.com, Jun 20 2012 Back to list
Chrome Version       : 21.0.1171.0 (Developer Build 141382)
URLs (if applicable) : http://gfx.github.com/source-map-inspector/try-source-map-x.html
Other browsers tested: none

What steps will reproduce the problem?
1. Encode a source map in base64 and include a //@ sourceMappingURL=data:......
2. Open devtools console, look in sources

What is the expected result?
Original source file should show up in the sources tab.


What happens instead?
Original source file shows up in the list of files, but is not fetched (it shows up as an empty file), even though it is present on the server.

Note: The referenced URL was actually part of  Issue 12621 , but this issue involved chrome trying to load the data URI, which was resolved. Unfortunately that test case should now work and still does not. The original source file (which, incidently, should be relative to the document URL according to the source map spec) appears to be empty, although the file is available.
 
Comment 1 by tkent@chromium.org, Jun 22 2012
Labels: Feature-DevTools
Comment 2 by vsevik@chromium.org, Oct 11 2012
Owner: podivilov@chromium.org
Status: Assigned
Status: WontFix
Source urls are relative to source map url. In your case source map url is data url, so you need to either provide absolute path or add 'sourceRoot' field to source map.
"sources": ["/source-map-inspector/foo.js"] should work as well.
Project Member Comment 4 by bugdroid1@chromium.org, Mar 11 2013
Labels: -Area-Undefined -Feature-DevTools Cr-Platform-DevTools
Sign in to add a comment