Making docShell not assert when global history can't be added. Someone is doing something stupid in viewer right that makes the service fail.
git-svn-id: svn://10.0.0.236/trunk@66143 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2748,6 +2748,9 @@ NS_IMETHODIMP nsDocShell::ShouldAddToGlobalHistory(nsIURI* aURI,
|
||||
|
||||
NS_IMETHODIMP nsDocShell::AddToGlobalHistory(nsIURI* aURI)
|
||||
{
|
||||
if(NS_FAILED(EnsureGlobalHistory()))
|
||||
return NS_ERROR_FAILURE; // XXX REMOVE THIS!!!!
|
||||
|
||||
NS_ENSURE_SUCCESS(EnsureGlobalHistory(), NS_ERROR_FAILURE);
|
||||
|
||||
nsXPIDLCString spec;
|
||||
|
||||
Reference in New Issue
Block a user