Skip to content

Commit

Permalink
MV2: prevent tracker stats leakage between visits (#1334)
Browse files Browse the repository at this point in the history
* MV2: prevent stats leakage between visits

fix #1241
  • Loading branch information
chrmod authored Oct 16, 2023
1 parent 7fad40f commit 5607209
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extension-manifest-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"classnames": "^2.3.2",
"d3": "^5.16.0",
"foundation-sites": "^6.6.2",
"ghostery-common": "^1.3.7",
"ghostery-common": "^1.3.11",
"history": "^4.10.1",
"hybrids": "^8.2.4",
"linkedom": "^0.14.21",
Expand Down
3 changes: 3 additions & 0 deletions extension-manifest-v2/src/classes/EventHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ class EventHandlers {
// process the tracker asynchronously
// very important to block request processing as little as necessary
setTimeout(() => {
if (tabInfo.getTabInfo(tab_id, 'url') !== eventMutable.tabUrl) {
return;
}
this._processBug({
bug_id,
app_id,
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5607209

Please sign in to comment.