зеркало из https://github.com/mozilla/gecko-dev.git
Bug 584478 - Resource alias registered too early [r=mconnor]
This commit is contained in:
Родитель
c163a5ae51
Коммит
55360ab174
|
@ -56,12 +56,13 @@ WeaveService.prototype = {
|
|||
switch (topic) {
|
||||
case "app-startup":
|
||||
let os = Cc["@mozilla.org/observer-service;1"].
|
||||
getService(Ci.nsIObserverService);
|
||||
getService(Ci.nsIObserverService);
|
||||
os.addObserver(this, "final-ui-startup", true);
|
||||
this.addResourceAlias();
|
||||
break;
|
||||
|
||||
case "final-ui-startup":
|
||||
this.addResourceAlias();
|
||||
|
||||
// Force Weave service to load if it hasn't triggered from overlays
|
||||
this.timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
this.timer.initWithCallback({
|
||||
|
|
Загрузка…
Ссылка в новой задаче