Bug 857883, don't assert about readyState when not needed, r=bz

This commit is contained in:
Olli Pettay
2013-05-15 14:35:41 +03:00
parent 05fc0de0ae
commit ffe0af090f
2 changed files with 6 additions and 3 deletions

View File

@@ -4595,8 +4595,10 @@ nsDocShell::Stop(uint32_t aStopFlags)
if (nsIWebNavigation::STOP_CONTENT & aStopFlags) {
// Stop the document loading
if (mContentViewer)
mContentViewer->Stop();
if (mContentViewer) {
nsCOMPtr<nsIContentViewer> cv = mContentViewer;
cv->Stop();
}
}
if (nsIWebNavigation::STOP_NETWORK & aStopFlags) {