mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 1042161 - Set dummy URL for GMP addon updates for xpcshell tests. r=jmaher
This commit is contained in:
parent
fd81233901
commit
90fe4a3b19
@ -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) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user