@whotracksme/reporting 7.7.0 β 7.7.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 +30 -0
- package/communication/package.json +6 -6
- package/package.json +7 -7
- package/reporting/package.json +6 -6
- package/reporting/rollup.config.cjs +1 -0
- package/reporting/src/http.js +25 -2
- package/reporting/src/nav-tracking-detector.js +1 -1
- package/reporting/src/offscreen/doublefetch/offscreen-fix.js +13 -0
- package/reporting/src/request/content-script.js +2 -2
- package/reporting/src/url-analyzer.js +1 -1
- package/reporting/src/utils/url.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# v7.7.2 (Thu Sep 18 2025)
|
|
2
|
+
|
|
3
|
+
#### π Bug Fix
|
|
4
|
+
|
|
5
|
+
- Update dependencies [#172](https://github.com/whotracksme/webextension-packages/pull/172) ([@philipp-classen](https://github.com/philipp-classen))
|
|
6
|
+
- Fixed: use logger instead of console [#168](https://github.com/whotracksme/webextension-packages/pull/168) ([@philipp-classen](https://github.com/philipp-classen))
|
|
7
|
+
|
|
8
|
+
#### π Internal
|
|
9
|
+
|
|
10
|
+
- Remove unnecessary log [#169](https://github.com/whotracksme/webextension-packages/pull/169) ([@chrmod](https://github.com/chrmod))
|
|
11
|
+
|
|
12
|
+
#### Authors: 2
|
|
13
|
+
|
|
14
|
+
- Krzysztof Modras ([@chrmod](https://github.com/chrmod))
|
|
15
|
+
- Philipp ClaΓen ([@philipp-classen](https://github.com/philipp-classen))
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# v7.7.1 (Mon Sep 15 2025)
|
|
20
|
+
|
|
21
|
+
#### π Bug Fix
|
|
22
|
+
|
|
23
|
+
- Fix: offscreen window size attributes [#167](https://github.com/whotracksme/webextension-packages/pull/167) ([@chrmod](https://github.com/chrmod))
|
|
24
|
+
|
|
25
|
+
#### Authors: 1
|
|
26
|
+
|
|
27
|
+
- Krzysztof Modras ([@chrmod](https://github.com/chrmod))
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
1
31
|
# v7.7.0 (Tue Aug 26 2025)
|
|
2
32
|
|
|
3
33
|
#### π Enhancement
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
15
15
|
"chai": "^4.3.6",
|
|
16
|
-
"fast-check": "^
|
|
17
|
-
"karma": "^6.
|
|
16
|
+
"fast-check": "^4.3.0",
|
|
17
|
+
"karma": "^6.4.4",
|
|
18
18
|
"karma-chai": "^0.1.0",
|
|
19
|
-
"karma-chrome-launcher": "^3.
|
|
19
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
20
20
|
"karma-mocha": "^2.0.1",
|
|
21
21
|
"karma-mocha-reporter": "^2.2.5",
|
|
22
22
|
"karma-rollup-preprocessor": "^7.0.8",
|
|
23
23
|
"karma-sinon": "^1.0.5",
|
|
24
|
-
"mocha": "^
|
|
24
|
+
"mocha": "^11.7.2",
|
|
25
25
|
"rollup": "^2.70.1",
|
|
26
26
|
"rollup-plugin-polyfill-node": "^0.8.0",
|
|
27
27
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
28
|
-
"sinon": "^
|
|
29
|
-
"web-ext": "^
|
|
28
|
+
"sinon": "^21.0.0",
|
|
29
|
+
"web-ext": "^8.10.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"pako": "^2.0.4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whotracksme/reporting",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"communication"
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"auto": "^11.
|
|
37
|
+
"auto": "^11.3.0",
|
|
38
38
|
"eslint": "^8.8.0",
|
|
39
39
|
"eslint-config-prettier": "^8.3.0",
|
|
40
40
|
"eslint-plugin-prettier": "^4.0.0",
|
|
41
41
|
"prettier": "2.5.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@
|
|
44
|
+
"@ghostery/url-parser": "^1.3.0",
|
|
45
45
|
"date-fns": "^2.29.3",
|
|
46
|
-
"idb": "^
|
|
47
|
-
"linkedom": "^0.18.
|
|
46
|
+
"idb": "^8.0.3",
|
|
47
|
+
"linkedom": "^0.18.12",
|
|
48
48
|
"pako": "^2.1.0",
|
|
49
|
-
"tldts-experimental": "^
|
|
50
|
-
"bowser": "^2.
|
|
49
|
+
"tldts-experimental": "^7.0.14",
|
|
50
|
+
"bowser": "^2.12.1"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/reporting/package.json
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@rollup/plugin-json": "^5.0.0",
|
|
19
19
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
20
20
|
"chai": "^5.2.0",
|
|
21
|
-
"chai-as-promised": "^8.0.
|
|
22
|
-
"fake-indexeddb": "^6.
|
|
21
|
+
"chai-as-promised": "^8.0.2",
|
|
22
|
+
"fake-indexeddb": "^6.2.2",
|
|
23
23
|
"fast-check": "^3.3.0",
|
|
24
24
|
"karma": "^6.4.1",
|
|
25
25
|
"karma-chai": "^0.1.0",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"rollup-plugin-polyfill-node": "^0.8.0",
|
|
35
35
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
36
36
|
"sinon": "^21.0.0",
|
|
37
|
-
"sinon-chai": "^4.0.
|
|
37
|
+
"sinon-chai": "^4.0.1",
|
|
38
38
|
"sinon-chrome": "^3.0.1",
|
|
39
39
|
"web-ext": "^8.2.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@
|
|
42
|
+
"@ghostery/url-parser": "^1.3.0",
|
|
43
43
|
"date-fns": "^2.29.3",
|
|
44
|
-
"idb": "^
|
|
44
|
+
"idb": "^8.0.3",
|
|
45
45
|
"linkedom": "^0.18.10",
|
|
46
|
-
"tldts-experimental": "^
|
|
46
|
+
"tldts-experimental": "^7.0.14"
|
|
47
47
|
},
|
|
48
48
|
"exports": {
|
|
49
49
|
".": "./src/index.js",
|
package/reporting/src/http.js
CHANGED
|
@@ -309,8 +309,8 @@ async function tryCloseOffscreenDocument() {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
|
|
313
|
-
const OFFSCREEN_DOCUMENT_PATH =
|
|
312
|
+
const OFFSCREEN_DOCUMENT_PREFIX = 'offscreen/doublefetch';
|
|
313
|
+
const OFFSCREEN_DOCUMENT_PATH = `${OFFSCREEN_DOCUMENT_PREFIX}/index.html`;
|
|
314
314
|
|
|
315
315
|
async function withOffscreenDocumentReady(url, headers, asyncCallback) {
|
|
316
316
|
const cleanups = [];
|
|
@@ -335,6 +335,29 @@ async function withOffscreenDocumentReady(url, headers, asyncCallback) {
|
|
|
335
335
|
const undoDNRChange = await addDNRSessionRule(rule);
|
|
336
336
|
cleanups.push(undoDNRChange);
|
|
337
337
|
|
|
338
|
+
await chrome.scripting.registerContentScripts([
|
|
339
|
+
{
|
|
340
|
+
id: 'offscreen-fix',
|
|
341
|
+
matches: [`https://*.${domain}/*`, `https://${domain}/*`],
|
|
342
|
+
js: [`${OFFSCREEN_DOCUMENT_PREFIX}/offscreen-fix.js`],
|
|
343
|
+
runAt: 'document_start',
|
|
344
|
+
allFrames: true,
|
|
345
|
+
world: 'MAIN',
|
|
346
|
+
},
|
|
347
|
+
]);
|
|
348
|
+
cleanups.push(() => {
|
|
349
|
+
chrome.scripting
|
|
350
|
+
.unregisterContentScripts({
|
|
351
|
+
ids: ['offscreen-fix'],
|
|
352
|
+
})
|
|
353
|
+
.catch((e) => {
|
|
354
|
+
logger.error(
|
|
355
|
+
'cleanup failed: unable to remove offscreen content script:',
|
|
356
|
+
e,
|
|
357
|
+
);
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
338
361
|
const undoHeaderOverride = await headerOverride({
|
|
339
362
|
headers,
|
|
340
363
|
url,
|
|
@@ -181,7 +181,7 @@ export default class NavTrackingDetector {
|
|
|
181
181
|
// less sensitive than arbitrary 'host -> host' navigations. Thus,
|
|
182
182
|
// it is likely that additional checks will be needed to support them.
|
|
183
183
|
// For now, start start without it.
|
|
184
|
-
|
|
184
|
+
logger.debug('[STUB]: general navigation are not yet covered', event);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
// special case: public search engine landings
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
if (window.outerWidth === 0) {
|
|
2
|
+
Object.defineProperty(window, 'outerWidth', {
|
|
3
|
+
get: () => 1920,
|
|
4
|
+
configurable: true,
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if (window.outerHeight === 0) {
|
|
9
|
+
Object.defineProperty(window, 'outerHeight', {
|
|
10
|
+
get: () => 1080,
|
|
11
|
+
configurable: true,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { ImmutableURL } from '@
|
|
12
|
+
import { ImmutableURL } from '@ghostery/url-parser';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* This is an abstraction over URL with caching and basic error handling built in. The main
|