mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1099332 - Ensure there is no active search engines before test run. r=mak77
This commit is contained in:
parent
d89d54969e
commit
f70b78ed6a
@ -296,3 +296,12 @@ function makeActionURI(action, params) {
|
||||
let url = "moz-action:" + action + "," + JSON.stringify(params);
|
||||
return NetUtil.newURI(url);
|
||||
}
|
||||
|
||||
// Hide all the search engines so they don't influence tests results.
|
||||
add_task(function ensure_no_search_engines() {
|
||||
let count = {};
|
||||
let engines = Services.search.getEngines(count);
|
||||
for (let i = 0; i < count.value; i++) {
|
||||
engines[i].hidden = true;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user