Bug 633413, don't bfcache so often, part 2, r=bz, a=blocker

--HG--
extra : rebase_source : 434c40c52237a3f6b35916288579ab6572e702ff
This commit is contained in:
Olli Pettay 2011-02-15 13:41:38 +02:00
parent 529c2d2e6b
commit d7cd28c72a

View File

@ -6565,6 +6565,13 @@ nsDocShell::CanSavePresentation(PRUint32 aLoadType,
if (!mOSHE)
return PR_FALSE; // no entry to save into
nsCOMPtr<nsIContentViewer> viewer;
mOSHE->GetContentViewer(getter_AddRefs(viewer));
if (viewer) {
NS_WARNING("mOSHE already has a content viewer!");
return PR_FALSE;
}
// Only save presentation for "normal" loads and link loads. Anything else
// probably wants to refetch the page, so caching the old presentation
// would be incorrect.