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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html

Issue 2459843002: Copy m_namespaceRules when copying StyleSheetContents to avoid crashing. (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html b/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..19968ec54548c0ccd5df559a49ac9f19e102cbd9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html
@@ -0,0 +1,7 @@
+<style>@namespace a "a"; div { }</style>
rune 2016/10/28 07:41:16 Missing <!DOCTYPE html> Also, don't you need an e
meade_UTC10 2016/10/31 01:32:53 Done.
+<style>@namespace a "a"; div { }</style>
+<script>
+// This test passes if it doesn't crash.
+document.styleSheets[0].deleteRule(1);
+document.styleSheets[0].cssRules[0];
+</script>

Powered by Google App Engine
This is Rietveld 408576698