@whotracksme/reporting 7.8.0 β†’ 7.9.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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v7.9.0 (Mon Nov 10 2025)
2
+
3
+ #### πŸš€ Enhancement
4
+
5
+ - Avoid conflicts between adblocker and temporary DNR overwrites [#177](https://github.com/whotracksme/webextension-packages/pull/177) ([@philipp-classen](https://github.com/philipp-classen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Philipp Claßen ([@philipp-classen](https://github.com/philipp-classen))
10
+
11
+ ---
12
+
1
13
  # v7.8.0 (Wed Sep 24 2025)
2
14
 
3
15
  #### πŸš€ Enhancement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whotracksme/reporting",
3
- "version": "7.8.0",
3
+ "version": "7.9.0",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {
@@ -28,6 +28,10 @@ const SECOND = 1000;
28
28
  const RESERVED_DNR_RULE_ID_HEADER_OVERRIDE = 1333;
29
29
  const RESERVED_DNR_RULE_ID_OFFSCREEN = 1334;
30
30
 
31
+ // This should be above all rules of the adblocker engine.
32
+ // Otherwise, exclusion rules will effectively disable them.
33
+ const DNR_HEADER_OVERWRITE_PRIORITY = (1 << 30) - 1;
34
+
31
35
  /**
32
36
  * Depending on the context, there are different ways how requests are being
33
37
  * triggered. For instance, the normal one is to use the fetch API; but
@@ -241,7 +245,7 @@ async function headerOverrideViaDNR({ url, headers, requestType }) {
241
245
  }));
242
246
  const rule = {
243
247
  id: RESERVED_DNR_RULE_ID_HEADER_OVERRIDE,
244
- priority: 1,
248
+ priority: DNR_HEADER_OVERWRITE_PRIORITY,
245
249
  action: {
246
250
  type: 'modifyHeaders',
247
251
  requestHeaders,