From 415632c17b0f98167fb1ed39ec8bb0587e623b3e Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Wed, 7 Jan 2004 22:21:51 +0000 Subject: [PATCH] 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 --- mozilla/xpfe/communicator/resources/content/utilityOverlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/communicator/resources/content/utilityOverlay.js b/mozilla/xpfe/communicator/resources/content/utilityOverlay.js index 054009560d8..25cd439538d 100644 --- a/mozilla/xpfe/communicator/resources/content/utilityOverlay.js +++ b/mozilla/xpfe/communicator/resources/content/utilityOverlay.js @@ -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); }