rem: var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); 
add: var ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); 
context: function FinishPrintPreview(){  gInPrintPreviewMode = true;  var browser = getBrowser();  try {    var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);    var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);         if (webBrowserPrint) {      gPrintSettings = GetPrintSettings();      webBrowserPrint.printPreview(gPrintSettings, null, gWebProgress.value);    }    browser.setAttribute("handleCtrlPageUpDown", "false");    var mainWin = document.getElementById("main-window");    // save previous close handler to restoreon exiting print preview mode    if (mainWin.hasAttribute("onclose"))      gOldCloseHandler = mainWin.getAttribute("onclose");    else      gOldCloseHandler = null;    mainWin.setAttribute("onclose", "BrowserExitPrintPreview(); return false;");     // show the toolbar after we go into print preview mode so    // that we can initialize the toolbar with total num pages    showPrintPreviewToolbar();    _content.focus();  } 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  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2d615b33f1278e79940a8b238593a0fe94b879a0/browser.js/clean/suite/browser/browser.js