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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user