rem: function obs(aWindow) { this._win = aWindow; } obs.prototype = { _win: null, notify: function (aTimer) { this._win.focus(); } };  var win = ww.openWindow(null, "chrome: "_blank", "chrome,all,dialog=no", ary); var timer = Components.classes["@mozilla.org/timer;1"] .createInstance(Components.interfaces.nsITimer); timer.initWithCallback(new obs(win), 100, Components.interfaces.nsITimer.TYPE_ONE_SHOT); 
add: ww.openWindow(null, "chrome: "_blank", "chrome,all,dialog=no", ary); 
context:   onWizardFinish: function ()  {    if (this.shouldSuggestAutoChecking) {      var pref = Components.classes["@mozilla.org/preferences-service;1"]                           .getService(Components.interfaces.nsIPrefBranch);      pref.setBoolPref("update.extensions.enabled", this.shouldAutoCheck);     }        if (this.updatingApp) {      var updates = Components.classes["@mozilla.org/updates/update-service;1"]                              .getService(Components.interfaces.nsIUpdateService);# If we're not a browser, use the external protocol service to load the URI.#ifndef MOZ_PHOENIX      var uri = Components.classes["@mozilla.org/network/standard-url;1"]                          .createInstance(Components.interfaces.nsIURI);      uri.spec = updates.appUpdateURL;      var protocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"]                                  .getService(Components.interfaces.nsIExternalProtocolService);      if (protocolSvc.isExposedProtocol(uri.scheme))        protocolSvc.loadUrl(uri);# If we're a browser, open a new browser window instead.    #else      var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                        .getService(Components.interfaces.nsIWindowWatcher);      var ary = Components.classes["@mozilla.org/supports-array;1"]                          .createInstance(Components.interfaces.nsISupportsArray);      var url = Components.classes["@mozilla.org/supports-string;1"]                          .createInstance(Components.interfaces.nsISupportsString);      url.data = updates.appUpdateURL;      ary.AppendElement(url);            function obs(aWindow)       {         this._win = aWindow;      }      obs.prototype = {        _win: null,        notify: function (aTimer)        {          this._win.focus();        }      };            var win = ww.openWindow(null, "chrome://browser/content/browser.xul",                              "_blank", "chrome,all,dialog=no", ary);      var timer = Components.classes["@mozilla.org/timer;1"]                            .createInstance(Components.interfaces.nsITimer);      timer.initWithCallback(new obs(win), 100,                              Components.interfaces.nsITimer.TYPE_ONE_SHOT);#endif      // Clear the "app update available" pref as an interim amnesty assuming      // the user actually does install the new version. If they don't, a subsequent      // update check will poke them again.      this.clearAppUpdatePrefs();    }    else {      // Downloading and Installed Extension      this.clearExtensionUpdatePrefs();    }    // Send an event to refresh any FE notification components.     var os = Components.classes["@mozilla.org/observer-service;1"]                       .getService(Components.interfaces.nsIObserverService);    var userEvt = Components.interfaces.nsIUpdateService.SOURCE_EVENT_USER;    os.notifyObservers(null, "Update:Ended", userEvt.toString());  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bea8454b205f7120e28765dc8aca7db388284c22/update.js/clean/toolkit/mozapps/update/content/update.js