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

Unified Diff: third_party/WebKit/LayoutTests/animations/keyframeeffect-no-target-crash.html

Issue 2961573002: Fix nullptr deref in InvalidateKeyframeEffect (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/LayoutTests/animations/keyframeeffect-no-target-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/keyframeeffect-no-target-crash.html b/third_party/WebKit/LayoutTests/animations/keyframeeffect-no-target-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..f8830d6cba2e3cd26287b215e4f6f897679b4266
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/keyframeeffect-no-target-crash.html
@@ -0,0 +1,16 @@
+<div id="target">This test passes if it does not crash.</div>
+<script>
+ let effect = new KeyframeEffect(null, null, { duration: 1000});
alancutter (OOO until 2018) 2017/06/26 04:38:47 Remove space after {.
suzyh_UTC10 (ex-contributor) 2017/06/27 05:12:15 Done.
+ let animation = new Animation(effect);
+
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ requestAnimationFrame(function() {
+ testRunner.notifyDone();
+ });
+ }
+</script>
+<style>
+@keyframes frame { }
+</style>

Powered by Google App Engine
This is Rietveld 408576698