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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-parent-expected.txt

Issue 2371993003: Throw when blocking top-level navigation. (Closed)
Patch Set: Test. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE ERROR: line 6: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'sandboxed-iframe-navigation-source.html'. The frame attempting navig ation is sandboxed, and is therefore disallowed from navigating its ancestors. 1 CONSOLE ERROR: line 6: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'sandboxed-iframe-navigation-source.html'. The frame attempting navig ation is sandboxed, and is therefore disallowed from navigating its ancestors.
2 2
3 CONSOLE ERROR: line 6: Uncaught SecurityError: Failed to execute 'assign' on 'Lo cation': The current window does not have permission to navigate the target fram e to 'sandboxed-iframe-navigated.html'.
3 This test verifies that a sandboxed IFrame cannot navigate an ancestor in the fr ame tree by assigning the location attribute. 4 This test verifies that a sandboxed IFrame cannot navigate an ancestor in the fr ame tree by assigning the location attribute.
4 5
5 This is done by loading ten non-sandboxed IFrames, and a single sandboxed one. E xpect ten frames to be navigated, but the sandboxed one to not be one of them. 6 This is done by loading ten non-sandboxed IFrames, and a single sandboxed one. E xpect ten frames to be navigated, but the sandboxed one to not be one of them.
6 7
7 This test will print "PASS" on success. 8 This test will print "PASS" on success.
8 9
9 10
10 PASS 11 PASS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698