diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-05 13:09:18 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-05 13:09:18 +0200 |
commit | e87d54ad8ae40e8137f8b419a9545e342d437b78 (patch) | |
tree | 1db335b4e626a8ff6df3538494c0a40e836b87f2 /dom/xhr | |
parent | 2156aedac842ea93559d7915671d86ca91bc3d13 (diff) | |
download | uxp-e87d54ad8ae40e8137f8b419a9545e342d437b78.tar.gz |
Bug 1331564 - XHR SyncTeardownRunnable must run also when the worker is in killing state
Diffstat (limited to 'dom/xhr')
-rw-r--r-- | dom/xhr/XMLHttpRequestWorker.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dom/xhr/XMLHttpRequestWorker.cpp b/dom/xhr/XMLHttpRequestWorker.cpp index b5f853a507..c9e892f26a 100644 --- a/dom/xhr/XMLHttpRequestWorker.cpp +++ b/dom/xhr/XMLHttpRequestWorker.cpp @@ -1633,12 +1633,10 @@ XMLHttpRequestWorker::ReleaseProxy(ReleaseType aType) new SyncTeardownRunnable(mWorkerPrivate, mProxy); mProxy = nullptr; - ErrorResult forAssertionsOnly; + IgnoredErrorResult forAssertionsOnly; // This runnable _must_ be executed. - runnable->Dispatch(Killing, forAssertionsOnly); - if (forAssertionsOnly.Failed()) { - NS_ERROR("Failed to dispatch teardown runnable!"); - } + runnable->Dispatch(Dead, forAssertionsOnly); + MOZ_DIAGNOSTIC_ASSERT(!forAssertionsOnly.Failed()); } } } |