diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 7d9d4c7b4445..3734ef6e4099 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -4543,7 +4543,8 @@ nsDocShell::CreateContentViewer(const char *aContentType, loadGroup->AddRequest(request, nsnull); if (currentLoadGroup) - currentLoadGroup->RemoveRequest(request, nsnull, NS_OK); + currentLoadGroup->RemoveRequest(request, nsnull, + NS_BINDING_RETARGETED); // Update the notification callbacks, so that progress and // status information are sent to the right docshell... diff --git a/uriloader/base/nsDocLoader.cpp b/uriloader/base/nsDocLoader.cpp index 9ed0de303182..87188cd7b937 100644 --- a/uriloader/base/nsDocLoader.cpp +++ b/uriloader/base/nsDocLoader.cpp @@ -633,10 +633,11 @@ nsDocLoaderImpl::OnStopRequest(nsIRequest *aRequest, } // // If the request failed (for any reason other than being - // redirected), the TRANSFERRING notification can still be fired - // if a HTTP connection was established to a server. + // redirected or retargeted), the TRANSFERRING notification can + // still be fired if a HTTP connection was established to a server. // - else if (aStatus != NS_BINDING_REDIRECTED) { + else if (aStatus != NS_BINDING_REDIRECTED && + aStatus != NS_BINDING_RETARGETED) { nsCOMPtr httpChannel(do_QueryInterface(aRequest)); if (httpChannel) { diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index dc58461ac0d9..f6e2bcc84cbe 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -1226,7 +1226,7 @@ void nsExternalAppHandler::RetargetLoadNotifications(nsIRequest *request) aChannel->GetLoadGroup(getter_AddRefs(oldLoadGroup)); if(oldLoadGroup) - oldLoadGroup->RemoveRequest(request, nsnull, NS_OK); + oldLoadGroup->RemoveRequest(request, nsnull, NS_BINDING_RETARGETED); aChannel->SetLoadGroup(nsnull); aChannel->SetNotificationCallbacks(nsnull);