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

Issue 2617313002: Add deprecation message for top navigations from sandbox w/ 'allow-top-navigation' but no gesture (Closed)

Created:
3 years, 11 months ago by Bin Lu
Modified:
3 years, 9 months ago
CC:
blink-reviews, chromium-reviews, dcheng, mlamouri+watch-blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add deprecation message for top navigations from sandboxed iframes w/ 'allow-top-navigation' but having not received user gesture. This is for this intent to implement/ship feature: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Flt2IixYQK4 BUG=662506

Patch Set 1 #

Patch Set 2 : q #

Patch Set 3 : Add unit tests for deprecation message. #

Patch Set 4 : Refactor the function of printing warning message. #

Patch Set 5 : Add the deprecation message to fix the broken tests in LayoutTests/fast/frames/. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-close-top-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-by-constant-name-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-by-constant-name2-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-by-name-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-ALLOWED-parent-navigation-change-with-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-parent-navigation-change-with-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-WARN-top-navigation-without-user-gesture.html View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-WARN-top-navigation-without-user-gesture-expected.txt View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 2 chunks +18 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 1 chunk +20 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteFrame.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (19 generated)
Bin Lu
Does this look good to you? Is this still possible to merge this back to ...
3 years, 11 months ago (2017-01-07 06:25:10 UTC) #3
Bin Lu
Anyone has any idea on why the warning console message got truncated for some tests ...
3 years, 11 months ago (2017-01-10 18:00:20 UTC) #19
ojan
FYI, I'm waiting on our email thread about this to resolve before reviewing since it ...
3 years, 11 months ago (2017-01-10 22:50:53 UTC) #22
Rick Byers
On 2017/01/10 22:50:53, ojan wrote: > FYI, I'm waiting on our email thread about this ...
3 years, 10 months ago (2017-02-25 15:02:00 UTC) #23
Bin Lu
3 years, 9 months ago (2017-02-27 17:16:37 UTC) #24
Message was sent while issue was closed.
On 2017/02/25 15:02:00, Rick Byers wrote:
> On 2017/01/10 22:50:53, ojan wrote:
> > FYI, I'm waiting on our email thread about this to resolve before reviewing
> > since it might change what this patch does. I'm not sure at a quick glance
why
> > the console message is getting truncated.
> 
> We've abandoned this approach, right?  Marking the CL closed to get it off my
> review radar (but feel free to undo if I'm missing something).

Yes, Thanks Rick!

Powered by Google App Engine
This is Rietveld 408576698