@whotracksme/reporting 12.1.23 β 12.1.24
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 +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v12.1.24 (Mon Nov 23 2026)
|
|
2
|
+
|
|
3
|
+
#### π Bug Fix
|
|
4
|
+
|
|
5
|
+
- Prevent entry.openedFrom from growing (now capped to one level) [#266](https://github.com/whotracksme/webextension-packages/pull/266) ([@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.23 (Mon Nov 23 2026)
|
|
2
14
|
|
|
3
15
|
#### π Bug Fix
|
package/package.json
CHANGED
package/reporting/src/pages.js
CHANGED
|
@@ -1125,6 +1125,15 @@ export default class Pages {
|
|
|
1125
1125
|
if (isRealPage(previousUrl)) {
|
|
1126
1126
|
entry.previousUrl = previousUrl;
|
|
1127
1127
|
}
|
|
1128
|
+
|
|
1129
|
+
// Keep only the direct opener. Without this, each link click adds
|
|
1130
|
+
// one more level of "openedFrom", and the entry would grow without limit.
|
|
1131
|
+
if (entry.openedFrom?.openedFrom) {
|
|
1132
|
+
// this creates a copy, but omits the "openedFrom" (from the top-level "openedFrom")
|
|
1133
|
+
// eslint-disable-next-line no-unused-vars
|
|
1134
|
+
const { openedFrom, ...prunedOpenFrom } = entry.openedFrom;
|
|
1135
|
+
entry.openedFrom = prunedOpenFrom;
|
|
1136
|
+
}
|
|
1128
1137
|
}
|
|
1129
1138
|
}
|
|
1130
1139
|
|