Bug 1368072 - Use idleDispatchToMainThread instead. r=mconley

Adapt to the move of nsIThread.idleDispatch to
nsIThreadManager.idleDispatchToMainThread.
This commit is contained in:
Andreas Farre 2017-06-14 11:34:46 +02:00
Родитель 2a8a39cf8e
Коммит 36c8d2c7f7
2 изменённых файлов: 5 добавлений и 4 удалений

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

@ -1181,7 +1181,7 @@ BrowserGlue.prototype = {
}
// Let's load the contextual identities.
Services.tm.mainThread.idleDispatch(() => {
Services.tm.idleDispatchToMainThread(() => {
ContextualIdentityService.load();
});

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

@ -68,9 +68,10 @@ startupRecorder.prototype = {
Services.obs.removeObserver(this, topic);
if (topic == "sessionstore-windows-restored") {
// We use idleDispatch here to record the set of loaded scripts after we
// are fully done with startup and ready to react to user events.
Services.tm.mainThread.idleDispatch(
// We use idleDispatchToMainThread here to record the set of
// loaded scripts after we are fully done with startup and ready
// to react to user events.
Services.tm.idleDispatchToMainThread(
this.record.bind(this, "before handling user events"));
} else {
const topicsToNames = {