Bug 1360140 - Add Learn More link for the Use recommended performance settings checkbox r=mconley

MozReview-Commit-ID: 3IQAbU3ovhg

--HG--
extra : rebase_source : 0ea3c904448bd61390f352aeea3efdb4eafbc26c
This commit is contained in:
Evan Tseng 2017-05-04 21:31:05 +08:00
Родитель 3abedf0d48
Коммит f0edc88c2a
3 изменённых файлов: 13 добавлений и 4 удалений

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

@ -72,6 +72,10 @@ var gMainPane = {
.BrowserSearch.searchEnginesURL;
addEnginesLink.setAttribute("href", searchEnginesURL);
let performanceSettingsLink = document.getElementById("performanceSettingsLearnMore");
let performanceSettingsUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "performance";
performanceSettingsLink.setAttribute("href", performanceSettingsUrl);
window.addEventListener("click", this);
window.addEventListener("command", this);
window.addEventListener("dragstart", this);

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

@ -565,10 +565,13 @@
<groupbox id="performanceGroup" data-category="paneGeneral" hidden="true">
<caption><label>&performance.label;</label></caption>
<checkbox id="useRecommendedPerformanceSettings"
label="&useRecommendedPerformanceSettings.label;"
accesskey="&useRecommendedPerformanceSettings.accesskey;"
preference="browser.preferences.defaultPerformanceSettings.enabled"/>
<hbox align="center">
<checkbox id="useRecommendedPerformanceSettings"
label="&useRecommendedPerformanceSettings.label;"
accesskey="&useRecommendedPerformanceSettings.accesskey;"
preference="browser.preferences.defaultPerformanceSettings.enabled"/>
<label id="performanceSettingsLearnMore" class="learnMore text-link">&performanceSettingsLearnMore.label;</label>
</hbox>
<description class="indent">&useRecommendedPerformanceSettings.description;</description>
<vbox id="performanceSettings" class="indent" hidden="true">

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

@ -144,6 +144,8 @@
"Recommended performance settings are tailored to your computer.">
<!ENTITY useRecommendedPerformanceSettings.accesskey
"U">
<!ENTITY performanceSettingsLearnMore.label
"Learn more">
<!ENTITY limitContentProcess.label "Content process limit">
<!ENTITY limitContentProcess.description
"More content processes can make &brandShortName; more responsive when using multiple tabs, but will also consume more memory.">