summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1026714.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/crashtests/1026714.html')
-rw-r--r--dom/base/crashtests/1026714.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/base/crashtests/1026714.html b/dom/base/crashtests/1026714.html
new file mode 100644
index 000000000..465d62942
--- /dev/null
+++ b/dom/base/crashtests/1026714.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<body onload="f()">
+ <div></div>
+ <style>
+ div { color: blue; }
+ </style>
+ <script>
+ function f() {
+ // This should not leak.
+ var div = document.querySelector("div");
+ var shadow = div.createShadowRoot();
+ shadow.innerHTML = '<div><style scoped>p { color: green; }</style>';
+ }
+ </script>
+</body>