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

Unified Diff: LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html

Issue 1178733005: SMIL animation should only progress() on active documents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
diff --git a/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html b/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..3db796da1195e126e9923d1b0235fa91a7b22ac0
--- /dev/null
+++ b/LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src='../../resources/js-test.js'></script>
+<body>
+<svg width=100 height=100>
+ <rect id="rect" x=10 y=10 width=30 height=30 fill="black">
+ <set attributeName="width" to="60" begin="rect.click" dur="5s" />
+ </rect>
+</svg>
+<script>
+window.jsTestIsAsync = true;
+description("SMIL animations scheduled in inactive document cause crash");
+debug("PASS if no crash on debug builds");
+
+if (!window.eventSender)
+ testFailed("Please run this in content_shell --dump-render-tree")
+
+var svg = document.querySelector("svg");
+svg.pauseAnimations();
+
+setTimeout(function() {
+ eventSender.mouseMoveTo(svg.offsetLeft + 20, svg.offsetTop + 20);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}, 0);
+finishJSTest();
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/smil-scheduled-in-inactive-document-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698