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

Issue 967423005: <iframe sandbox> should inherit through <a target='_blank'>. (Closed)

Created:
5 years, 9 months ago by Mike West
Modified:
5 years, 9 months ago
Reviewers:
sof, Nate Chapin
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

<iframe sandbox> should inherit through <a target='_blank'>. We already do this properly for 'window.open', but we intentionally dropped targeted anchor navigation in https://crbug.com/353253. This patch reverts that decision. https://bugzilla.mozilla.org/show_bug.cgi?id=1037381#c1 walks through the relevant portions of the HTML spec; we're simply wrong here. BUG=393401, 353253 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191352

Patch Set 1 #

Total comments: 2

Patch Set 2 : Commoning. #

Patch Set 3 : Fix. #

Total comments: 2

Patch Set 4 : Ugh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -5 lines) Patch
M LayoutTests/http/tests/navigation/new-window-sandboxed-iframe-expected.txt View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/security/resources/post-origin-to-opener.html View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Mike West
Yoav, Sigbjorn, mind taking a look?
5 years, 9 months ago (2015-03-03 09:36:25 UTC) #3
sof
https://codereview.chromium.org/967423005/diff/1/Source/core/page/CreateWindow.cpp File Source/core/page/CreateWindow.cpp (right): https://codereview.chromium.org/967423005/diff/1/Source/core/page/CreateWindow.cpp#newcode193 Source/core/page/CreateWindow.cpp:193: if (newFrame != &openerFrame && newFrame != openerFrame.tree().top()) Can ...
5 years, 9 months ago (2015-03-03 09:52:38 UTC) #4
Mike West
https://codereview.chromium.org/967423005/diff/1/Source/core/page/CreateWindow.cpp File Source/core/page/CreateWindow.cpp (right): https://codereview.chromium.org/967423005/diff/1/Source/core/page/CreateWindow.cpp#newcode193 Source/core/page/CreateWindow.cpp:193: if (newFrame != &openerFrame && newFrame != openerFrame.tree().top()) On ...
5 years, 9 months ago (2015-03-03 10:25:37 UTC) #5
sof
lgtm
5 years, 9 months ago (2015-03-03 10:40:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967423005/20001
5 years, 9 months ago (2015-03-03 11:14:35 UTC) #8
Mike West
Amusingly, we did the exact opposite of this patch at https://code.google.com/p/chromium/issues/detail?id=353253. CCing japhet@ as an ...
5 years, 9 months ago (2015-03-03 12:17:31 UTC) #9
Mike West
Sigbjorn, Nate, would you mind taking a(nother) look?
5 years, 9 months ago (2015-03-03 13:44:21 UTC) #12
sof
On 2015/03/03 13:44:21, Mike West wrote: > Sigbjorn, Nate, would you mind taking a(nother) look? ...
5 years, 9 months ago (2015-03-03 19:01:50 UTC) #13
sof
On 2015/03/03 19:01:50, sof wrote: > On 2015/03/03 13:44:21, Mike West wrote: > > Sigbjorn, ...
5 years, 9 months ago (2015-03-03 19:12:41 UTC) #14
Mike West
On 2015/03/03 at 19:12:41, sigbjornf wrote: > On 2015/03/03 19:01:50, sof wrote: > > On ...
5 years, 9 months ago (2015-03-03 19:16:10 UTC) #15
Nate Chapin
lgtm w/nits https://codereview.chromium.org/967423005/diff/40001/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html File LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html (right): https://codereview.chromium.org/967423005/diff/40001/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html#newcode1 LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html:1: <!DOCTYPE html> I don't see any expected ...
5 years, 9 months ago (2015-03-04 17:44:56 UTC) #16
Mike West
Bah. So, the tests that I "fixed" were, in fact, behaving as expected. In short, ...
5 years, 9 months ago (2015-03-05 07:59:48 UTC) #17
Mike West
On 2015/03/05 at 07:59:48, Mike West wrote: > Reverting to a simpler version of this ...
5 years, 9 months ago (2015-03-05 08:00:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967423005/60001
5 years, 9 months ago (2015-03-05 09:05:22 UTC) #21
sof
Still lgtm - is the description sync'ed?
5 years, 9 months ago (2015-03-05 09:06:17 UTC) #22
Mike West
On 2015/03/05 at 09:06:17, sigbjornf wrote: > Still lgtm - is the description sync'ed? Yes, ...
5 years, 9 months ago (2015-03-05 09:14:33 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 09:18:58 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191352

Powered by Google App Engine
This is Rietveld 408576698