mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 633413, don't bfcache so often, part 2, r=bz, a=blocker
--HG-- extra : rebase_source : 434c40c52237a3f6b35916288579ab6572e702ff
This commit is contained in:
parent
529c2d2e6b
commit
d7cd28c72a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user