fix js error introduced by the checkin for bug 223908 (see that bug for this patch)

patch by durbacher@gmx.de (Andreas Kunz) r=neil@parkwaycc.co.uk sr=mscott


git-svn-id: svn://10.0.0.236/trunk@150997 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2004-01-07 22:21:51 +00:00
parent 72c2779269
commit 415632c17b

View File

@@ -509,7 +509,8 @@ function utilityOnLoad(aEvent)
var prefService = Components.classes["@mozilla.org/preferences-service;1"];
prefService = prefService.getService(Components.interfaces.nsIPrefService);
var prefBranch = prefService.getBranch(null);
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal);
prefBranch.addObserver("network.proxy.type", proxyTypeObserver, false);
addEventListener("unload", utilityOnUnload, false);
@@ -528,6 +529,7 @@ function utilityOnUnload(aEvent)
var prefService = Components.classes["@mozilla.org/preferences-service;1"];
prefService = prefService.getService(Components.interfaces.nsIPrefService);
var prefBranch = prefService.getBranch(null);
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal);
prefBranch.removeObserver("network.proxy.type", proxyTypeObserver);
}