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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html

Issue 913473002: Testing a fix to crbug.com/456059. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: refactored Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..5f71a402c989682fc8366b55c423591b9452f325
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+function init()
+{
+ var script = document.createElement("script");
+ script.src = "does-not-exist.js";
+ script.onerror = function () { window.top.done(); };
+ document.body.appendChild(script);
+ // otherDoc's contextDocument is document.
+ var otherDoc = document.implementation.createDocument("", "a", null);
+ var divElement = otherDoc.createElement("div");
+ divElement.appendChild(script);
+ var iframe = document.createElement("iframe");
+ iframe.appendChild(script);
+}
+
+init();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698