summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/mochitest/test_cryptomining_annotate.html
blob: ecf5cd02a4bcff6aff41e19b8103f9fcded9b489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE HTML>
<html>
<head>
  <title>Test the relationship between annotation vs blocking - cryptomining</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="features.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>

<body>
<script class="testbody" type="text/javascript">

runTests(SpecialPowers.Ci.nsIClassifiedChannel.CLASSIFIED_CRYPTOMINING,
         [
           ["privacy.trackingprotection.enabled", false],
           ["privacy.trackingprotection.annotate_channels", false],
           ["urlclassifier.features.fingerprinting.annotate.blacklistHosts", ""],
           ["urlclassifier.features.fingerprinting.annotate.blacklistTables", ""],
           ["privacy.trackingprotection.fingerprinting.enabled", false],
           ["privacy.trackingprotection.cryptomining.enabled", true],
           ["urlclassifier.features.socialtracking.annotate.blacklistHosts", ""],
           ["urlclassifier.features.socialtracking.annotate.blacklistTables", ""],
           ["privacy.trackingprotection.socialtracking.enabled", false],
           ["privacy.trackingprotection.emailtracking.enabled", false],
         ],
         false /* a tracking resource */);
SimpleTest.waitForExplicitFinish();

</script>
</body>
</html>