rem: dialog.destGroup.setAttribute("disabled","true"); dialog.printerRadio.setAttribute("disabled","true"); 
context:     appendPrinterNames:       function (aDataObject)         {           var list = document.getElementById("printerList");           var strDefaultPrinterName = "";          var printerName;          // build popup menu from printer names          while (aDataObject.hasMoreElements()) {            printerName = aDataObject.getNext();            printerName = printerName.QueryInterface(Components.interfaces.nsISupportsString);            var printerNameStr = printerName.toString();            if (strDefaultPrinterName == "")               strDefaultPrinterName = printerNameStr;            list.appendItem(printerNameStr, printerNameStr, getPrinterDescription(printerNameStr));          }          if (strDefaultPrinterName != "") {            this.listElement.removeAttribute("disabled");          } else {            var stringBundle = srGetStrBundle("chrome://global/locale/printing.properties");            this.listElement.setAttribute("value", strDefaultPrinterName);            this.listElement.setAttribute("label", stringBundle.GetStringFromName("noprinter"));            // disable dialog            this.listElement.setAttribute("disabled", "true");            dialog.destGroup.setAttribute("disabled","true");            dialog.printerRadio.setAttribute("disabled","true");            dialog.printerLabel.setAttribute("disabled","true");            dialog.propertiesButton.setAttribute("disabled","true");            dialog.fileRadio.setAttribute("disabled","true");            dialog.printButton.setAttribute("disabled","true");            doEnablePrintToFile(false);          }          return strDefaultPrinterName;        } 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3198e310a5b0deeb5b82582bac728825b59777f2/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js