Bug 1582053 - Disable the remote settings database creation instead of the server in web extension xpcshell tests; r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D46664

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2019-09-23 19:28:12 +00:00
parent 78123454f5
commit b234809417
2 changed files with 11 additions and 0 deletions

View File

@ -910,6 +910,14 @@ var ExtensionTestUtils = {
"services.settings.server",
"http://localhost:7777/remote-settings-dummy/v1"
);
// Make sure that loading the default settings for url-classifier-skip-urls
// doesn't interfere with running our tests while IDB operations are in
// flight by overriding the default remote settings bucket pref name to
// ensure that the IDB database isn't created in the first place.
Services.prefs.setStringPref(
"services.settings.default_bucket",
"nonexistent-bucket-foo"
);
},
addonManagerStarted: false,

View File

@ -17,6 +17,9 @@ add_task(async function test_userContextId_proxy_onRequest() {
background() {
browser.proxy.onRequest.addListener(
async details => {
if (details.url != "http://example.com/dummy") {
return;
}
browser.test.assertEq(
details.cookieStoreId,
"firefox-container-2",