@whotracksme/reporting 12.1.13 β 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 +12 -0
- package/package.json +1 -1
- package/reporting/src/pages.js +38 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
1
13
|
# v12.1.13 (Thu Nov 19 2026)
|
|
2
14
|
|
|
3
15
|
#### π Bug Fix
|
package/package.json
CHANGED
package/reporting/src/pages.js
CHANGED
|
@@ -1146,6 +1146,12 @@ export default class Pages {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
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
|
+
}
|
|
1149
1155
|
return;
|
|
1150
1156
|
}
|
|
1151
1157
|
|
|
@@ -1389,25 +1395,12 @@ export default class Pages {
|
|
|
1389
1395
|
const { tabId, frameId, url } = details;
|
|
1390
1396
|
if (frameId !== 0) return; // not top-level frame (of the active page)
|
|
1391
1397
|
|
|
1392
|
-
|
|
1398
|
+
const entry = this.openTabs.get(tabId);
|
|
1393
1399
|
if (!entry) {
|
|
1394
1400
|
logger.debug('Skipping navigation to', url, 'in private tab with', tabId);
|
|
1395
1401
|
return;
|
|
1396
1402
|
}
|
|
1397
1403
|
|
|
1398
|
-
const now = Date.now();
|
|
1399
|
-
entry = {
|
|
1400
|
-
...entry,
|
|
1401
|
-
lastUpdated: now,
|
|
1402
|
-
|
|
1403
|
-
// Some pages trigger a history navigation with the identical URL
|
|
1404
|
-
// immediately after loading. Remember the context here to be
|
|
1405
|
-
// able to skip it later.
|
|
1406
|
-
_previous_webNavigation_onCommitted: {
|
|
1407
|
-
url,
|
|
1408
|
-
lastUpdated: now,
|
|
1409
|
-
},
|
|
1410
|
-
};
|
|
1411
1404
|
const isBackOrForward =
|
|
1412
1405
|
details.transitionQualifiers?.includes('forward_back');
|
|
1413
1406
|
|
|
@@ -1422,6 +1415,37 @@ export default class Pages {
|
|
|
1422
1415
|
// See also https://stackoverflow.com/q/25542015/783510
|
|
1423
1416
|
forgetOpenedFrom = true;
|
|
1424
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
|
+
};
|
|
1425
1449
|
if (forgetOpenedFrom && (entry.previousUrl || entry.openedFrom)) {
|
|
1426
1450
|
// this creates a copy, but omits the fields related to "opened from"
|
|
1427
1451
|
// eslint-disable-next-line no-unused-vars
|