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

Issue 1611523002: Require the entry document to have the same origin as the open()d document (Closed)

Created:
4 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 10 months ago
Reviewers:
philipj_slow, Mike West
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Require the entry document to have the same origin as the open()d document This implements step 3) of https://html.spec.whatwg.org/#dom-document-open BUG=579493 R=philipj@opera.com,mkwst@chromium.org Committed: https://crrev.com/5ff185ee69963f7e749130dce11205021b9f1671 Cr-Commit-Position: refs/heads/master@{#372330}

Patch Set 1 #

Total comments: 1

Patch Set 2 : updates #

Total comments: 12

Patch Set 3 : updates #

Patch Set 4 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -58 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html View 1 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/LayoutTests/fast/parser/tokenizer-close-during-document-write.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-lexical-expected.txt View 1 chunk +12 lines, -12 lines 1 comment Download
M third_party/WebKit/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-write-lexical-expected.txt View 1 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-writeln-lexical-expected.txt View 1 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 5 chunks +21 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.idl View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
jochen (gone - plz use gerrit)
4 years, 11 months ago (2016-01-20 13:46:34 UTC) #1
jochen (gone - plz use gerrit)
see also https://github.com/whatwg/html/issues/536
4 years, 11 months ago (2016-01-20 13:46:46 UTC) #2
philipj_slow
OK, so the spec incantation is "Change the document's address to the address of the ...
4 years, 11 months ago (2016-01-20 13:59:48 UTC) #3
Mike West
https://codereview.chromium.org/1611523002/diff/1/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1611523002/diff/1/third_party/WebKit/LayoutTests/TestExpectations#newcode1482 third_party/WebKit/LayoutTests/TestExpectations:1482: crbug.com/579493 http/tests/security/xss-DENIED-xsl-document-securityOrigin.xml [ Timeout ] Firefox has pretty different ...
4 years, 11 months ago (2016-01-20 15:01:02 UTC) #4
jochen (gone - plz use gerrit)
On 2016/01/20 at 13:59:48, philipj wrote: > OK, so the spec incantation is "Change the ...
4 years, 11 months ago (2016-01-22 09:18:50 UTC) #5
philipj_slow
On 2016/01/22 09:18:50, jochen wrote: > On 2016/01/20 at 13:59:48, philipj wrote: > > OK, ...
4 years, 11 months ago (2016-01-25 15:10:20 UTC) #6
jochen (gone - plz use gerrit)
ptal https://codereview.chromium.org/1611523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html File third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html (left): https://codereview.chromium.org/1611523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html#oldcode17 third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html:17: <iframe src="data:text/html,FAILURE"></iframe> data: will fail the canAccess() check. ...
4 years, 10 months ago (2016-01-29 08:01:37 UTC) #7
philipj_slow
These changes LGTM, but I'm not confident I understand all of the security implications. In ...
4 years, 10 months ago (2016-01-29 08:39:18 UTC) #8
jochen (gone - plz use gerrit)
not sure who but Mike knows about this stuff :-/ I don't have security concerns, ...
4 years, 10 months ago (2016-01-29 09:40:25 UTC) #10
philipj_slow
Even LGTMer, but I'll leave the final say to Mike. https://codereview.chromium.org/1611523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html File third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html (left): https://codereview.chromium.org/1611523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html#oldcode17 ...
4 years, 10 months ago (2016-01-29 10:21:12 UTC) #11
Mike West
> > I guess that data: URLs in an <iframe> already have this behavior in ...
4 years, 10 months ago (2016-01-29 10:28:30 UTC) #12
Mike West
https://codereview.chromium.org/1611523002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html File third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html (right): https://codereview.chromium.org/1611523002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html#newcode17 third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html:17: <iframe></iframe> If you wanted to keep `FAILURE` visible in ...
4 years, 10 months ago (2016-01-29 10:32:27 UTC) #13
Mike West
On 2016/01/29 at 10:32:27, Mike West wrote: > https://codereview.chromium.org/1611523002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html > File third_party/WebKit/LayoutTests/fast/dom/HTMLDocument/document-open-return-value.html (right): > > ...
4 years, 10 months ago (2016-01-29 10:33:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611523002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611523002/60001
4 years, 10 months ago (2016-01-29 11:24:12 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-29 11:29:14 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 11:30:38 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5ff185ee69963f7e749130dce11205021b9f1671
Cr-Commit-Position: refs/heads/master@{#372330}

Powered by Google App Engine
This is Rietveld 408576698