@whotracksme/reporting 5.1.36 โ 5.1.38
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
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# v5.1.38 (Fri Nov 22 2024)
|
|
2
|
+
|
|
3
|
+
#### ๐ Bug Fix
|
|
4
|
+
|
|
5
|
+
- Update url classifier regexp [#140](https://github.com/whotracksme/webextension-packages/pull/140) ([@philipp-classen](https://github.com/philipp-classen))
|
|
6
|
+
|
|
7
|
+
#### ๐ Internal
|
|
8
|
+
|
|
9
|
+
- Fixed errors when request reporter is not ready yet [#137](https://github.com/whotracksme/webextension-packages/pull/137) ([@philipp-classen](https://github.com/philipp-classen))
|
|
10
|
+
|
|
11
|
+
#### Authors: 1
|
|
12
|
+
|
|
13
|
+
- Philipp Claรen ([@philipp-classen](https://github.com/philipp-classen))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# v5.1.37 (Fri Nov 22 2024)
|
|
18
|
+
|
|
19
|
+
#### ๐ Bug Fix
|
|
20
|
+
|
|
21
|
+
- Run compatibility checks before placeholder replacements in onBeforeRequest [#139](https://github.com/whotracksme/webextension-packages/pull/139) ([@philipp-classen](https://github.com/philipp-classen))
|
|
22
|
+
|
|
23
|
+
#### Authors: 1
|
|
24
|
+
|
|
25
|
+
- Philipp Claรen ([@philipp-classen](https://github.com/philipp-classen))
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
1
29
|
# v5.1.36 (Mon Nov 18 2024)
|
|
2
30
|
|
|
3
31
|
#### ๐ Bug Fix
|
package/package.json
CHANGED
|
@@ -307,7 +307,10 @@ export default class RequestReporter {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
onBeforeRequest = (details) => {
|
|
310
|
-
if (!this.ready)
|
|
310
|
+
if (!this.ready) {
|
|
311
|
+
logger.warn('onBeforeRequest skipped (not ready)');
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
311
314
|
const state = WebRequestContext.fromDetails(details, this.pageStore);
|
|
312
315
|
const response = new BlockingResponse(details, 'onBeforeRequest');
|
|
313
316
|
// checkState
|
|
@@ -379,6 +382,9 @@ export default class RequestReporter {
|
|
|
379
382
|
if (this.isQSEnabled() === false) {
|
|
380
383
|
return response.toWebRequestResponse();
|
|
381
384
|
}
|
|
385
|
+
if (this.checkCompatibilityList(state) === false) {
|
|
386
|
+
return response.toWebRequestResponse();
|
|
387
|
+
}
|
|
382
388
|
|
|
383
389
|
this.#reportTrackerInteraction('fingerprint-removed', state);
|
|
384
390
|
|
|
@@ -390,7 +396,10 @@ export default class RequestReporter {
|
|
|
390
396
|
};
|
|
391
397
|
|
|
392
398
|
onBeforeSendHeaders = (details) => {
|
|
393
|
-
if (!this.ready)
|
|
399
|
+
if (!this.ready) {
|
|
400
|
+
logger.warn('onBeforeSendHeaders skipped (not ready)');
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
394
403
|
const state = WebRequestContext.fromDetails(details, this.pageStore);
|
|
395
404
|
const response = new BlockingResponse(details, 'onBeforeSendHeaders');
|
|
396
405
|
// checkState
|
|
@@ -476,7 +485,10 @@ export default class RequestReporter {
|
|
|
476
485
|
};
|
|
477
486
|
|
|
478
487
|
onHeadersReceived = (details) => {
|
|
479
|
-
if (!this.ready)
|
|
488
|
+
if (!this.ready) {
|
|
489
|
+
logger.warn('onHeadersReceived skipped (not ready)');
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
480
492
|
const state = WebRequestContext.fromDetails(details, this.pageStore);
|
|
481
493
|
const response = new BlockingResponse(details, 'onHeadersReceived');
|
|
482
494
|
// checkState
|
|
@@ -540,7 +552,10 @@ export default class RequestReporter {
|
|
|
540
552
|
};
|
|
541
553
|
|
|
542
554
|
onCompleted = (details) => {
|
|
543
|
-
if (!this.ready)
|
|
555
|
+
if (!this.ready) {
|
|
556
|
+
logger.warn('onCompleted skipped (not ready)');
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
544
559
|
this.whitelistedRequestCache.delete(details.requestId);
|
|
545
560
|
const state = WebRequestContext.fromDetails(details, this.pageStore);
|
|
546
561
|
// checkState
|
|
@@ -556,7 +571,10 @@ export default class RequestReporter {
|
|
|
556
571
|
};
|
|
557
572
|
|
|
558
573
|
onErrorOccurred = (details) => {
|
|
559
|
-
if (!this.ready)
|
|
574
|
+
if (!this.ready) {
|
|
575
|
+
logger.warn('onErrorOccurred skipped (not ready)');
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
560
578
|
this.whitelistedRequestCache.delete(details.requestId);
|
|
561
579
|
};
|
|
562
580
|
|
|
@@ -706,6 +724,10 @@ export default class RequestReporter {
|
|
|
706
724
|
}
|
|
707
725
|
|
|
708
726
|
recordClick(event, context, href, sender) {
|
|
727
|
+
if (!this.ready) {
|
|
728
|
+
logger.warn('recordClick skipped (not ready)');
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
709
731
|
this.cookieContext.setContextFromEvent(event, context, href, sender);
|
|
710
732
|
this.oAuthDetector.recordClick(sender);
|
|
711
733
|
}
|
|
@@ -31,8 +31,8 @@ const URL_PATTERNS = [
|
|
|
31
31
|
{
|
|
32
32
|
category: 'search-gov',
|
|
33
33
|
regexp:
|
|
34
|
-
/^https:[/][/][^/]*[.]google[.].*?[#?&;]((q=[^&]+&([^&]+&)*
|
|
35
|
-
prefix: 'search?
|
|
34
|
+
/^https:[/][/][^/]*[.]google[.].*?[#?&;]((q=[^&]+&([^&]+&)*udm=7)|(udm=7&([^&]+&)*q=[^&]+))/,
|
|
35
|
+
prefix: 'search?udm=7&q=',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
category: 'search-go',
|
|
@@ -83,21 +83,21 @@ describe('#UrlAnalyzer', function () {
|
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
'search-gov': {
|
|
86
|
-
'https://www.google.com/search?q=cat&
|
|
86
|
+
'https://www.google.com/search?sca_esv=332c1457e26e21ac&q=cat&udm=7&fbs=AEQNm0A6bwEop21ehxKWq5cj-cHa02QUie7apaStVTrDAEoT1CkRGSL-1wA3X2bR5dRYtRFmaZPN2OTOpML6Nzk89AWekIwYOcUmK2FR_flIZE9vn1EXAsBBBo_DOK7IqycIPr8oX9r_c2Y_H6YSW9sBv2zzlY5ifH_0oIYtOJi92VlQNOEZ0mbOIl6RYJLN-zdoMIA2J145wwYej0xWX2q5hfw8qzQw7g&sa=X&ved=2ahUKEwjPk4Dr2e-JAxWBgf0HHfEsNsYQtKgLegQIGhAB&biw=882&bih=1002&dpr=0.9':
|
|
87
87
|
{
|
|
88
88
|
query: 'cat',
|
|
89
|
-
doublefetchUrl: 'https://www.google.com/search?
|
|
89
|
+
doublefetchUrl: 'https://www.google.com/search?udm=7&q=cat',
|
|
90
90
|
},
|
|
91
|
-
'https://www.google.de/search?q=katze&
|
|
91
|
+
'https://www.google.de/search?sca_esv=332c1457e26e21ac&q=katze&udm=7&fbs=AEQNm0A6bwEop21ehxKWq5cj-cHa02QUie7apaStVTrDAEoT1CkRGSL-1wA3X2bR5dRYtRGv3dh0WX48pQ0OijG3Ir_Ily36WNjIM66TUeQQm6v5pCxPr2gtqfjkC7ffv6Tr7pov6Kj4r20q4qdHCSHuZ8l9l_oCqEwoxOcaGtTQ9oNU0Tr95ug&sa=X&ved=2ahUKEwjDvfjh3u-JAxVY3AIHHUZkIcUQtKgLegQIIhAB&biw=958&bih=898&dpr=1':
|
|
92
92
|
{
|
|
93
93
|
query: 'katze',
|
|
94
|
-
doublefetchUrl: 'https://www.google.de/search?
|
|
94
|
+
doublefetchUrl: 'https://www.google.de/search?udm=7&q=katze',
|
|
95
95
|
},
|
|
96
|
-
'https://www.google.co.uk/search?q=British+Shorthair&
|
|
96
|
+
'https://www.google.co.uk/search?sca_esv=332c1457e26e21ac&q=British+Shorthair&udm=7&fbs=AEQNm0A6bwEop21ehxKWq5cj-cHa02QUie7apaStVTrDAEoT1CkRGSL-1wA3X2bR5dRYtRGv3dh0WX48pQ0OijG3Ir_I75oFM8mN67hQ5D8L2f_4aId2Ld_vPyIeJPxAzy5CcO-5UtDBOirlUmpUozWrwxQJT3cKh-XbNOVVNXNxn1wGeq30DpZD8xJuzexvjnEe-Ql_N82o&sa=X&ved=2ahUKEwi5hIO_2u-JAxVm3AIHHXc1E7UQtKgLegQIEBAB':
|
|
97
97
|
{
|
|
98
98
|
query: 'British Shorthair',
|
|
99
99
|
doublefetchUrl:
|
|
100
|
-
'https://www.google.co.uk/search?
|
|
100
|
+
'https://www.google.co.uk/search?udm=7&q=British+Shorthair',
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
'search-go': {
|