Bug 1363824 - about:addons Experiments tab "Telemetry Preferences" link is broken r=jaws
authorRicky Chien <ricky060709@gmail.com>
Mon, 10 Jul 2017 18:28:32 +0800
changeset 368399 8d9bbed8efd0ca2cad6dc01532c94a3cdd389477
parent 368398 9c96f0963b33dd229219674da101f09eb80e7ca3
child 368400 46a7174bf44d59532d823c989f6125bd9f8ff106
push id32164
push userkwierso@gmail.com
push dateThu, 13 Jul 2017 00:58:33 +0000
treeherdermozilla-central@30ea2905130e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1363824
milestone56.0a1
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
Bug 1363824 - about:addons Experiments tab "Telemetry Preferences" link is broken r=jaws MozReview-Commit-ID: DdDZEaTvqCV
toolkit/mozapps/extensions/content/extensions.js
toolkit/mozapps/extensions/test/browser/browser_experiments.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -1504,17 +1504,17 @@ var gViewController = {
       },
       doCommand() {
         let mainWindow = getMainWindowWithPreferencesPane();
         // The advanced subpanes are only supported in the old organization, which will
         // be removed by bug 1349689.
         if (Preferences.get("browser.preferences.useOldOrganization")) {
           mainWindow.openAdvancedPreferences("dataChoicesTab", {origin: "experimentsOpenPref"});
         } else {
-          mainWindow.openPreferences("paneAdvanced", {origin: "experimentsOpenPref"});
+          mainWindow.openPreferences("privacy-reports", {origin: "experimentsOpenPref"});
         }
       },
     },
 
     cmd_showUnsignedExtensions: {
       isEnabled() {
         return true;
       },
--- a/toolkit/mozapps/extensions/test/browser/browser_experiments.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_experiments.js
@@ -159,16 +159,17 @@ add_task(async function testExperimentLe
 
   Services.prefs.clearUserPref("toolkit.telemetry.infoURL");
   await BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 add_task(async function testOpenPreferences() {
   await gCategoryUtilities.openType("experiment");
   let btn = gManagerWindow.document.getElementById("experiments-change-telemetry");
+  Services.prefs.setBoolPref("browser.preferences.useOldOrganization", true);
 
   is_element_visible(btn, "Change telemetry button visible in in-content UI.");
 
   let deferred = Promise.defer();
   Services.obs.addObserver(function observer(prefWin, topic, data) {
     Services.obs.removeObserver(observer, "advanced-pane-loaded");
     info("Advanced preference pane opened.");
     executeSoon(function() {