Bug 1500103 - Only test return_button_adv and exception_button for new cert error pages. r=nhnt11

exception_button can technically be clicked on the old error pages, too, but conditionally
checking for the cert exception window to pop up is a bit overkill for this temporary workaround.
Ideally we would remove this pref soon anyway.

Differential Revision: https://phabricator.services.mozilla.com/D9243

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Johann Hofmann 2018-10-19 14:21:41 +00:00
parent d7b28163d3
commit e5856b4cf7

View File

@ -51,11 +51,13 @@ add_task(async function checkTelemetryClickEvents() {
"clipboard_button_top",
"clipboard_button_bot",
"return_button_top",
"return_button_adv",
];
if (!useFrame) {
recordedObjects.push("exception_button");
if (Services.prefs.getBoolPref("browser.security.newcerterrorpage.enabled")) {
recordedObjects.push("return_button_adv");
if (!useFrame) {
recordedObjects.push("exception_button");
}
}
for (let object of recordedObjects) {