rem: var shell = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService); if ("shouldBeDefaultBrowser" in parent && parent.shouldBeDefautBrowser) 
add: var shell = getShellService(); if (shell && "shouldBeDefaultBrowser" in parent && parent.shouldBeDefautBrowser) 
context: function onOK() {  if (!('homepage' in parent))     return;  // Replace pipes with commas to look nicer.  parent.homepage = parent.homepage.replace(/\|/g,', ');    var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);  var eb = windowManagerInterface.getEnumerator("navigator:browser");  while (eb.hasMoreElements()) {    // Update the home button tooltip.    var domWin = eb.getNext().QueryInterface(Components.interfaces.nsIDOMWindow);    var homeButton = domWin.document.getElementById("home-button");    if (homeButton)      homeButton.setAttribute("tooltiptext", parent.homepage);  }  var shell = Components.classes["@mozilla.org/browser/shell-service;1"]                        .getService(Components.interfaces.nsIShellService);        if ("shouldBeDefaultBrowser" in parent && parent.shouldBeDefautBrowser)    shell.setDefaultBrowser(true, false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/27730e1df0ce18d780418d217500fab6793c9c81/pref-navigator.js/clean/browser/components/prefwindow/content/pref-navigator.js