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

Issue 2392773002: Reenable framebusting deprecation, change it to allow navigation if iframe has ever had a user gestu (Closed)

Created:
4 years, 2 months ago by Nate Chapin
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dcheng, dglazkov+blink, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, mlamouri+watch-blink_chromium.org, nzolghadr+blinkwatch_chromium.org, rwlbuis, sof, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reenable framebusting deprecation, change it to allow navigation if iframe has ever had a user gesture Intent to remove: https://groups.google.com/a/chromium.org/d/msg/Blink-dev/Xi8-y4ySjA4/D80epeAMAAAJ BUG=624061 TEST=http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html TEST=http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change-async.html Committed: https://crrev.com/5d8d5cef1e1e9e98f19cea4bcca21e9787a1f686 Cr-Commit-Position: refs/heads/master@{#427735}

Patch Set 1 #

Patch Set 2 : +test for previous user gesture #

Patch Set 3 : Fix faliing content_browsertest #

Total comments: 2

Patch Set 4 : Check processingUserGesture() #

Patch Set 5 : TODOs, TouchEventManager #

Patch Set 6 : TODOs and TouchEventmanager #

Total comments: 5

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation-async.html View 1 1 chunk +9 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change-async.html View 1 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change-async-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html View 1 2 3 4 5 6 1 chunk +8 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 62 (35 generated)
Nate Chapin
rbyers, would you mind looking at this? I don't know if I hooked the input ...
4 years, 2 months ago (2016-10-04 19:04:15 UTC) #11
Nate Chapin
On 2016/10/04 19:04:15, Nate Chapin wrote: > rbyers, would you mind looking at this? I ...
4 years, 2 months ago (2016-10-04 19:05:33 UTC) #13
ojan
We don't have an official policy on that AFAIK, but IMO, making the intervention strictly ...
4 years, 2 months ago (2016-10-04 20:02:24 UTC) #16
ojan
We don't have an official policy on that AFAIK, but IMO, making the intervention strictly ...
4 years, 2 months ago (2016-10-04 20:02:24 UTC) #17
blink-reviews
Sounds reasonable to me! On Tue, Oct 4, 2016 at 1:02 PM Ojan Vafai <ojan@chromium.org> ...
4 years, 2 months ago (2016-10-04 22:56:22 UTC) #18
chromium-reviews
Sounds reasonable to me! On Tue, Oct 4, 2016 at 1:02 PM Ojan Vafai <ojan@chromium.org> ...
4 years, 2 months ago (2016-10-04 22:56:22 UTC) #19
Nate Chapin
+mustaq
4 years, 2 months ago (2016-10-05 20:07:09 UTC) #21
Rick Byers
Agree this doesn't need API owner approval. https://codereview.chromium.org/2392773002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2392773002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3372 third_party/WebKit/Source/core/dom/Document.cpp:3372: m_hasReceivedUserGesture = ...
4 years, 2 months ago (2016-10-05 20:32:31 UTC) #22
ojan
I think storing the bit on Document is fine, but divorcing the code from UserGestureIndicator ...
4 years, 2 months ago (2016-10-05 20:44:10 UTC) #23
Nate Chapin
https://codereview.chromium.org/2392773002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2392773002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3372 third_party/WebKit/Source/core/dom/Document.cpp:3372: m_hasReceivedUserGesture = true; On 2016/10/05 20:32:31, Rick Byers wrote: ...
4 years, 2 months ago (2016-10-05 21:43:56 UTC) #26
ojan
If we do move forward with this as a rush for M55, I think there ...
4 years, 2 months ago (2016-10-05 23:39:33 UTC) #29
Nate Chapin
On 2016/10/05 23:39:33, ojan wrote: > If we do move forward with this as a ...
4 years, 2 months ago (2016-10-05 23:56:41 UTC) #30
Navid Zolghadr
On 2016/10/05 23:56:41, Nate Chapin wrote: > On 2016/10/05 23:39:33, ojan wrote: > > If ...
4 years, 2 months ago (2016-10-06 00:50:38 UTC) #33
Rick Byers
On 2016/10/06 00:50:38, Navid Zolghadr wrote: > On 2016/10/05 23:56:41, Nate Chapin wrote: > > ...
4 years, 2 months ago (2016-10-06 15:45:25 UTC) #36
Rick Byers
On 2016/10/06 00:50:38, Navid Zolghadr wrote: > On 2016/10/05 23:56:41, Nate Chapin wrote: > > ...
4 years, 2 months ago (2016-10-06 16:14:51 UTC) #38
Rick Byers
Ojan's comments got me thinking through the details some more. I think you guys need ...
4 years, 2 months ago (2016-10-06 16:26:47 UTC) #39
Nate Chapin
With https://codereview.chromium.org/2408333004/ landed, this change should be down to just making the framebusting intervention depend ...
4 years, 1 month ago (2016-10-25 22:55:04 UTC) #42
Rick Byers
On 2016/10/25 22:55:04, Nate Chapin wrote: > With https://codereview.chromium.org/2408333004/ landed, this change should be > ...
4 years, 1 month ago (2016-10-26 13:46:33 UTC) #46
Rick Byers
On 2016/10/26 13:46:33, Rick Byers wrote: > On 2016/10/25 22:55:04, Nate Chapin wrote: > > ...
4 years, 1 month ago (2016-10-26 13:47:11 UTC) #47
ojan
lgtm
4 years, 1 month ago (2016-10-26 16:39:16 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2392773002/120001
4 years, 1 month ago (2016-10-26 16:40:13 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/290013)
4 years, 1 month ago (2016-10-26 16:50:26 UTC) #53
Nate Chapin
creis, up for a quick 4-line test change in content/?
4 years, 1 month ago (2016-10-26 16:53:52 UTC) #55
Charlie Reis
content/ LGTM, thanks!
4 years, 1 month ago (2016-10-26 17:18:10 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2392773002/120001
4 years, 1 month ago (2016-10-26 17:19:44 UTC) #58
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-26 17:38:43 UTC) #60
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 17:51:04 UTC) #62
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5d8d5cef1e1e9e98f19cea4bcca21e9787a1f686
Cr-Commit-Position: refs/heads/master@{#427735}

Powered by Google App Engine
This is Rietveld 408576698