Backed out changeset d8ead6a3396d (bug 1525976) as requested by nhnt11 in bug 1535970.
authorBrindusan Cristian <cbrindusan@mozilla.com>
Mon, 18 Mar 2019 09:21:09 +0200
changeset 522620 091fdeb8c9ca58a3ab6c00368828448fed62b4bd
parent 522616 cdd0849c3c1121ed0f943844ec56994cbdec4515
child 522621 075d0e6434cc74054eeefb2a768d7629e9f2de95
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1525976, 1535970
milestone67.0a1
backs outd8ead6a3396d08a4f5b38188ae5130a484b39ea3
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 d8ead6a3396d (bug 1525976) as requested by nhnt11 in bug 1535970.
browser/extensions/fxmonitor/moz.build
browser/extensions/fxmonitor/test/browser/.eslintrc.js
browser/extensions/fxmonitor/test/browser/browser.ini
browser/extensions/fxmonitor/test/browser/browser_fxmonitor_doorhanger.js
--- a/browser/extensions/fxmonitor/moz.build
+++ b/browser/extensions/fxmonitor/moz.build
@@ -27,12 +27,10 @@ FINAL_TARGET_FILES.features['fxmonitor@m
 ]
 
 FINAL_TARGET_FILES.features['fxmonitor@mozilla.org']['privileged']['subscripts'] += [
   'privileged/subscripts/EveryWindow.jsm',
   'privileged/subscripts/Globals.jsm',
   'privileged/subscripts/PanelUI.jsm'
 ]
 
-BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
-
 with Files('**'):
   BUG_COMPONENT = ('Firefox', 'Firefox Monitor')
deleted file mode 100644
--- a/browser/extensions/fxmonitor/test/browser/.eslintrc.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": [
-    "plugin:mozilla/browser-test"
-  ]
-};
deleted file mode 100644
--- a/browser/extensions/fxmonitor/test/browser/browser.ini
+++ /dev/null
@@ -1,1 +0,0 @@
-[browser_fxmonitor_doorhanger.js]
deleted file mode 100644
--- a/browser/extensions/fxmonitor/test/browser/browser_fxmonitor_doorhanger.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-ChromeUtils.defineModuleGetter(this, "RemoteSettings",
-                               "resource://services-settings/remote-settings.js");
-
-const kNotificationId = "fxmonitor";
-const kRemoteSettingsKey = "fxmonitor-breaches";
-
-async function fxmonitorNotificationShown() {
-  await TestUtils.waitForCondition(() => {
-    return PopupNotifications.getNotification(kNotificationId);
-  });
-  ok(true, "Firefox Monitor PopupNotification was added.");
-}
-
-add_task(async function test_remotesettings_get() {
-  // Pre-populate the Remote Settings collection with a breach.
-  let collection = await RemoteSettings(kRemoteSettingsKey).openCollection();
-  let BreachDate = new Date();
-  let AddedDate = new Date();
-  await collection.create({
-    Domain: "example.com",
-    Name: "Example Site",
-    BreachDate: `${BreachDate.getFullYear()}-${BreachDate.getMonth()}-${BreachDate.getDate()}`,
-    AddedDate: `${AddedDate.getFullYear()}-${AddedDate.getMonth()}-${AddedDate.getDate()}`,
-    PwnCount: 1000000,
-  });
-  await collection.db.saveLastModified(1234567);
-
-  // Enable the extension.
-  await SpecialPowers.pushPrefEnv({
-    set: [["extensions.fxmonitor.enabled", true]],
-  });
-
-  // Open a tab and wait for the alert.
-  let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "http://example.com");
-  await fxmonitorNotificationShown();
-
-  // Clean up.
-  BrowserTestUtils.removeTab(tab);
-  await collection.clear();
-  await SpecialPowers.pushPrefEnv({
-    clear: [["extensions.fxmonitor.enabled"],
-            ["extensions.fxmonitor.warnedHosts"],
-            ["extensions.fxmonitor.firstAlertShown"]],
-  });
-});