зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f1f39aa341
Коммит
2f73dfe826
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче