Fix favicon handling on hash navigation.

This commit is contained in:
Pale Moon
2016-10-13 21:43:05 +02:00
committed by roytam1
parent 4c96c4c3e4
commit 56e86baeed
+4 -4
View File
@@ -10251,10 +10251,6 @@ nsDocShell::InternalLoad2(nsIURI* aURI,
SetDocCurrentStateObj(mOSHE);
// Inform the favicon service that the favicon for oldURI also
// applies to aURI.
CopyFavicon(currentURI, aURI, mInPrivateBrowsing);
nsRefPtr<nsGlobalWindow> win = mScriptGlobal ?
mScriptGlobal->GetCurrentInnerWindowInternal() : nullptr;
@@ -10296,6 +10292,10 @@ nsDocShell::InternalLoad2(nsIURI* aURI,
}
}
// Inform the favicon service that the favicon for oldURI also
// applies to aURI.
CopyFavicon(currentURI, aURI, mInPrivateBrowsing);
return NS_OK;
}
}