Bug 1360864 - Defer the install and update check for the OpenH264 plugin until the browser is idle; r=cpearce,spohl

This commit is contained in:
Ehsan Akhgari 2017-04-29 18:47:25 -04:00
Родитель f1f39aa341
Коммит 2f73dfe826
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1540,13 +1540,13 @@ var gBrowserInit = {
Cu.reportError("Could not end startup crash tracking: " + ex);
}
// Delay this a minute because there's no rush
setTimeout(() => {
// Delay this a minute into the idle time because there's no rush.
requestIdleCallback(() => {
this.gmpInstallManager = new GMPInstallManager();
// We don't really care about the results, if someone is interested they
// can check the log.
this.gmpInstallManager.simpleCheckAndInstall().then(null, () => {});
}, 1000 * 60);
}, {timeout: 1000 * 60});
// Report via telemetry whether we're able to play MP4/H.264/AAC video.
// We suspect that some Windows users have a broken or have not installed