Bug 1746788 - Move the taskbar refresh timer to idle dispatch. r=ianN
Port Bug 1357114 "Move the taskbar refresh timer to idle dispatch"
This commit is contained in:
Родитель
9f2a6f6036
Коммит
d5f5516c7f
|
@ -566,7 +566,7 @@ var WinTaskbarJumpList =
|
|||
notify: function WTBJL_notify(aTimer) {
|
||||
// Add idle observer on the first notification so it doesn't hit startup.
|
||||
this._updateIdleObserver();
|
||||
this.update();
|
||||
Services.tm.idleDispatchToMainThread(() => { this.update(); });
|
||||
},
|
||||
|
||||
observe: function WTBJL_observe(aSubject, aTopic, aData) {
|
||||
|
@ -577,7 +577,7 @@ var WinTaskbarJumpList =
|
|||
this._refreshPrefs();
|
||||
this._updateTimer();
|
||||
this._updateIdleObserver();
|
||||
this.update();
|
||||
Services.tm.idleDispatchToMainThread(() => { this.update(); });
|
||||
break;
|
||||
|
||||
case "profile-before-change":
|
||||
|
|
Загрузка…
Ссылка в новой задаче