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 607435 8d9bbed8efd0ca2cad6dc01532c94a3cdd389477
parent 607434 9c96f0963b33dd229219674da101f09eb80e7ca3
child 607436 46a7174bf44d59532d823c989f6125bd9f8ff106
push id67985
push userbmo:emilio+bugs@crisal.io
push dateWed, 12 Jul 2017 08:36:44 +0000
reviewersjaws
bugs1363824
milestone56.0a1
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() {