rem: var printPreviewTB = document.createElementNS(XUL_NS, "toolbar"); 
add: printPreviewTB = document.createElementNS(XUL_NS, "toolbar"); 
context:   enterPrintPreview: function ()  {    var webBrowserPrint = this.getWebBrowserPrint();    var printSettings   = this.getPrintSettings();    try {      webBrowserPrint.printPreview(printSettings, null, this._webProgressPP.value);    } catch (e) {      // Pressing cancel is expressed as an NS_ERROR_ABORT return value,      // causing an exception to be thrown which we catch here.      // Unfortunately this will also consume helpful failures, so add a      // dump(e); // if you need to debug    }    var printPreviewTB = document.getElementById("print-preview-toolbar");    if (printPreviewTB) {      printPreviewTB.updateSettings();      return    }    // show the toolbar after we go into print preview mode so    // that we can initialize the toolbar with total num pages    var printPreviewTB = document.createElementNS(XUL_NS, "toolbar");    printPreviewTB.setAttribute("printpreview", true);    printPreviewTB.setAttribute("id", "print-preview-toolbar");    getBrowser().parentNode.insertBefore(printPreviewTB, getBrowser());    // Tab browser...    if ("getStripVisibility" in getBrowser()) {      this._chromeState.hadTabStrip = getBrowser().getStripVisibility();      getBrowser().setStripVisibilityTo(false);    }    // disable chrome shortcuts...    window.addEventListener("keypress", this.onKeyPressPP, true);     _content.focus();        // on Enter PP Call back    if (this._onEnterPP)      this._onEnterPP();  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/85aa29352430fa859fad21c54736d4c03bc8affc/printUtils.js/clean/toolkit/components/printing/content/printUtils.js