Bug 347457: If a readonly engine has updates, and the icon load callback runs first, an exception is thrown, r=mconnor

git-svn-id: svn://10.0.0.236/trunk@206689 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2006-08-06 20:30:37 +00:00
parent 4890ee3dfb
commit 96df566be1

View File

@@ -1161,11 +1161,6 @@ Engine.prototype = {
if (aEngine._engineToUpdate) {
engineToUpdate = aEngine._engineToUpdate.wrappedJSObject;
if (engineToUpdate._readOnly) {
LOG("_onLoad: Can't update readonly engine!");
return;
}
// Make this new engine use the old engine's file.
aEngine._file = engineToUpdate._file;
}
@@ -2888,7 +2883,7 @@ var engineUpdateService = {
ULOG("currentTime: " + currentTime);
for each (engine in searchService.getEngines({})) {
engine = engine.wrappedJSObject;
if (!engine._hasUpdates)
if (!engine._hasUpdates || engine._readOnly)
continue;
ULOG("checking " + engine.name);