@whotracksme/reporting 7.11.0 → 7.11.2

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,27 @@
1
+ # v7.11.2 (Tue Feb 17 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fixed DNS resolution heuristic [#183](https://github.com/whotracksme/webextension-packages/pull/183) ([@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
+
13
+ # v7.11.1 (Thu Feb 12 2026)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Fixed regression: Safari setup for the request reporter was broken [#182](https://github.com/whotracksme/webextension-packages/pull/182) ([@philipp-classen](https://github.com/philipp-classen))
18
+
19
+ #### Authors: 1
20
+
21
+ - Philipp Claßen ([@philipp-classen](https://github.com/philipp-classen))
22
+
23
+ ---
24
+
1
25
  # v7.11.0 (Fri Feb 06 2026)
2
26
 
3
27
  #### 🚀 Enhancement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whotracksme/reporting",
3
- "version": "7.11.0",
3
+ "version": "7.11.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {
@@ -1236,8 +1236,8 @@ export default class Pages {
1236
1236
  // Safari quirks:
1237
1237
  // * This API is not available
1238
1238
  chrome_webRequest_onBeforeRedirect(details) {
1239
- if (details.initiator && details.initiator !== 'null' && details.ip) {
1240
- this._cacheDnsResolution(details.initiator, details.ip);
1239
+ if (details.url && details.ip) {
1240
+ this._cacheDnsResolution(details.url, details.ip);
1241
1241
  }
1242
1242
  if (details.type !== 'main_frame') {
1243
1243
  return;
@@ -1292,8 +1292,8 @@ export default class Pages {
1292
1292
  // Safari quirks:
1293
1293
  // * This API is not available
1294
1294
  chrome_webRequest_onResponseStarted(details) {
1295
- if (details.initiator && details.initiator !== 'null' && details.ip) {
1296
- this._cacheDnsResolution(details.initiator, details.ip);
1295
+ if (details.url && details.ip) {
1296
+ this._cacheDnsResolution(details.url, details.ip);
1297
1297
  }
1298
1298
  }
1299
1299
 
@@ -99,24 +99,33 @@ export default class RequestReporter {
99
99
  if (hasBlockingWebRequest()) {
100
100
  safeOptions.push('blocking');
101
101
  }
102
- const safeSpecInfoFor = (options) =>
103
- Object.values(options).filter((x) => safeOptions.includes(x));
102
+ const safeSpecInfoFor = (optionsName) => {
103
+ const options = chrome.webRequest[optionsName];
104
+ if (!options) {
105
+ logger.warn(
106
+ `chrome.webRequest.${optionsName} unavailable. `,
107
+ 'Falling back to defaults for the "extraSpecInfo" parameter.',
108
+ );
109
+ return undefined;
110
+ }
111
+ return Object.values(options).filter((x) => safeOptions.includes(x));
112
+ };
104
113
 
105
114
  const urls = ['http://*/*', 'https://*/*'];
106
115
  chrome.webRequest.onBeforeRequest.addListener(
107
116
  this.onBeforeRequest,
108
117
  { urls },
109
- safeSpecInfoFor(chrome.webRequest.OnBeforeRequestOptions),
118
+ safeSpecInfoFor('OnBeforeRequestOptions'),
110
119
  );
111
120
  chrome.webRequest.onBeforeSendHeaders.addListener(
112
121
  this.onBeforeSendHeaders,
113
122
  { urls },
114
- safeSpecInfoFor(chrome.webRequest.OnBeforeSendHeadersOptions),
123
+ safeSpecInfoFor('OnBeforeSendHeadersOptions'),
115
124
  );
116
125
  chrome.webRequest.onHeadersReceived.addListener(
117
126
  this.onHeadersReceived,
118
127
  { urls },
119
- safeSpecInfoFor(chrome.webRequest.OnHeadersReceivedOptions),
128
+ safeSpecInfoFor('OnHeadersReceivedOptions'),
120
129
  );
121
130
  chrome.webRequest.onCompleted.addListener(this.onCompleted, { urls });
122
131
  chrome.webRequest.onErrorOccurred.addListener(this.onErrorOccurred, {