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.