Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 1327263002: Modifies WindowProxy::setSecurityToken so that the frame's SecurityOrigin is taken into account whe… (Closed)

Created:
5 years, 3 months ago by epertoso
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Modifies WindowProxy::setSecurityToken so that the frame's SecurityOrigin is taken into account when setting the token for an extension. Chrome extensions (or, in general, scripts that run in isolated worlds) can no longer do cross-origin access to the parent window or other iframes. If the domain of one frame is explicitly set through the document.domain accessor from the main world, the security tokens of all the isolated worlds associated with that frame are also updated. BUG=529682 Committed: https://crrev.com/cf073253ae5c3e2f12166977eeddec1a1bcc016d git-svn-id: svn://svn.chromium.org/blink/trunk@202267 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added layout test. #

Total comments: 2

Patch Set 3 : Update. #

Patch Set 4 : Update #

Total comments: 10

Patch Set 5 : Update #

Patch Set 6 : Update #

Patch Set 7 : Update #

Messages

Total messages: 30 (6 generated)
jochen (gone - plz use gerrit)
lgtm what do others think? Enrico, can you trigger tryjobs?
5 years, 3 months ago (2015-09-10 14:16:43 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327263002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327263002/1
5 years, 3 months ago (2015-09-10 14:17:15 UTC) #4
jochen (gone - plz use gerrit)
also, could you write a layout test for this? there's window.testRunner.setIsolatedWorldSecurityOrigin and evaluateScriptInIsolatedWorld
5 years, 3 months ago (2015-09-10 14:19:01 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 15:37:55 UTC) #7
haraken
Layout test sounds nice. Also please add more explanations to the CL description so that ...
5 years, 3 months ago (2015-09-10 23:34:20 UTC) #8
epertoso
https://codereview.chromium.org/1327263002/diff/1/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/1327263002/diff/1/Source/bindings/core/v8/WindowProxy.cpp#newcode465 Source/bindings/core/v8/WindowProxy.cpp:465: token = frameSecurityToken + token; On 2015/09/10 at 23:34:20, ...
5 years, 3 months ago (2015-09-11 13:18:22 UTC) #9
haraken
On 2015/09/11 13:18:22, epertoso wrote: > https://codereview.chromium.org/1327263002/diff/1/Source/bindings/core/v8/WindowProxy.cpp > File Source/bindings/core/v8/WindowProxy.cpp (right): > > https://codereview.chromium.org/1327263002/diff/1/Source/bindings/core/v8/WindowProxy.cpp#newcode465 > ...
5 years, 3 months ago (2015-09-11 13:22:20 UTC) #10
jochen (gone - plz use gerrit)
On 2015/09/11 at 13:22:20, haraken wrote: > On 2015/09/11 13:18:22, epertoso wrote: > > https://codereview.chromium.org/1327263002/diff/1/Source/bindings/core/v8/WindowProxy.cpp ...
5 years, 3 months ago (2015-09-11 13:25:53 UTC) #11
haraken
On 2015/09/11 13:25:53, jochen wrote: > On 2015/09/11 at 13:22:20, haraken wrote: > > On ...
5 years, 3 months ago (2015-09-11 13:28:35 UTC) #12
jochen (gone - plz use gerrit)
Looking at the code some more, I wonder whether we'd then need to update the ...
5 years, 3 months ago (2015-09-11 13:30:48 UTC) #13
epertoso
Added a layout test.
5 years, 3 months ago (2015-09-14 08:53:39 UTC) #14
jochen (gone - plz use gerrit)
still lgtm https://codereview.chromium.org/1327263002/diff/20001/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html File LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html (right): https://codereview.chromium.org/1327263002/diff/20001/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html#newcode1 LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html:1: <html> nit. add <!DOCTYPE html>
5 years, 3 months ago (2015-09-14 08:56:35 UTC) #15
haraken
> Looking at the code some more, I wonder whether we'd then need to update ...
5 years, 3 months ago (2015-09-14 09:01:56 UTC) #16
epertoso
https://codereview.chromium.org/1327263002/diff/20001/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html File LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html (right): https://codereview.chromium.org/1327263002/diff/20001/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html#newcode1 LayoutTests/http/tests/security/resources/cross-frame-iframe-for-parent-isolated-world.html:1: <html> On 2015/09/14 at 08:56:35, jochen wrote: > nit. ...
5 years, 3 months ago (2015-09-14 09:13:50 UTC) #17
epertoso
On 2015/09/14 at 09:01:56, haraken wrote: > > Looking at the code some more, I ...
5 years, 3 months ago (2015-09-14 15:13:39 UTC) #18
haraken
https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode147 Source/bindings/core/v8/ScriptController.cpp:147: WindowProxy* proxy = m_windowProxyManager->existingWindowProxy(isolatedContext.first->world()); I think we should call ...
5 years, 3 months ago (2015-09-14 15:29:00 UTC) #19
epertoso
https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode147 Source/bindings/core/v8/ScriptController.cpp:147: WindowProxy* proxy = m_windowProxyManager->existingWindowProxy(isolatedContext.first->world()); On 2015/09/14 at 15:28:59, haraken ...
5 years, 3 months ago (2015-09-14 15:59:37 UTC) #20
haraken
https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode147 Source/bindings/core/v8/ScriptController.cpp:147: WindowProxy* proxy = m_windowProxyManager->existingWindowProxy(isolatedContext.first->world()); On 2015/09/14 15:59:37, epertoso wrote: ...
5 years, 3 months ago (2015-09-14 23:46:04 UTC) #21
Charlie Reis
[+Devlin] Rubber stamp LGTM from a security policy perspective. I haven't found any extensions yet ...
5 years, 3 months ago (2015-09-15 06:08:17 UTC) #23
epertoso
https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/1327263002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode147 Source/bindings/core/v8/ScriptController.cpp:147: WindowProxy* proxy = m_windowProxyManager->existingWindowProxy(isolatedContext.first->world()); On 2015/09/14 at 23:46:04, haraken ...
5 years, 3 months ago (2015-09-15 08:24:58 UTC) #24
haraken
LGTM
5 years, 3 months ago (2015-09-15 10:47:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327263002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327263002/120001
5 years, 3 months ago (2015-09-15 10:48:36 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202267
5 years, 3 months ago (2015-09-15 11:57:54 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:44:17 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cf073253ae5c3e2f12166977eeddec1a1bcc016d

Powered by Google App Engine
This is Rietveld 408576698