Bug 69423

Summary: Web Inspector: implement CompilerSourceMappingProvider.
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, simon.fraser, simon_kaegi, timothy, yurys
Priority: P2 Keywords: MakingBotsRed
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch pfeldman: review+

Description Pavel Podivilov 2011-10-05 07:29:46 PDT
Web Inspector: implement CompilerSourceMappingProvider.

CompilerSourceMappingProvider implements a cross-domain communication channel for loading source mappings and source files.
Front-end page can't send XHRs to source mapping server directly due to SOP restrictions. Instead, we inject an invisible iframe that is loaded from source mapping server and use window.postMessage to communicate with it.
iframe has a different origin and thus doesn't have access to front-end window.
Comment 1 Pavel Podivilov 2011-10-05 07:31:25 PDT
Created attachment 109788 [details]
Patch
Comment 2 Pavel Podivilov 2011-10-05 10:24:20 PDT
Created attachment 109818 [details]
Patch
Comment 3 Pavel Feldman 2011-10-11 03:12:28 PDT
Comment on attachment 109818 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=109818&action=review

> Source/WebCore/inspector/front-end/CompilerSourceMappingProvider.js:34
> +WebInspector.CompilerSourceMappingProvider = function(sourceMappingURL)

Could you please annotate this class?
Comment 4 Pavel Podivilov 2011-10-11 07:04:13 PDT
Committed r97151: <http://trac.webkit.org/changeset/97151>