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

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
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..e40f97f54c1ab5498bf96e917b2c736d3a2983e4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/deep-nested-about-blank.html
@@ -0,0 +1,17 @@
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+window.onload = function() {
+ var frames = new Set();
+ var win = window;
+ for (i = 0; i < 10; i++) {
+ var frame = win.document.createElement('iframe');
+ win.document.body.appendChild(frame);
+ frames.add(frame);
+ win = win[0];
+ }
+ test(function() {
+ frames.forEach( function(value) { assert_not_equals(value.clientHeight, 0) } )
dcheng 2015/11/18 03:23:18 How come this can't use a check for contentDocumen
Xiaocheng 2015/11/18 10:26:00 TL;DR: For a nested frame created in this way, its
dcheng 2015/11/18 21:32:51 Hmm. I think there's some room for cleanup in the
+ }, "all nested about:blank iframes should be displayed correctly");
dcheng 2015/11/18 03:23:18 Nit: "nested about:blank iframes should not be blo
Xiaocheng 2015/11/18 10:26:00 Done.
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698