Bug 630593 DocShell history gives NS_ERROR_OUT_OF_MEMORY for useGlobalHistory r=bz r=sdwilsh a2.0=mfinkle
This commit is contained in:
@@ -3441,6 +3441,12 @@ nsDocShell::SetUseGlobalHistory(PRBool aUseGlobalHistory)
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No need to initialize mGlobalHistory if IHistory is available.
|
||||||
|
nsCOMPtr<IHistory> history = services::GetHistoryService();
|
||||||
|
if (history) {
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
if (mGlobalHistory) {
|
if (mGlobalHistory) {
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user