From a79f88513f0c9b51ce3d114c6470d6df57baa337 Mon Sep 17 00:00:00 2001 From: "bugzilla%arlen.demon.co.uk" Date: Sun, 1 Jan 2006 11:31:40 +0000 Subject: [PATCH] Bug 321981 (nsContextMenu.js) Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBoolPref is not a function p=me r=neil.parkwaycc.co.uk sr=jag --- xpfe/communicator/resources/content/nsContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpfe/communicator/resources/content/nsContextMenu.js b/xpfe/communicator/resources/content/nsContextMenu.js index 8487c6ed3f3a..054b84c2ebe8 100644 --- a/xpfe/communicator/resources/content/nsContextMenu.js +++ b/xpfe/communicator/resources/content/nsContextMenu.js @@ -279,7 +279,7 @@ nsContextMenu.prototype = { this.target = node; this.autoDownload = Components.classes["@mozilla.org/preferences-service;1"] - .getService(Components.interfaces.nsIPrefService) + .getService(Components.interfaces.nsIPrefBranch) .getBoolPref("browser.download.autoDownload"); // See if the user clicked on an image.