test_trackingProtection_annotateChannels_wrap1.js (673B)
1 const { UrlClassifierTestUtils } = ChromeUtils.importESModule( 2 "resource://testing-common/UrlClassifierTestUtils.sys.mjs" 3 ); 4 5 function run_test() { 6 do_get_profile(); 7 Services.prefs.setBoolPref( 8 "privacy.trackingprotection.annotate_channels", 9 false 10 ); 11 Services.prefs.setBoolPref( 12 "privacy.trackingprotection.lower_network_priority", 13 false 14 ); 15 do_test_pending(); 16 UrlClassifierTestUtils.addTestTrackers().then(() => { 17 run_test_in_child( 18 "../unit/test_trackingProtection_annotateChannels.js", 19 () => { 20 UrlClassifierTestUtils.cleanupTestTrackers(); 21 do_test_finished(); 22 } 23 ); 24 do_test_finished(); 25 }); 26 }