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 5abeb6d6a7
commit 5db35d415f

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;