Bug 81248

Summary: Web Inspector: support inline source maps.
Product: WebKit Reporter: Pavel Podivilov <podivilov>
Component: Web Inspector (Deprecated)Assignee: Pavel Podivilov <podivilov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

Pavel Podivilov
Reported 2012-03-15 11:42:31 PDT
Web Inspector: support inline source maps. * support optional map.sourcesContent array with sources content * support data: url as script sourceMapURL, e.g. "//@ sourceMappingURL=data:application/json;base64,<base64-encoded map>"
Attachments
Patch (6.88 KB, patch)
2012-03-15 11:44 PDT, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2012-03-15 11:44:32 PDT
Pavel Podivilov
Comment 2 2012-03-16 04:05:42 PDT
A better option would be to use data: urls for sources as well, to avoid changing source map format.
Pavel Podivilov
Comment 3 2012-03-16 06:31:47 PDT
(In reply to comment #2) > A better option would be to use data: urls for sources as well, to avoid changing source map format. It turns out there is no nice way to provide names for sources loaded from data: urls. Using sourceURL comment would require loading and searching all the sources which is not acceptable for large maps. map.sourcesContent seems to be the best option.
Pavel Podivilov
Comment 4 2012-03-20 07:01:46 PDT
Note You need to log in before you can comment on or make changes to this bug.