@whotracksme/reporting 7.11.0 β 7.11.1
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 +12 -0
- package/package.json +1 -1
- package/reporting/src/request/index.js +14 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v7.11.1 (Thu Feb 12 2026)
|
|
2
|
+
|
|
3
|
+
#### π Bug Fix
|
|
4
|
+
|
|
5
|
+
- 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))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Philipp ClaΓen ([@philipp-classen](https://github.com/philipp-classen))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v7.11.0 (Fri Feb 06 2026)
|
|
2
14
|
|
|
3
15
|
#### π Enhancement
|
package/package.json
CHANGED
|
@@ -99,24 +99,33 @@ export default class RequestReporter {
|
|
|
99
99
|
if (hasBlockingWebRequest()) {
|
|
100
100
|
safeOptions.push('blocking');
|
|
101
101
|
}
|
|
102
|
-
const safeSpecInfoFor = (
|
|
103
|
-
|
|
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(
|
|
118
|
+
safeSpecInfoFor('OnBeforeRequestOptions'),
|
|
110
119
|
);
|
|
111
120
|
chrome.webRequest.onBeforeSendHeaders.addListener(
|
|
112
121
|
this.onBeforeSendHeaders,
|
|
113
122
|
{ urls },
|
|
114
|
-
safeSpecInfoFor(
|
|
123
|
+
safeSpecInfoFor('OnBeforeSendHeadersOptions'),
|
|
115
124
|
);
|
|
116
125
|
chrome.webRequest.onHeadersReceived.addListener(
|
|
117
126
|
this.onHeadersReceived,
|
|
118
127
|
{ urls },
|
|
119
|
-
safeSpecInfoFor(
|
|
128
|
+
safeSpecInfoFor('OnHeadersReceivedOptions'),
|
|
120
129
|
);
|
|
121
130
|
chrome.webRequest.onCompleted.addListener(this.onCompleted, { urls });
|
|
122
131
|
chrome.webRequest.onErrorOccurred.addListener(this.onErrorOccurred, {
|