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

Side by Side Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script> 4 <script>
5 function init() 5 function init()
6 { 6 {
7 var script = document.createElement("script"); 7 var script = document.createElement("script");
8 script.src = "does-not-exist.js"; 8 script.src = "does-not-exist.js";
9 script.onerror = function () { window.top.done(); }; 9 script.onerror = function () { window.top.done(); };
10 document.body.appendChild(script); 10 document.body.appendChild(script);
11 var contextDoc = window.top.document.implementation.createDocument("", null) ; 11 // otherDoc's contextDocument is document.
12 contextDoc.adoptNode(document.documentElement); 12 var otherDoc = document.implementation.createDocument("", "a", null);
13 var divElement = otherDoc.createElement("div");
14 divElement.appendChild(script);
15 document.body.appendChild(script);
13 } 16 }
14 17
15 init(); 18 init();
16 </script> 19 </script>
17 </body> 20 </body>
18 </html> 21 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698