rem: var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] .getService(Components.interfaces.nsIPrintOptions); if (gPrintSettings == null) { gPrintSettings = printOptionsService.CreatePrintSettings(); }  
context: function BrowserPrintPreview(){  var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"]                                         .getService(Components.interfaces.nsIPrintOptions);  if (gPrintSettings == null) {    gPrintSettings = printOptionsService.CreatePrintSettings();  }  // using _content.printPreview() until printing becomes scriptable on docShell  try {    _content.printPreview(gPrintSettings);  } catch (e) {    // Pressing cancel is expressed as an NS_ERROR_FAILURE 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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/9658379654be61450ad8e0fb7bd60e4caa5c05c7/browser.js/clean/suite/browser/browser.js