diff --git a/mozilla/docshell/base/nsDSURIContentListener.cpp b/mozilla/docshell/base/nsDSURIContentListener.cpp index 59769cf5a5e..e8a8a0e12b8 100644 --- a/mozilla/docshell/base/nsDSURIContentListener.cpp +++ b/mozilla/docshell/base/nsDSURIContentListener.cpp @@ -94,12 +94,12 @@ nsDSURIContentListener::DoContent(const char* aContentType, if (aOpenedChannel) aOpenedChannel->GetLoadFlags(&loadFlags); - mDocShell->SetLoadType(aIsContentPreferred ? LOAD_LINK : LOAD_NORMAL); - if(loadFlags & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI) { // XXX: Why does this not stop the content too? mDocShell->Stop(nsIWebNavigation::STOP_NETWORK); + + mDocShell->SetLoadType(aIsContentPreferred ? LOAD_LINK : LOAD_NORMAL); } rv = mDocShell->CreateContentViewer(aContentType, request, aContentHandler);