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

Side by Side Diff: LayoutTests/fast/dom/shadow/remove-shadowroot-from-document-and-destroy-crash.html

Issue 1303233007: Blink Plugins: Remove Shadow DOM plugin placeholder tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/plugins/plugin-placeholder.css » ('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 <meta content="style-src 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw='" http-equiv="Conten t-Security-Policy"/> 2 <meta content="style-src 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw='" http-equiv="Conten t-Security-Policy"/>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 onload = function() { 8 onload = function() {
9 div1.createShadowRoot().innerHTML="<style>"; 9 div1.createShadowRoot().innerHTML="<style>";
10 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/ svg", "svg", null); 10 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/ svg", "svg", null);
11 var doc = document.implementation.createDocument("", null); 11 var doc = document.implementation.createDocument("", null);
12 doc.appendChild(svgDoc.documentElement); 12 doc.appendChild(svgDoc.documentElement);
13 svgDoc.appendChild(div1); 13 svgDoc.appendChild(div1);
14 svgDoc.replaceChild(doc.documentElement, svgDoc.childNodes[0]); 14 svgDoc.replaceChild(doc.documentElement, svgDoc.childNodes[0]);
15 gc(); 15 gc();
16 document.write("PASS"); 16 document.write("PASS");
17 } 17 }
18 </script> 18 </script>
19 </haed> 19 </head>
20 <body> 20 <body>
21 <div id="div1"></div> 21 <div id="div1"></div>
22 <embed type="application/x-fake-plugin"</embed>
23 <script>
24 var embed = document.querySelector("embed");
25 if (window.internals)
26 internals.forcePluginPlaceholder(embed, {});
27 </script>
28 </body> 22 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698