Bug 1431274 - Move the "Allow Firefox to install and run studies" checkbox to the below of the "Allow Nightly to send technical and interaction data to Mozilla" checkbox to match spec. r=jaws

MozReview-Commit-ID: S3vrVmtILl

--HG--
extra : rebase_source : 4e92bf0fff63d6431bb7b87260b62b1dc44d76c7
This commit is contained in:
Evan Tseng 2018-01-18 10:06:46 +08:00
Родитель 0aa86b9a19
Коммит aa257c4fc1
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -109,7 +109,8 @@ this.ShieldPreferences = {
checkbox.setAttribute("class", "tail-with-learn-more");
checkbox.setAttribute("label", "Allow Firefox to install and run studies");
checkbox.setAttribute("preference", OPT_OUT_STUDIES_ENABLED_PREF);
checkbox.setAttribute("disabled", !Services.prefs.getBoolPref(FHR_UPLOAD_ENABLED_PREF));
checkbox.setAttribute("disabled", Services.prefs.prefIsLocked(FHR_UPLOAD_ENABLED_PREF) ||
!AppConstants.MOZ_TELEMETRY_REPORTING);
hContainer.appendChild(checkbox);
const viewStudies = doc.createElementNS(XUL_NS, "label");
@ -137,7 +138,7 @@ this.ShieldPreferences = {
});
// Actually inject the elements we've created.
const parent = doc.getElementById("submitHealthReportBox").closest("vbox");
const parent = doc.getElementById("submitHealthReportBox").closest("description");
parent.appendChild(container);
},
};