зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1094362 - Completely disable update prefs for reftest. r=vingtetun, r=jgriffin
When running reftests on Mulet, we do not want that forced update checking gets triggered. We can block this by setting the following prefs: - app.update.enabled to false - app.update.url.override and app.update.url to empty string We also disable tiles-related pinging and downloading by setting empy values for: - browser.newtabpage.directory.source - browser.newtabpage.directory.ping Gaia also does force check app updates at some point, so we introduce a new pref, webapps.update.enabled, that we can use to make sure webapps update won't be triggered.
This commit is contained in:
Родитель
be2fd59f5d
Коммит
2b2037cf77
|
@ -610,6 +610,9 @@ pref("app.update.log", true);
|
|||
pref("shutdown.watchdog.timeoutSecs", -1);
|
||||
#endif
|
||||
|
||||
// Allow webapps update checking
|
||||
pref("webapps.update.enabled", true);
|
||||
|
||||
// Check daily for apps updates.
|
||||
pref("webapps.update.interval", 86400);
|
||||
|
||||
|
|
|
@ -60,6 +60,15 @@ this.WebappsUpdater = {
|
|||
return;
|
||||
}
|
||||
|
||||
let allowUpdate = true;
|
||||
try {
|
||||
allowUpdate = Services.prefs.getBoolPref("webapps.update.enabled");
|
||||
} catch (ex) { }
|
||||
|
||||
if (!allowUpdate) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._checkingApps = true;
|
||||
|
||||
let self = this;
|
||||
|
|
|
@ -118,6 +118,15 @@ class B2GDesktopReftest(RefTest):
|
|||
"app://test-container.gaiamobile.org/index.html"
|
||||
prefs["b2g.system_manifest_url"] = \
|
||||
"app://test-container.gaiamobile.org/manifest.webapp"
|
||||
# Make sure we disable system updates
|
||||
prefs["app.update.enabled"] = False
|
||||
prefs["app.update.url"] = ""
|
||||
prefs["app.update.url.override"] = ""
|
||||
# Disable webapp updates
|
||||
prefs["webapps.update.enabled"] = False
|
||||
# Disable tiles also
|
||||
prefs["browser.newtabpage.directory.source"] = ""
|
||||
prefs["browser.newtabpage.directory.ping"] = ""
|
||||
prefs["dom.ipc.tabs.disabled"] = False
|
||||
prefs["dom.mozBrowserFramesEnabled"] = True
|
||||
prefs["font.size.inflation.emPerLine"] = 0
|
||||
|
|
|
@ -443,6 +443,15 @@ class B2GRemoteReftest(RefTest):
|
|||
# Set a future policy version to avoid the telemetry prompt.
|
||||
prefs["toolkit.telemetry.prompted"] = 999
|
||||
prefs["toolkit.telemetry.notifiedOptOut"] = 999
|
||||
# Make sure we disable system updates
|
||||
prefs["app.update.enabled"] = False
|
||||
prefs["app.update.url"] = ""
|
||||
prefs["app.update.url.override"] = ""
|
||||
# Disable webapp updates
|
||||
prefs["webapps.update.enabled"] = False
|
||||
# Disable tiles also
|
||||
prefs["browser.newtabpage.directory.source"] = ""
|
||||
prefs["browser.newtabpage.directory.ping"] = ""
|
||||
|
||||
if options.oop:
|
||||
prefs['browser.tabs.remote.autostart'] = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче