.getService(Components.interfaces.nsIPrefBranch); 
.getService(Components.interfaces.nsIPrefBranch); 
function onDownloadOpen(aEvent){  if (aEvent.type == "dblclick" && aEvent.button != 0)    return;  var download = aEvent.target;  if (download.localName == "download") {    if (download.openable) {      var f = getLocalFileFromNativePathOrUrl(aEvent.target.id);      if (f.exists()) {        if (f.isExecutable()) {          var dontAsk = false;          var pref = Components.classes["@mozilla.org/preferences-service;1"]                              .getService(Components.interfaces.nsIPrefBranch);          try {            dontAsk = !pref.getBoolPref(PREF_BDM_ALERTONEXEOPEN);          }          catch (e) { }                    if (!dontAsk) {            var strings = document.getElementById("downloadStrings");            var name = aEvent.target.getAttribute("target");            var message = strings.getFormattedString("fileExecutableSecurityWarning", [name, name]);            var title = strings.getString("fileExecutableSecurityWarningTitle");            var dontAsk = strings.getString("fileExecutableSecurityWarningDontAsk");            var promptSvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);            var checkbox = { value: false };            var open = promptSvc.confirmCheck(window, title, message, dontAsk, checkbox);                        if (!open)               return;            else              pref.setBoolPref(PREF_BDM_ALERTONEXEOPEN, !checkbox.value);                        }                }        try {          f.launch();        } catch (ex) {          // if launch fails, try sending it through the system's external          // file: URL handler          openExternal(f);        }      }      else {        var brandStrings = document.getElementById("brandStrings");        var appName = brandStrings.getString("brandShortName");              var strings = document.getElementById("downloadStrings");        var name = aEvent.target.getAttribute("target");        var message = strings.getFormattedString("fileDoesNotExistError", [name, appName]);        var title = strings.getFormattedString("fileDoesNotExistOpenTitle", [name]);        var promptSvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);        promptSvc.alert(window, title, message);      }    }    else if(download.canceledOrFailed) {      // If the user canceled this download, double clicking tries again.       fireEventForElement(download, "retry")    }  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/5089b2dda415f7e24f05d326fd9f480edfca8ee5/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js