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

Issue 2645733002: Add an 'allow-top-navigation-with-user-interaction' sandbox flag. (Closed)

Created:
3 years, 11 months ago by Bin Lu
Modified:
3 years, 11 months ago
Reviewers:
Nate Chapin, Rick Byers
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, sof, eae+blinkwatch, dcheng, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis, ojan, Mike West
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an 'allow-top-navigation-with-user-interaction' sandbox flag. This is a new flag for `<iframe sandbox="...">` which will allow a sandboxed document to navigate top-level page only with a user activation (aka. gesture). This will allow, for example, a third-party advertisement to be safely sandboxed without breaking existing sandboxed contents. Intent to Implement & Ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/Flt2IixYQK4/RKMfll65AgAJ BUG=662506 Review-Url: https://codereview.chromium.org/2645733002 Cr-Commit-Position: refs/heads/master@{#444687} Committed: https://chromium.googlesource.com/chromium/src/+/7a2bf4d888a500a9db0772ce02a88adbb7be6aee

Patch Set 1 #

Patch Set 2 : Add unit tests. #

Patch Set 3 : Fix tests. #

Patch Set 4 : Delete old tests. #

Patch Set 5 : Fix tests again! #

Patch Set 6 : Fix the tests finally! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture-failed.html View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-ALLOWED-top-navigation-with-user-gesture.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-ALLOWED-top-navigation-with-user-gesture-expected.txt View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-DENIED-top-navigation-without-user-gesture.html View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-DENIED-top-navigation-without-user-gesture-expected.txt View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SandboxFlags.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SandboxFlags.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 2 chunks +21 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Bin Lu
Does this LG (while I'm working on adding tests)? Thanks.
3 years, 11 months ago (2017-01-18 21:48:05 UTC) #5
Rick Byers
This seems reasonable to me, though I'm not an expert in the specific code here. ...
3 years, 11 months ago (2017-01-18 22:24:47 UTC) #7
Bin Lu
Thanks Rick for the quick review. japhet@, could you take a look today or tomorrow? ...
3 years, 11 months ago (2017-01-18 22:53:28 UTC) #8
Nate Chapin
Code changes LGTM
3 years, 11 months ago (2017-01-18 23:00:33 UTC) #9
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/2645733002/100001
3 years, 11 months ago (2017-01-19 06:55:57 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 09:21:18 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/7a2bf4d888a500a9db0772ce02a8...

Powered by Google App Engine
This is Rietveld 408576698