Set Weave component back to using the 'sessionstore-windows-restored' event. Will use a different way of intializing on Fennec.

This commit is contained in:
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 2008-12-19 18:43:36 -08:00
Родитель b05fc7c819
Коммит 9406c1df6c
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -53,9 +53,10 @@ WeaveService.prototype = {
getService(Components.interfaces.nsIObserverService);
os.addObserver(this, "profile-after-change", true);
break;
/* The events "final-ui-startup" and "sessionstore-windows-restored"
* would be better but unfortunately neither one exists in Fennec. */
case "profile-after-change":
/* The following event doesn't exist on Fennec; for Fennec loading, see
* fennec-weave-overlay.js.
*/
case "sessionstore-windows-restored":
Components.utils.import("resource://weave/service.js");
Weave.Service.onStartup();
break;