diff --git a/dom/base/crashtests/1780790.html b/dom/base/crashtests/1780790.html deleted file mode 100644 index 0bc4364763a2..000000000000 --- a/dom/base/crashtests/1780790.html +++ /dev/null @@ -1,15 +0,0 @@ - -
- - - - - - diff --git a/dom/base/crashtests/crashtests.list b/dom/base/crashtests/crashtests.list index 4e83d4a013f3..c8eff9409817 100644 --- a/dom/base/crashtests/crashtests.list +++ b/dom/base/crashtests/crashtests.list @@ -267,4 +267,3 @@ skip-if(ThreadSanitizer||Android) load 1712198.html # Mysterious failure that sh skip-if(Android) HTTP load 1728670-1.html load 1757923.html load 1766472.html -load 1780790.html diff --git a/dom/webscheduling/WebTaskScheduler.cpp b/dom/webscheduling/WebTaskScheduler.cpp index fa920b478724..610ddb8dc1d5 100644 --- a/dom/webscheduling/WebTaskScheduler.cpp +++ b/dom/webscheduling/WebTaskScheduler.cpp @@ -109,10 +109,12 @@ bool WebTask::Run() { MOZ_ASSERT_IF(promiseState != Promise::PromiseState::Pending, promiseState == Promise::PromiseState::Rejected); - if (error.Failed()) { - mPromise->MaybeReject(std::move(error)); - } else { - mPromise->MaybeResolve(returnVal); + if (promiseState == Promise::PromiseState::Pending) { + if (error.Failed()) { + mPromise->MaybeReject(std::move(error)); + } else { + mPromise->MaybeResolve(returnVal); + } } MOZ_ASSERT(!isInList());