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:
tbogard%aol.net
2000-04-16 13:01:28 +00:00
parent ce7c50e021
commit 424c54ff18

View File

@@ -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;