protocolSvc.loadUrl(uri); # If we're a browser, open a new browser window instead. #else  if (window.opener && window.opener.openUILinkIn) { var newWindowPref = gPref.getIntPref("browser.link.open_newwindow"); var where = newWindowPref == 3 ? "tab" : "window"; window.opener.openUILinkIn(aURL, where); } else openDialog("chrome: #endif 
 if (!protocolSvc.isExposedProtocol(uri.scheme)) {  protocolSvc.loadUrl(uri); } else { var loadgroup = Components.classes["@mozilla.org/network/load-group;1"] .createInstance(nsILoadGroup); var appstartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] .getService(nsIAppStartup);  var loadListener = { onStartRequest: function ll_start(aRequest, aContext) { appstartup.enterLastWindowClosingSurvivalArea(); }, onStopRequest: function ll_stop(aRequest, aContext, aStatusCode) { appstartup.exitLastWindowClosingSurvivalArea(); }, QueryInterface: function ll_QI(iid) { if (iid.equals(Components.interfaces.nsISupports) || iid.equals(Components.interfaces.nsIRequestObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) return this; throw Components.results.NS_ERROR_NO_INTERFACE; } } loadgroup.groupObserver = loadListener;  var uriListener = { onStartURIOpen: function(uri) { return false; }, doContent: function(ctype, preferred, request, handler) { return false; }, isPreferred: function(ctype, desired) { return false; }, canHandleContent: function(ctype, preferred, desired) { return false; }, loadCookie: null, parentContentListener: null, getInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener)) return this; if (iid.equals(nsILoadGroup)) return loadgroup; throw Components.results.NS_ERROR_NO_INTERFACE; } }  var channel = ios.newChannelFromURI(uri); var uriLoader = Components.classes["@mozilla.org/uriloader;1"] .getService(Components.interfaces.nsIURILoader); uriLoader.openURI(channel, true, uriListener); } 
function openURL(aURL){# If we're not Firefox, use the external protocol service to load the URI.#ifndef MOZ_PHOENIX  var uri = Components.classes["@mozilla.org/network/io-service;1"]                      .getService(nsIIOService).newURI(aURL, null, null);  var protocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"]                              .getService(Components.interfaces.nsIExternalProtocolService);  protocolSvc.loadUrl(uri);# If we're a browser, open a new browser window instead.    #else  // bug 262575  if (window.opener && window.opener.openUILinkIn) {    var newWindowPref = gPref.getIntPref("browser.link.open_newwindow");    var where = newWindowPref == 3 ? "tab" : "window";    window.opener.openUILinkIn(aURL, where);  } else    openDialog("chrome://browser/content/browser.xul", "_blank", "chrome,all,dialog=no", aURL, null, null);#endif}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/30fb1f44bb5e132be44ad4766433ad317d711c70/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js