@whotracksme/reporting 8.0.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/reporting/scenarios/README.md +11 -15
- package/reporting/snapshots/0001/snapshot.json +48 -24
- package/reporting/snapshots/0003/snapshot.json +22 -22
- package/reporting/snapshots/0005/snapshot.json +140 -124
- package/reporting/src/popularity-vote-sanitizer.js +59 -1
- package/reporting/src/request/index.js +14 -0
- package/reporting/src/request/page-store.js +217 -209
- package/reporting/src/request/utils/webrequest.js +0 -5
- package/reporting/test/helpers/scenarios.js +11 -0
- package/reporting/test/popularity-vote-sanitizer.spec.js +54 -12
- package/reporting/test/request/index.spec.js +29 -5
- package/reporting/test/request/index.test.js +107 -116
- package/reporting/test/request/page-store.test.js +251 -83
- package/reporting/test/request/test-pages.js +116 -0
- package/reporting/snapshots/0002/events.log.br +0 -0
- package/reporting/snapshots/0002/snapshot.json +0 -2511
- package/reporting/snapshots/0004/events.log.br +0 -0
- package/reporting/snapshots/0004/snapshot.json +0 -759
- package/reporting/snapshots/0006/events.log.br +0 -0
- package/reporting/snapshots/0006/snapshot.json +0 -5489
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# v9.0.0 (Tue Apr 28 2026)
|
|
2
|
+
|
|
3
|
+
#### 💥 Breaking Change
|
|
4
|
+
|
|
5
|
+
- Request reporter: documentId based attribution [#197](https://github.com/whotracksme/webextension-packages/pull/197) ([@chrmod](https://github.com/chrmod))
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug Fix
|
|
8
|
+
|
|
9
|
+
- Cover another unicode edge case [#201](https://github.com/whotracksme/webextension-packages/pull/201) ([@philipp-classen](https://github.com/philipp-classen))
|
|
10
|
+
- Handle another rate situation where we could end with broken text: [#201](https://github.com/whotracksme/webextension-packages/pull/201) ([@philipp-classen](https://github.com/philipp-classen))
|
|
11
|
+
- Better support for unicode characters. The current fix is not exhaustive, [#201](https://github.com/whotracksme/webextension-packages/pull/201) ([@philipp-classen](https://github.com/philipp-classen))
|
|
12
|
+
|
|
13
|
+
#### Authors: 2
|
|
14
|
+
|
|
15
|
+
- Krzysztof Modras ([@chrmod](https://github.com/chrmod))
|
|
16
|
+
- Philipp Claßen ([@philipp-classen](https://github.com/philipp-classen))
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
1
20
|
# v8.0.2 (Mon Apr 27 2026)
|
|
2
21
|
|
|
3
22
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -24,18 +24,17 @@ present locally — the repository tracks them once pulled. See
|
|
|
24
24
|
|
|
25
25
|
Scenarios actively used by `reporting/test/request/index.test.js`:
|
|
26
26
|
|
|
27
|
-
| Release | Scenario
|
|
28
|
-
| ---------------- |
|
|
29
|
-
| `2026-04-23` | `0001-empty-page`
|
|
30
|
-
| `2026-04-23` | `0002-3rd-party`
|
|
31
|
-
| `2026-04-23` | `
|
|
32
|
-
| `2026-04-23` | `
|
|
33
|
-
| `2026-04-23` | `
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
`
|
|
38
|
-
document-centric attribution paths.
|
|
27
|
+
| Release | Scenario | What it covers |
|
|
28
|
+
| ---------------- | ------------------ | ------------------------------------------------------------------ |
|
|
29
|
+
| `2026-04-23` | `0001-empty-page` | Plain page load with no third-party resources — `requestStats` must stay empty. |
|
|
30
|
+
| `2026-04-23` | `0002-3rd-party` | Page with a single third-party script; verifies detection + the `wtm.attrack.tp_events` report shape. |
|
|
31
|
+
| `2026-04-23` | `0003-prefetch` | `<link rel=prefetch>` to a cross-subdomain URL; the prefetched third party must appear in `tp_events`. |
|
|
32
|
+
| `2026-04-23` | `0004-ping` | Navigator `sendBeacon`/ping endpoints (non-XHR background request). |
|
|
33
|
+
| `2026-04-23` | `0005-preload` | `<link rel=preload>` triggers the tracker path through a different webRequest ordering. |
|
|
34
|
+
| `2026-04-23` | `0006-preconnect` | `<link rel=preconnect>` opens a socket but fires no webRequest — `requestStats` must stay empty. |
|
|
35
|
+
| `2026-04-23` | `0007-prerender` | Prerendered document on a separate tab must not leak third parties into the visible page. |
|
|
36
|
+
| `2026-04-23` | `0008-navigation` | Two successive navigations on the same tab; each page's trackers must be reported to the right page hostname. |
|
|
37
|
+
| `2026-04-23` | `0009-beacon` | Click + `pagehide` beacons fired from the source document during a tab navigation must attribute to that document, not the successor. |
|
|
39
38
|
|
|
40
39
|
Earlier releases (`2024-08-02`, `2024-08-02-1`, `2024-08-02-2`,
|
|
41
40
|
`2024-09-27`, `2024-09-30`) remain available via the on-demand
|
|
@@ -54,11 +53,8 @@ Approximate content (by inspection of `tps` keys):
|
|
|
54
53
|
| Snapshot | Site | Notes |
|
|
55
54
|
| -------- | ------------- | -------------------------------------------------------------- |
|
|
56
55
|
| `0001` | onet.pl | Polish news portal, ~160 third-party domains. |
|
|
57
|
-
| `0002` | onet.pl | Shorter session, ~94 third parties. |
|
|
58
56
|
| `0003` | soundcloud.com| Stream playback, CDN + Statsig + OneTrust. |
|
|
59
|
-
| `0004` | soundcloud.com| Smaller session. |
|
|
60
57
|
| `0005` | nike.com | E-commerce, bluecore + doubleclick + bing. |
|
|
61
|
-
| `0006` | nike.com | Variant session. |
|
|
62
58
|
|
|
63
59
|
The snapshot test replays each events stream twice — the second time with
|
|
64
60
|
URL rewrites (`onet.pl→wp.pl`, `soundcloud.com→google.com`,
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
"ctry": "en",
|
|
6
6
|
"data": [
|
|
7
7
|
{
|
|
8
|
-
"active":
|
|
8
|
+
"active": 479940,
|
|
9
9
|
"c": 1,
|
|
10
10
|
"counter": 0,
|
|
11
11
|
"frames": {},
|
|
12
12
|
"hostname": "ed84bc069c79dc56",
|
|
13
|
-
"path": "
|
|
13
|
+
"path": "6666cd76f9695646",
|
|
14
14
|
"placeHolder": false,
|
|
15
15
|
"ra": 0,
|
|
16
16
|
"redirects": [],
|
|
17
17
|
"redirectsPlaceHolder": [],
|
|
18
18
|
"scheme": "https",
|
|
19
|
-
"t":
|
|
19
|
+
"t": 479940,
|
|
20
20
|
"tps": {
|
|
21
21
|
"717de196af402b1a6e14814863cd92bb.safeframe.googlesyndication.com": {
|
|
22
22
|
"c": 2,
|
|
@@ -566,6 +566,7 @@
|
|
|
566
566
|
"euw1.smartadserver.com": {
|
|
567
567
|
"c": 1,
|
|
568
568
|
"has_qs": 1,
|
|
569
|
+
"referer_leak_path": 1,
|
|
569
570
|
"referer_leak_site": 1,
|
|
570
571
|
"scheme_https": 1,
|
|
571
572
|
"type_3": 1
|
|
@@ -590,7 +591,7 @@
|
|
|
590
591
|
"content_length": 112,
|
|
591
592
|
"has_post": 5,
|
|
592
593
|
"has_qs": 15,
|
|
593
|
-
"referer_leak_path":
|
|
594
|
+
"referer_leak_path": 13,
|
|
594
595
|
"referer_leak_site": 13,
|
|
595
596
|
"resp_ob": 20,
|
|
596
597
|
"scheme_https": 21,
|
|
@@ -790,12 +791,13 @@
|
|
|
790
791
|
"type_3": 1
|
|
791
792
|
},
|
|
792
793
|
"ingestion.contentinsights.com": {
|
|
793
|
-
"c":
|
|
794
|
+
"c": 2,
|
|
794
795
|
"content_length": 1,
|
|
795
|
-
"has_qs":
|
|
796
|
+
"has_qs": 2,
|
|
796
797
|
"resp_ob": 1,
|
|
797
|
-
"scheme_https":
|
|
798
|
+
"scheme_https": 2,
|
|
798
799
|
"status_204": 1,
|
|
800
|
+
"type_10": 1,
|
|
799
801
|
"type_3": 1
|
|
800
802
|
},
|
|
801
803
|
"ingestion.smartocto.com": {
|
|
@@ -902,6 +904,13 @@
|
|
|
902
904
|
"status_200": 1,
|
|
903
905
|
"type_3": 1
|
|
904
906
|
},
|
|
907
|
+
"nl3.eu.criteo.net": {
|
|
908
|
+
"c": 1,
|
|
909
|
+
"has_post": 1,
|
|
910
|
+
"has_qs": 1,
|
|
911
|
+
"scheme_https": 1,
|
|
912
|
+
"type_10": 1
|
|
913
|
+
},
|
|
905
914
|
"ocdn.eu": {
|
|
906
915
|
"c": 45,
|
|
907
916
|
"content_length": 715421,
|
|
@@ -920,7 +929,7 @@
|
|
|
920
929
|
"content_length": 74608,
|
|
921
930
|
"has_post": 1,
|
|
922
931
|
"has_qs": 10,
|
|
923
|
-
"referer_leak_path":
|
|
932
|
+
"referer_leak_path": 8,
|
|
924
933
|
"referer_leak_site": 8,
|
|
925
934
|
"resp_ob": 15,
|
|
926
935
|
"scheme_https": 15,
|
|
@@ -939,13 +948,15 @@
|
|
|
939
948
|
"type_7": 1
|
|
940
949
|
},
|
|
941
950
|
"pagead2.googlesyndication.com": {
|
|
942
|
-
"c":
|
|
951
|
+
"c": 18,
|
|
943
952
|
"content_length": 185822,
|
|
944
|
-
"
|
|
953
|
+
"has_post": 1,
|
|
954
|
+
"has_qs": 14,
|
|
945
955
|
"resp_ob": 15,
|
|
946
|
-
"scheme_https":
|
|
956
|
+
"scheme_https": 18,
|
|
947
957
|
"status_200": 9,
|
|
948
958
|
"status_204": 6,
|
|
959
|
+
"type_10": 1,
|
|
949
960
|
"type_11": 9,
|
|
950
961
|
"type_2": 5,
|
|
951
962
|
"type_3": 3
|
|
@@ -1247,6 +1258,7 @@
|
|
|
1247
1258
|
"c": 3,
|
|
1248
1259
|
"content_length": 2,
|
|
1249
1260
|
"has_qs": 3,
|
|
1261
|
+
"referer_leak_path": 1,
|
|
1250
1262
|
"referer_leak_site": 1,
|
|
1251
1263
|
"resp_ob": 2,
|
|
1252
1264
|
"scheme_https": 3,
|
|
@@ -1572,7 +1584,7 @@
|
|
|
1572
1584
|
"content_length": 1743961,
|
|
1573
1585
|
"has_post": 12,
|
|
1574
1586
|
"has_qs": 20,
|
|
1575
|
-
"referer_leak_path":
|
|
1587
|
+
"referer_leak_path": 7,
|
|
1576
1588
|
"referer_leak_site": 7,
|
|
1577
1589
|
"resp_ob": 31,
|
|
1578
1590
|
"scheme_https": 36,
|
|
@@ -1627,18 +1639,18 @@
|
|
|
1627
1639
|
"ctry": "en",
|
|
1628
1640
|
"data": [
|
|
1629
1641
|
{
|
|
1630
|
-
"active":
|
|
1642
|
+
"active": 479940,
|
|
1631
1643
|
"c": 1,
|
|
1632
1644
|
"counter": 11,
|
|
1633
1645
|
"frames": {},
|
|
1634
1646
|
"hostname": "cf28373a52818d8a",
|
|
1635
|
-
"path": "
|
|
1647
|
+
"path": "6666cd76f9695646",
|
|
1636
1648
|
"placeHolder": false,
|
|
1637
1649
|
"ra": 0,
|
|
1638
1650
|
"redirects": [],
|
|
1639
1651
|
"redirectsPlaceHolder": [],
|
|
1640
1652
|
"scheme": "https",
|
|
1641
|
-
"t":
|
|
1653
|
+
"t": 479940,
|
|
1642
1654
|
"tps": {
|
|
1643
1655
|
"717de196af402b1a6e14814863cd92bb.safeframe.googlesyndication.com": {
|
|
1644
1656
|
"c": 2,
|
|
@@ -2194,6 +2206,7 @@
|
|
|
2194
2206
|
"euw1.smartadserver.com": {
|
|
2195
2207
|
"c": 1,
|
|
2196
2208
|
"has_qs": 1,
|
|
2209
|
+
"referer_leak_path": 1,
|
|
2197
2210
|
"referer_leak_site": 1,
|
|
2198
2211
|
"scheme_https": 1,
|
|
2199
2212
|
"type_3": 1
|
|
@@ -2218,7 +2231,7 @@
|
|
|
2218
2231
|
"content_length": 112,
|
|
2219
2232
|
"has_post": 5,
|
|
2220
2233
|
"has_qs": 15,
|
|
2221
|
-
"referer_leak_path":
|
|
2234
|
+
"referer_leak_path": 13,
|
|
2222
2235
|
"referer_leak_site": 13,
|
|
2223
2236
|
"resp_ob": 20,
|
|
2224
2237
|
"scheme_https": 21,
|
|
@@ -2421,12 +2434,13 @@
|
|
|
2421
2434
|
"type_3": 1
|
|
2422
2435
|
},
|
|
2423
2436
|
"ingestion.contentinsights.com": {
|
|
2424
|
-
"c":
|
|
2437
|
+
"c": 2,
|
|
2425
2438
|
"content_length": 1,
|
|
2426
|
-
"has_qs":
|
|
2439
|
+
"has_qs": 2,
|
|
2427
2440
|
"resp_ob": 1,
|
|
2428
|
-
"scheme_https":
|
|
2441
|
+
"scheme_https": 2,
|
|
2429
2442
|
"status_204": 1,
|
|
2443
|
+
"type_10": 1,
|
|
2430
2444
|
"type_3": 1
|
|
2431
2445
|
},
|
|
2432
2446
|
"ingestion.smartocto.com": {
|
|
@@ -2531,6 +2545,13 @@
|
|
|
2531
2545
|
"status_200": 1,
|
|
2532
2546
|
"type_3": 1
|
|
2533
2547
|
},
|
|
2548
|
+
"nl3.eu.criteo.net": {
|
|
2549
|
+
"c": 1,
|
|
2550
|
+
"has_post": 1,
|
|
2551
|
+
"has_qs": 1,
|
|
2552
|
+
"scheme_https": 1,
|
|
2553
|
+
"type_10": 1
|
|
2554
|
+
},
|
|
2534
2555
|
"ocdn.eu": {
|
|
2535
2556
|
"c": 45,
|
|
2536
2557
|
"content_length": 715421,
|
|
@@ -2549,7 +2570,7 @@
|
|
|
2549
2570
|
"content_length": 74608,
|
|
2550
2571
|
"has_post": 1,
|
|
2551
2572
|
"has_qs": 10,
|
|
2552
|
-
"referer_leak_path":
|
|
2573
|
+
"referer_leak_path": 8,
|
|
2553
2574
|
"referer_leak_site": 8,
|
|
2554
2575
|
"resp_ob": 15,
|
|
2555
2576
|
"scheme_https": 15,
|
|
@@ -2568,13 +2589,15 @@
|
|
|
2568
2589
|
"type_7": 1
|
|
2569
2590
|
},
|
|
2570
2591
|
"pagead2.googlesyndication.com": {
|
|
2571
|
-
"c":
|
|
2592
|
+
"c": 18,
|
|
2572
2593
|
"content_length": 185822,
|
|
2573
|
-
"
|
|
2594
|
+
"has_post": 1,
|
|
2595
|
+
"has_qs": 14,
|
|
2574
2596
|
"resp_ob": 15,
|
|
2575
|
-
"scheme_https":
|
|
2597
|
+
"scheme_https": 18,
|
|
2576
2598
|
"status_200": 9,
|
|
2577
2599
|
"status_204": 6,
|
|
2600
|
+
"type_10": 1,
|
|
2578
2601
|
"type_11": 9,
|
|
2579
2602
|
"type_2": 5,
|
|
2580
2603
|
"type_3": 3
|
|
@@ -2878,6 +2901,7 @@
|
|
|
2878
2901
|
"c": 3,
|
|
2879
2902
|
"content_length": 2,
|
|
2880
2903
|
"has_qs": 3,
|
|
2904
|
+
"referer_leak_path": 1,
|
|
2881
2905
|
"referer_leak_site": 1,
|
|
2882
2906
|
"resp_ob": 2,
|
|
2883
2907
|
"scheme_https": 3,
|
|
@@ -3204,7 +3228,7 @@
|
|
|
3204
3228
|
"content_length": 1743961,
|
|
3205
3229
|
"has_post": 12,
|
|
3206
3230
|
"has_qs": 20,
|
|
3207
|
-
"referer_leak_path":
|
|
3231
|
+
"referer_leak_path": 7,
|
|
3208
3232
|
"referer_leak_site": 7,
|
|
3209
3233
|
"resp_ob": 31,
|
|
3210
3234
|
"scheme_https": 36,
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
"ctry": "en",
|
|
6
6
|
"data": [
|
|
7
7
|
{
|
|
8
|
-
"active":
|
|
8
|
+
"active": 479940,
|
|
9
9
|
"c": 1,
|
|
10
10
|
"counter": 0,
|
|
11
11
|
"frames": {},
|
|
12
12
|
"hostname": "9aba68162365e081",
|
|
13
|
-
"path": "
|
|
13
|
+
"path": "6666cd76f9695646",
|
|
14
14
|
"placeHolder": false,
|
|
15
15
|
"ra": 0,
|
|
16
16
|
"redirects": [],
|
|
17
17
|
"redirectsPlaceHolder": [],
|
|
18
18
|
"scheme": "https",
|
|
19
|
-
"t":
|
|
19
|
+
"t": 479940,
|
|
20
20
|
"tps": {
|
|
21
21
|
"a-v2.sndcdn.com": {
|
|
22
22
|
"c": 35,
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
"type_3": 298
|
|
100
100
|
},
|
|
101
101
|
"ingest.us.sentry.io": {
|
|
102
|
-
"c":
|
|
103
|
-
"content_length":
|
|
104
|
-
"has_post":
|
|
105
|
-
"has_qs":
|
|
106
|
-
"resp_ob":
|
|
107
|
-
"scheme_https":
|
|
108
|
-
"status_200":
|
|
109
|
-
"type_11":
|
|
102
|
+
"c": 2,
|
|
103
|
+
"content_length": 4,
|
|
104
|
+
"has_post": 2,
|
|
105
|
+
"has_qs": 2,
|
|
106
|
+
"resp_ob": 2,
|
|
107
|
+
"scheme_https": 2,
|
|
108
|
+
"status_200": 2,
|
|
109
|
+
"type_11": 2
|
|
110
110
|
},
|
|
111
111
|
"js-agent.newrelic.com": {
|
|
112
112
|
"c": 2,
|
|
@@ -204,18 +204,18 @@
|
|
|
204
204
|
"ctry": "en",
|
|
205
205
|
"data": [
|
|
206
206
|
{
|
|
207
|
-
"active":
|
|
207
|
+
"active": 479940,
|
|
208
208
|
"c": 1,
|
|
209
209
|
"counter": 0,
|
|
210
210
|
"frames": {},
|
|
211
211
|
"hostname": "1d5920f4b44b27a8",
|
|
212
|
-
"path": "
|
|
212
|
+
"path": "6666cd76f9695646",
|
|
213
213
|
"placeHolder": false,
|
|
214
214
|
"ra": 0,
|
|
215
215
|
"redirects": [],
|
|
216
216
|
"redirectsPlaceHolder": [],
|
|
217
217
|
"scheme": "https",
|
|
218
|
-
"t":
|
|
218
|
+
"t": 479940,
|
|
219
219
|
"tps": {
|
|
220
220
|
"a-v2.sndcdn.com": {
|
|
221
221
|
"c": 35,
|
|
@@ -301,14 +301,14 @@
|
|
|
301
301
|
"type_3": 298
|
|
302
302
|
},
|
|
303
303
|
"ingest.us.sentry.io": {
|
|
304
|
-
"c":
|
|
305
|
-
"content_length":
|
|
306
|
-
"has_post":
|
|
307
|
-
"has_qs":
|
|
308
|
-
"resp_ob":
|
|
309
|
-
"scheme_https":
|
|
310
|
-
"status_200":
|
|
311
|
-
"type_11":
|
|
304
|
+
"c": 2,
|
|
305
|
+
"content_length": 4,
|
|
306
|
+
"has_post": 2,
|
|
307
|
+
"has_qs": 2,
|
|
308
|
+
"resp_ob": 2,
|
|
309
|
+
"scheme_https": 2,
|
|
310
|
+
"status_200": 2,
|
|
311
|
+
"type_11": 2
|
|
312
312
|
},
|
|
313
313
|
"js-agent.newrelic.com": {
|
|
314
314
|
"c": 2,
|