mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 14:30:47 +00:00
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:
parent
a364a66c5b
commit
3553c073a7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user