Bug 1372528 - Change search settings redirects to General section of about:preferences r=jaws

MozReview-Commit-ID: J5biFoOjsXX

--HG--
extra : rebase_source : 770cd42dcf5ee7067d2242971ff972a38953000c
This commit is contained in:
Ricky Chien 2017-06-15 16:22:43 +08:00
Родитель 9b6ee91cd7
Коммит 674483db72
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1600,7 +1600,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
value="&urlbar.searchSuggestionsNotification.changeSettingsUnix;"
accesskey="&urlbar.searchSuggestionsNotification.changeSettingsUnix.accesskey;"
#endif
onclick="openPreferences('general-search');"
onclick="Preferences.get('browser.preferences.useOldOrganization') ? openPreferences('paneSearch') : openPreferences('general-search');"
control="search-suggestions-change-settings"/>
</xul:hbox>
</xul:deck>

Просмотреть файл

@ -1472,7 +1472,13 @@
<method name="showSettings">
<body><![CDATA[
BrowserUITelemetry.countSearchSettingsEvent(this.telemetryOrigin);
openPreferences("general-search", {origin: "contentSearch"});
if (Preferences.get("browser.preferences.useOldOrganization")) {
openPreferences("paneSearch", {origin: "contentSearch"});
} else {
openPreferences("general-search", {origin: "contentSearch"});
}
// If the preference tab was already selected, the panel doesn't
// close itself automatically.
this.popup.hidePopup();