Bug 855402. Don't try to write to the startup cache if there isn't one, and definitely don't start _thinking_ we've written to it. r=ehsan

This commit is contained in:
Michael Harrison 2013-04-11 14:32:12 -04:00
parent a364a66c5b
commit 3553c073a7

View File

@ -324,6 +324,9 @@ nsXULPrototypeCache::WritePrototype(nsXULPrototypeDocument* aPrototypeDocument)
{
nsresult rv = NS_OK, rv2 = NS_OK;
if (!StartupCache::GetSingleton())
return NS_OK;
nsCOMPtr<nsIURI> protoURI = aPrototypeDocument->GetURI();
nsCOMPtr<nsIObjectOutputStream> oos;