@whotracksme/reporting 11.0.1 → 11.0.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,15 @@
1
+ # v11.0.2 (Sat Jul 18 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fix: undo offscreen window size attributes [#217](https://github.com/whotracksme/webextension-packages/pull/217) ([@chrmod](https://github.com/chrmod))
6
+
7
+ #### Authors: 1
8
+
9
+ - Krzysztof Modras ([@chrmod](https://github.com/chrmod))
10
+
11
+ ---
12
+
1
13
  # v11.0.1 (Wed Jul 08 2026)
2
14
 
3
15
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whotracksme/reporting",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {
@@ -316,37 +316,6 @@ async function tryCloseOffscreenDocument() {
316
316
 
317
317
  const OFFSCREEN_DOCUMENT_PREFIX = 'offscreen/doublefetch';
318
318
  const OFFSCREEN_DOCUMENT_INDEX_HTML = `${OFFSCREEN_DOCUMENT_PREFIX}/index.html`;
319
- const OFFSCREEN_DOCUMENT_FIXES_JS = `${OFFSCREEN_DOCUMENT_PREFIX}/offscreen-fix.js`;
320
-
321
- async function tryRegisterOffscreenFixes(domain) {
322
- if (!chrome?.scripting?.registerContentScripts) {
323
- logger.warn('Skipping offscreen-fixes (chrome.scripting API unavailable)');
324
- return () => {};
325
- }
326
-
327
- logger.debug('Installing offscreen fixes for domain:', domain);
328
- const id = 'offscreen-fix';
329
- await chrome.scripting.registerContentScripts([
330
- {
331
- id,
332
- matches: [`https://*.${domain}/*`, `https://${domain}/*`],
333
- js: [OFFSCREEN_DOCUMENT_FIXES_JS],
334
- runAt: 'document_start',
335
- allFrames: true,
336
- world: 'MAIN',
337
- },
338
- ]);
339
-
340
- return () => {
341
- logger.debug('Removing offscreen fixes for domain:', domain);
342
- chrome.scripting.unregisterContentScripts({ ids: [id] }).catch((e) => {
343
- logger.error(
344
- 'cleanup failed: unable to remove offscreen fixes content script:',
345
- e,
346
- );
347
- });
348
- };
349
- }
350
319
 
351
320
  async function withOffscreenDocumentReady(url, headers, asyncCallback) {
352
321
  const cleanups = [];
@@ -371,9 +340,6 @@ async function withOffscreenDocumentReady(url, headers, asyncCallback) {
371
340
  const undoDNRChange = await addDNRSessionRule(rule);
372
341
  cleanups.push(undoDNRChange);
373
342
 
374
- const undoOffscreenFixes = await tryRegisterOffscreenFixes(domain);
375
- cleanups.push(undoOffscreenFixes);
376
-
377
343
  const undoHeaderOverride = await headerOverride({
378
344
  headers,
379
345
  url,
@@ -1,13 +0,0 @@
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
- }