Bug 1042161 - Set dummy URL for GMP addon updates for xpcshell tests. r=jmaher

This commit is contained in:
Georg Fritzsche 2014-08-08 17:46:25 +02:00
parent c94a818f23
commit 5b0317c11b

View File

@ -1342,3 +1342,13 @@ try {
prefs.setBoolPref("geo.provider.testing", true);
}
} catch (e) { }
// We need to avoid hitting the network with certain components.
try {
if (runningInParent) {
let prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
prefs.setCharPref("media.gmp-manager.url.override", "http://%(server)s/dummy.xml");
}
} catch (e) { }