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

Unified Diff: third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html

Issue 1410093006: Exempt about: URLs from self-reference check for nested frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html
diff --git a/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html b/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html
new file mode 100644
index 0000000000000000000000000000000000000000..49fc0a20c6ec5fa29c8cd598d19ab0576e42373a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+window.onload = function() {
+ test(function() {
+ var doc = document;
+ for (i = 0; i < 10; i++) {
+ var frame = doc.createElement('iframe');
+ frame.src = 'about:blank';
+ doc.body.appendChild(frame);
+ assert_not_equals(frame.contentDocument, null);
+ assert_not_equals(frame.clientHeight, 0);
+ doc = frame.contentDocument;
+ }
+ }, 'Nested about:blank iframes should not be blocked as self-referential iframes.');
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698