зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148854 - Part 2: Resume the intercepted network reuest if the interception fails for some reason; r=jdm
This commit is contained in:
Родитель
72ef6b42e1
Коммит
54a6fed4fc
|
@ -56,8 +56,11 @@ void
|
||||||
InterceptedChannelBase::DoNotifyController()
|
InterceptedChannelBase::DoNotifyController()
|
||||||
{
|
{
|
||||||
nsresult rv = mController->ChannelIntercepted(this);
|
nsresult rv = mController->ChannelIntercepted(this);
|
||||||
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||||
|
rv = ResetInterception();
|
||||||
|
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to resume intercepted network request");
|
||||||
|
}
|
||||||
mController = nullptr;
|
mController = nullptr;
|
||||||
NS_ENSURE_SUCCESS_VOID(rv);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче