Backed out changeset 0d885ad1419d (bug 1303510)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 09 Jun 2017 11:46:04 +0200
changeset 411307 5eeca8c89ac2a31fbe34c4ad7c329aca6157f7ea
parent 411306 a12026007a59c0483c6d92cbd7faadcdc4d41db1
child 411308 7fc5e5d918915e6d8e8d06289a5c0aabeef75394
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1303510
milestone55.0a1
backs out0d885ad1419d65e06e4e30e3c1ebe9acb5d288ab
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 0d885ad1419d (bug 1303510)
browser/extensions/formautofill/test/browser/browser.ini
browser/extensions/formautofill/test/browser/browser_first_time_use_doorhanger.js
--- a/browser/extensions/formautofill/test/browser/browser.ini
+++ b/browser/extensions/formautofill/test/browser/browser.ini
@@ -1,12 +1,11 @@
 [DEFAULT]
 head = head.js
 
 support-files =
   ../fixtures/autocomplete_basic.html
 
 [browser_check_installed.js]
 [browser_editProfileDialog.js]
-[browser_first_time_use_doorhanger.js]
 [browser_privacyPreferences.js]
 [browser_manageProfilesDialog.js]
 [browser_submission_in_private_mode.js]
deleted file mode 100644
--- a/browser/extensions/formautofill/test/browser/browser_first_time_use_doorhanger.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-
-const FORM_URL = "http://mochi.test:8888/browser/browser/extensions/formautofill/test/browser/autocomplete_basic.html";
-const FTU_PREF = "extensions.formautofill.firstTimeUse";
-const ENABLED_PREF = "extensions.formautofill.addresses.enabled";
-
-registerCleanupFunction(async function() {
-  let addresses = await getAddresses();
-  if (addresses.length) {
-    await removeAddresses(addresses.map(address => address.guid));
-  }
-});
-
-add_task(async function test_first_time_save() {
-  let addresses = await getAddresses();
-  is(addresses.length, 0, "No profile in storage");
-  await SpecialPowers.pushPrefEnv({
-    "set": [
-      [FTU_PREF, true],
-      [ENABLED_PREF, true],
-    ],
-  });
-
-  await BrowserTestUtils.withNewTab({gBrowser, url: FORM_URL},
-    async function(browser) {
-      let promiseShown = BrowserTestUtils.waitForEvent(PopupNotifications.panel,
-                                                       "popupshown");
-      let tabPromise = BrowserTestUtils.waitForNewTab(gBrowser, "about:preferences#privacy");
-      await ContentTask.spawn(browser, null, async function() {
-        content.document.getElementById("organization").focus();
-        content.document.getElementById("organization").value = "Sesame Street";
-        content.document.getElementById("street-address").value = "123 Sesame Street";
-        content.document.getElementById("tel").value = "1-345-345-3456";
-
-        content.document.querySelector("input[type=submit]").click();
-      });
-
-      await promiseShown;
-      let notificationElement = PopupNotifications.panel.firstChild;
-      // Open the panel via link
-      let link = notificationElement.querySelector("popupnotificationcontent label");
-      link.click();
-      let tab = await tabPromise;
-      ok(tab, "Privacy panel opened");
-      await BrowserTestUtils.removeTab(tab);
-    }
-  );
-
-  addresses = await getAddresses();
-  is(addresses.length, 1, "Profile saved");
-  let ftuPref = SpecialPowers.getBoolPref(FTU_PREF);
-  is(ftuPref, false, "First time use flag is false");
-});
-
-add_task(async function test_non_first_time_save() {
-  let addresses = await getAddresses();
-  let ftuPref = SpecialPowers.getBoolPref(FTU_PREF);
-  is(ftuPref, false, "First time use flag is false");
-  is(addresses.length, 1, "1 address in storage");
-
-  await BrowserTestUtils.withNewTab({gBrowser, url: FORM_URL},
-    async function(browser) {
-      await ContentTask.spawn(browser, null, async function() {
-        content.document.getElementById("organization").focus();
-        content.document.getElementById("organization").value = "Mozilla";
-        content.document.getElementById("street-address").value = "331 E. Evelyn Avenue";
-        content.document.getElementById("tel").value = "1-650-903-0800";
-
-        content.document.querySelector("input[type=submit]").click();
-      });
-
-      await new Promise(resolve => setTimeout(resolve, 1000));
-      is(PopupNotifications.panel.state, "closed", "Doorhanger is hidden");
-    }
-  );
-
-  addresses = await getAddresses();
-  is(addresses.length, 2, "Another address saved");
-});