Skip to content

Commit

Permalink
Bug 1622184 - Mark Animation.finished and Animation.ready as handled …
Browse files Browse the repository at this point in the history
…when they are rejected; r=boris

As per spec change: w3c/csswg-drafts@7bcad32

Differential Revision: https://phabricator.services.mozilla.com/D67104

--HG--
extra : moz-landing-system : lando
  • Loading branch information
birtles committed Mar 18, 2020
1 parent e14c3f5 commit 5903ac3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
2 changes: 2 additions & 0 deletions dom/animation/Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ void Animation::Cancel(PostRestyleMode aPostRestyle) {

if (mFinished) {
mFinished->MaybeReject(NS_ERROR_DOM_ABORT_ERR);
mFinished->SetSettledPromiseIsHandled();
}
ResetFinishedPromise();

Expand Down Expand Up @@ -1617,6 +1618,7 @@ void Animation::ResetPendingTasks() {

if (mReady) {
mReady->MaybeReject(NS_ERROR_DOM_ABORT_ERR);
mReady->SetSettledPromiseIsHandled();
mReady = nullptr;
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 5903ac3

Please sign in to comment.