Bug 1567462 - Make the test_redirect_protocol_telemetry.js test collect telemetry data for all products during testing. r=valentin

This test fails on Thunderbird otherwise.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Lankow 2019-12-12 09:04:16 +00:00
Родитель 8c07f4b7ab
Коммит 84cd35c4f7
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -8,6 +8,13 @@ function make_channel(url, callback, ctx) {
}
add_task(async function check_protocols() {
// Enable the collection (during test) for all products so even products
// that don't collect the data will be able to run the test without failure.
Services.prefs.setBoolPref(
"toolkit.telemetry.testing.overrideProductsCheck",
true
);
let httpserv = new HttpServer();
httpserv.registerPathHandler("/redirect", redirectHandler);
httpserv.registerPathHandler("/content", contentHandler);