зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1683176 - Call OnCredsGenerated when GetNextTokenCompleteEvent is canceled r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D100057
This commit is contained in:
Родитель
119114fe59
Коммит
50d34b6e87
|
@ -305,6 +305,10 @@ class GetNextTokenCompleteEvent final : public nsIRunnable,
|
|||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
mCancelled = true;
|
||||
nsCOMPtr<nsIHttpAuthenticatorCallback> callback = std::move(mCallback);
|
||||
if (callback) {
|
||||
callback->OnCredsGenerated(mCreds, mFlags, aReason, nullptr, nullptr);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче