Bug 1148854 - Part 2: Resume the intercepted network reuest if the interception fails for some reason; r=jdm

This commit is contained in:
Ehsan Akhgari 2015-03-30 21:36:26 -04:00
Родитель 72ef6b42e1
Коммит 54a6fed4fc
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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