Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / netwerk / test / unit_ipc / test_trackingProtection_annotateChannels_wrap2.js
blobab5eb356fdf79c8e6fbd451bbe4672e93f268782
1 const { UrlClassifierTestUtils } = ChromeUtils.importESModule(
2   "resource://testing-common/UrlClassifierTestUtils.sys.mjs"
3 );
5 function run_test() {
6   do_get_profile();
7   Services.prefs.setBoolPref(
8     "privacy.trackingprotection.annotate_channels",
9     true
10   );
11   Services.prefs.setBoolPref(
12     "privacy.trackingprotection.lower_network_priority",
13     true
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   });