зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267733 P3 Trigger service worker update after failed interception. r=jdm
This commit is contained in:
Родитель
2623d70dd2
Коммит
c9b282c4c6
|
@ -112,8 +112,8 @@ NS_IMETHODIMP
|
|||
CancelChannelRunnable::Run()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
nsresult rv = mChannel->Cancel(mStatus);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
mChannel->Cancel(mStatus);
|
||||
mRegistration->MaybeScheduleUpdate();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -1377,10 +1377,6 @@ private:
|
|||
}
|
||||
|
||||
if (!runnable) {
|
||||
nsCOMPtr<nsIRunnable> updateRunnable =
|
||||
new RegistrationUpdateRunnable(mRegistration, false /* time check */);
|
||||
NS_DispatchToMainThread(runnable.forget());
|
||||
|
||||
runnable = new CancelChannelRunnable(mInterceptedChannel,
|
||||
mRegistration,
|
||||
NS_ERROR_INTERCEPTION_FAILED);
|
||||
|
|
Загрузка…
Ссылка в новой задаче