@whotracksme/reporting 12.1.12 → 12.1.14
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 +24 -0
- package/package.json +1 -1
- package/reporting/src/pages.js +39 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v12.1.14 (Thu Nov 19 2026)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fixed: Firefox on Android might have missed page loads [#256](https://github.com/whotracksme/webextension-packages/pull/256) ([@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
|
+
# v12.1.13 (Thu Nov 19 2026)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Fixed: search and ref could be wrong after a redirect [#255](https://github.com/whotracksme/webextension-packages/pull/255) ([@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
|
# v12.1.12 (Thu Nov 19 2026)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
package/reporting/src/pages.js
CHANGED
|
@@ -1115,6 +1115,7 @@ export default class Pages {
|
|
|
1115
1115
|
// If a link opened in a new tab, we need to merge the opener.
|
|
1116
1116
|
if (
|
|
1117
1117
|
entry.openedFrom?.status === 'redirecting' &&
|
|
1118
|
+
!isRealPage(entry.openedFrom.url) &&
|
|
1118
1119
|
entry.openedFrom.openedFrom
|
|
1119
1120
|
) {
|
|
1120
1121
|
entry.openedFrom = { ...entry.openedFrom.openedFrom };
|
|
@@ -1145,6 +1146,12 @@ export default class Pages {
|
|
|
1145
1146
|
}
|
|
1146
1147
|
}
|
|
1147
1148
|
this.openTabs.set(tabId, entry);
|
|
1149
|
+
|
|
1150
|
+
// webNavigation.onCommitted came before this update (see there)
|
|
1151
|
+
const pendingCommit = oldTabEntry?._pendingCommit;
|
|
1152
|
+
if (pendingCommit?.url === entry.url) {
|
|
1153
|
+
this._finishCommit(tabId, entry, pendingCommit);
|
|
1154
|
+
}
|
|
1148
1155
|
return;
|
|
1149
1156
|
}
|
|
1150
1157
|
|
|
@@ -1388,25 +1395,12 @@ export default class Pages {
|
|
|
1388
1395
|
const { tabId, frameId, url } = details;
|
|
1389
1396
|
if (frameId !== 0) return; // not top-level frame (of the active page)
|
|
1390
1397
|
|
|
1391
|
-
|
|
1398
|
+
const entry = this.openTabs.get(tabId);
|
|
1392
1399
|
if (!entry) {
|
|
1393
1400
|
logger.debug('Skipping navigation to', url, 'in private tab with', tabId);
|
|
1394
1401
|
return;
|
|
1395
1402
|
}
|
|
1396
1403
|
|
|
1397
|
-
const now = Date.now();
|
|
1398
|
-
entry = {
|
|
1399
|
-
...entry,
|
|
1400
|
-
lastUpdated: now,
|
|
1401
|
-
|
|
1402
|
-
// Some pages trigger a history navigation with the identical URL
|
|
1403
|
-
// immediately after loading. Remember the context here to be
|
|
1404
|
-
// able to skip it later.
|
|
1405
|
-
_previous_webNavigation_onCommitted: {
|
|
1406
|
-
url,
|
|
1407
|
-
lastUpdated: now,
|
|
1408
|
-
},
|
|
1409
|
-
};
|
|
1410
1404
|
const isBackOrForward =
|
|
1411
1405
|
details.transitionQualifiers?.includes('forward_back');
|
|
1412
1406
|
|
|
@@ -1421,6 +1415,37 @@ export default class Pages {
|
|
|
1421
1415
|
// See also https://stackoverflow.com/q/25542015/783510
|
|
1422
1416
|
forgetOpenedFrom = true;
|
|
1423
1417
|
}
|
|
1418
|
+
|
|
1419
|
+
// The order of events depends on the browser. Chrome first updates the
|
|
1420
|
+
// URL of the tab (tabs.onUpdated). Firefox 160 sends this event first;
|
|
1421
|
+
// then wait for the update of the tab (see chrome_tabs_onUpdated).
|
|
1422
|
+
if (isRealPage(url) && entry.url !== url) {
|
|
1423
|
+
this.openTabs.set(tabId, {
|
|
1424
|
+
...entry,
|
|
1425
|
+
_pendingCommit: { url, forgetOpenedFrom },
|
|
1426
|
+
});
|
|
1427
|
+
return;
|
|
1428
|
+
}
|
|
1429
|
+
this._finishCommit(tabId, entry, { url, forgetOpenedFrom });
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
_finishCommit(tabId, oldEntry, { url, forgetOpenedFrom }) {
|
|
1433
|
+
const now = Date.now();
|
|
1434
|
+
// this creates a copy, but omits "_pendingCommit" (the commit is handled now)
|
|
1435
|
+
// eslint-disable-next-line no-unused-vars
|
|
1436
|
+
const { _pendingCommit, ...oldEntry_ } = oldEntry;
|
|
1437
|
+
let entry = {
|
|
1438
|
+
...oldEntry_,
|
|
1439
|
+
lastUpdated: now,
|
|
1440
|
+
|
|
1441
|
+
// Some pages trigger a history navigation with the identical URL
|
|
1442
|
+
// immediately after loading. Remember the context here to be
|
|
1443
|
+
// able to skip it later.
|
|
1444
|
+
_previous_webNavigation_onCommitted: {
|
|
1445
|
+
url,
|
|
1446
|
+
lastUpdated: now,
|
|
1447
|
+
},
|
|
1448
|
+
};
|
|
1424
1449
|
if (forgetOpenedFrom && (entry.previousUrl || entry.openedFrom)) {
|
|
1425
1450
|
// this creates a copy, but omits the fields related to "opened from"
|
|
1426
1451
|
// eslint-disable-next-line no-unused-vars
|