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

Unified Diff: third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.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/srcdoc/srcdoc-deep-nested-frames.html
diff --git a/third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html b/third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html
new file mode 100644
index 0000000000000000000000000000000000000000..cebb771d12ae914e6ca41ffb388023c91fab6afa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/srcdoc/srcdoc-deep-nested-frames.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<iframe id="frame1" srcdoc='1
+<iframe id="frame2" srcdoc="2
+<iframe id=frame3 srcdoc=3></iframe>
+"></iframe>
+'></iframe>
+
+<script>
+frame1.onload = function() {
+ var frame2 = frame1.contentDocument.getElementById("frame2");
+ var frame3 = frame2.contentDocument.getElementById("frame3");
+ test(function() {assert_not_equals(frame3.contentDocument, null)}, "deep nested frames should still have non-null content documents.");
dcheng 2015/11/18 03:23:18 Nit: "nested srcdocs should not be blocked as self
Xiaocheng 2015/11/18 10:26:00 Done.
+};
+</script>
+
+

Powered by Google App Engine
This is Rietveld 408576698