Bug 1563905 - Enable eTLD+1 login lookup in test_basic_form_autocomplete_subdomain.html. r=jaws a=test-only
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Mon, 08 Jul 2019 17:33:39 +0000
changeset 544462 e92c6b3eef13bfaddc16eb783582a0b8bbc9ccce
parent 544461 f22e55b4325936220489dc7f07bb06c90fcbd7ae
child 544463 469b176bd4b42a6db4e40ef338b60af21b5dd727
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, test-only
bugs1563905
milestone69.0
Bug 1563905 - Enable eTLD+1 login lookup in test_basic_form_autocomplete_subdomain.html. r=jaws a=test-only Differential Revision: https://phabricator.services.mozilla.com/D37298
toolkit/components/passwordmgr/test/mochitest/test_basic_form_autocomplete_subdomain.html
--- a/toolkit/components/passwordmgr/test/mochitest/test_basic_form_autocomplete_subdomain.html
+++ b/toolkit/components/passwordmgr/test/mochitest/test_basic_form_autocomplete_subdomain.html
@@ -73,16 +73,22 @@ function restoreForm() {
   uname.focus();
 }
 
 function spinEventLoop() {
   return Promise.resolve();
 }
 
 add_task(async function setup() {
+  await SpecialPowers.pushPrefEnv({
+    set: [
+      ["signon.includeOtherSubdomainsInLookup", true],
+      ["signon.showAutoCompleteOrigins", true],
+    ],
+  });
   listenForUnexpectedPopupShown();
 });
 
 add_task(async function test_form1_initial_empty() {
   await SimpleTest.promiseFocus(window);
 
   // Make sure initial form is empty.
   checkLoginForm(uname, "", pword, "");