var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); 
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); 
    that.openPreferences = function() {        var optionsURL = 'chrome://itsalltext/chrome/preferences.xul';        /* This code is borrowed from           chrome://mozapps/content/extensions/extensions.js            about line 980           It fixes the problem with Macs not getting a close button.         */        var features;        try {            var prefs = Components.classes["@mozilla.org/preferences-service;1"]                .getService(Components.interfaces.nsIPrefBranch);            instantApply = prefs.getBoolPref("browser.preferences.instantApply");            features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal");        } catch (e) {            features = "chrome,titlebar,toolbar,centerscreen,modal";        }        window.openDialog(optionsURL, "", features);    };
4040	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4040/a9333ca45b81c295c7abcb73df3a0bdd8db7a03b/itsalltext.js/clean/chrome/content/itsalltext.js