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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 function init()
6 {
7 var script = document.createElement("script");
8 script.src = "does-not-exist.js";
9 script.onerror = function () { window.top.done(); };
10 document.body.appendChild(script);
11 // otherDoc's contextDocument is document.
12 var otherDoc = document.implementation.createDocument("", "a", null);
13 var divElement = otherDoc.createElement("div");
14 divElement.appendChild(script);
15 var iframe = document.createElement("iframe");
16 iframe.appendChild(script);
17 }
18
19 init();
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698