Bug 64080

Summary: Web Inspector: secure access to extensions API
Product: WebKit Reporter: Andrey Kosyakov <caseq>
Component: Web Inspector (Deprecated)Assignee: Andrey Kosyakov <caseq>
Status: RESOLVED FIXED    
Severity: Normal CC: abecsi, apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 64124, 64158    
Bug Blocks:    
Attachments:
Description Flags
patch pfeldman: review+

Andrey Kosyakov
Reported 2011-07-07 05:35:45 PDT
Use relative filenames instead of URLs when specifying extension resources (panels, sidebars, icons)/ Also, we used to allow extension requests for any iframes injected into WebInspecor front-end. This patch changes it to only allow extension requests coming from the same origin as the extension we explicitly loaded.
Attachments
patch (7.84 KB, patch)
2011-07-07 05:38 PDT, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2011-07-07 05:38:03 PDT
Pavel Feldman
Comment 2 2011-07-07 06:46:28 PDT
Comment on attachment 99969 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=99969&action=review > LayoutTests/platform/gtk/Skipped:-1554 > -inspector/ Thanks for making inspector tests pass on gtk. > Source/WebCore/inspector/front-end/ExtensionServer.js:495 > + } while (resourcePath !== old_path); split("/"), followed by a push on normal / pull on ..
Andrey Kosyakov
Comment 3 2011-07-07 11:42:12 PDT
A variation of patch landed as r90581: http://trac.webkit.org/changeset/90581
Andras Becsi
Comment 4 2011-07-08 04:45:08 PDT
(In reply to comment #3) > A variation of patch landed as r90581: http://trac.webkit.org/changeset/90581 After this change inspector/extensions/extensions.html times out at least on the Qt Linux Release, SnowLeopard Intel Release, Windows 7 Release bots and inspector/profiler/cpu-profiler-profiling.html on the Qt Linux Release bot.
Andrey Kosyakov
Comment 5 2011-07-08 04:46:08 PDT
(In reply to comment #4) > (In reply to comment #3) > > A variation of patch landed as r90581: http://trac.webkit.org/changeset/90581 > > After this change inspector/extensions/extensions.html times out at least on the Qt Linux Release, SnowLeopard Intel Release, Windows 7 Release bots and inspector/profiler/cpu-profiler-profiling.html on the Qt Linux Release bot. Yup, I just noticed this as well, the fix is coming in a few minutes.
Andrey Kosyakov
Comment 6 2011-07-08 04:48:47 PDT
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > A variation of patch landed as r90581: http://trac.webkit.org/changeset/90581 > > > > After this change inspector/extensions/extensions.html times out at least on the Qt Linux Release, SnowLeopard Intel Release, Windows 7 Release bots and inspector/profiler/cpu-profiler-profiling.html on the Qt Linux Release bot. > > Yup, I just noticed this as well, the fix is coming in a few minutes. Actually, not. I'll rather rollback for the time being.
Note You need to log in before you can comment on or make changes to this bug.