Bug 69423 - Web Inspector: implement CompilerSourceMappingProvider.
Summary: Web Inspector: implement CompilerSourceMappingProvider.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Podivilov
URL:
Keywords: MakingBotsRed
Depends on:
Blocks:
 
Reported: 2011-10-05 07:29 PDT by Pavel Podivilov
Modified: 2011-10-13 12:09 PDT (History)
12 users (show)

See Also:


Attachments
Patch (14.66 KB, patch)
2011-10-05 07:31 PDT, Pavel Podivilov
no flags Details | Formatted Diff | Diff
Patch (14.63 KB, patch)
2011-10-05 10:24 PDT, Pavel Podivilov
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>