Bug 700835 - Restore plugin caching to work around bad crash bug in latest Apple Java updates. r=josh

This commit is contained in:
Steven Michaud
2011-11-11 19:10:31 -06:00
parent a6f25ff1b3
commit 5969b9c010
5 changed files with 102 additions and 8 deletions

View File

@@ -2485,9 +2485,8 @@ _setvalue(NPP npp, NPPVariable variable, void *result)
}
case NPPVpluginKeepLibraryInMemory: {
// This variable is not supported any more but we'll pretend it is
// so that plugins don't fail on an error return.
return NS_OK;
NPBool bCached = (result != nsnull);
return inst->SetCached(bCached);
}
case NPPVpluginUsesDOMForCursorBool: {