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

Issue 2696703010: Rename the flag of 'allow-top-navigation-with-user-activation' to 'allow-top-navigation-by-user-act… (Closed)

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

Description

Rename the flag of 'allow-top-navigation-with-user-activation' to 'allow-top-navigation-by-user-activation' to be consistent with the spec proposal: http://github.com/whatwg/html/pull/2292. Also changed the tests to be testharness-based for the merging into web-platform-tests. BUG=662506 Review-Url: https://codereview.chromium.org/2696703010 Cr-Commit-Position: refs/heads/master@{#452368} Committed: https://chromium.googlesource.com/chromium/src/+/8926e98b4c2426be840b2deb8401e501b971f045

Patch Set 1 #

Patch Set 2 : Change the tests to be testharness-based for the merging into web-platform-tests. #

Total comments: 4

Patch Set 3 : Change to async_test and remove testRunner stuff for the DENIED test. #

Patch Set 4 : Add a test for the case of setting both flags: allow-top-navigation & allow-top-navigation-by-user-… #

Patch Set 5 : Add the *-with-two-flags-expected.txt that I forgot previously. #

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

Messages

Total messages: 40 (31 generated)
Bin Lu
Any idea on how to emulate user gesture for web-platform-tests? It seems that window.eventSender is ...
3 years, 10 months ago (2017-02-20 15:58:45 UTC) #12
domenic
On 2017/02/20 at 15:58:45, binlu wrote: > Any idea on how to emulate user gesture ...
3 years, 10 months ago (2017-02-21 18:37:43 UTC) #16
Bin Lu
Thanks Domenic for the review. Added a test for setting both 'allow-top-navigation' & 'allow-top-navigation-by-user-activation'. > ...
3 years, 10 months ago (2017-02-22 05:23:44 UTC) #19
domenic
On 2017/02/22 at 05:23:44, binlu wrote: > Thanks Domenic for the review. > > Added ...
3 years, 10 months ago (2017-02-22 22:21:29 UTC) #26
domenic
I don't believe I'm a reviewer, but lgtm :)
3 years, 10 months ago (2017-02-22 22:36:00 UTC) #27
Rick Byers
On 2017/02/21 18:37:43, domenic wrote: > On 2017/02/20 at 15:58:45, binlu wrote: > > Any ...
3 years, 10 months ago (2017-02-22 22:59:20 UTC) #28
Rick Byers
LGTM
3 years, 10 months ago (2017-02-22 23:00:26 UTC) #29
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/2696703010/80001
3 years, 10 months ago (2017-02-23 03:07:08 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 03:13:10 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8926e98b4c2426be840b2deb8401...

Powered by Google App Engine
This is Rietveld 408576698