Commit Graph
76 Commits
Author SHA1 Message Date
James Han 14716cb80c Bug 2030052 - Flush live ContentBlockingLogs on anti-tracking DB query r=emz
TrackingDBService previously only wrote to protections.sqlite when a
WindowGlobalParent was destroyed, so long-lived top-level tabs never
contributed their blocking events until the tab closed. Consumers like the
Protection Dashboard and milestone messaging saw stale data.

This change adds a flush-on-query barrier: before each read, TrackingDBService
forces every live top-level WindowGlobalParent to flush its in-memory log
to the database, then awaits the pending DeferredTask writes.

To keep repeated flushes from double-counting against the daily aggregated
counters, ContentBlockingLog::Stringify() gains a delta mode that emits
only entries added since the last MarkAsReported() call, and ReportLog()
skips the IPC round-trip when the delta is empty.

Gated behind browser.contentblocking.database.flushOnQuery.enabled (default
true). Preserves the existing private-browsing, out-of-process, and
top-level-content gates by routing both the teardown and query-time flushes
through a shared WindowGlobalParent::MaybeReportContentBlockingLog helper.

Differential Revision: https://phabricator.services.mozilla.com/D295196
2026-05-12 14:41:11 +00:00
Sylvestre Ledru 6be5ec2fff Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-04-14 12:56:19 +00:00
agoloman ae99dfb565 Revert "Bug 2023419: apply code formatting via Lando" for causing bc failures @browser_sendQuery.js.
This reverts commit aa15b809d9.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ - follow up r=emilio"

This reverts commit c659385796.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk"

This reverts commit 1e55e9bf9b.
2026-04-13 13:06:21 +00:00
Sylvestre Ledru 1e55e9bf9b Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-04-13 11:30:51 +00:00
rperta f5848b1deb Revert "Bug 2023419: apply code formatting via Lando" for causing bc failures at browser_sendQuery.js and browser_console_to_mozlog.js
This reverts commit f8a9770c7d.

This reverts commit 47e16fbdd2.

This reverts commit 9f363abaef.
2026-03-20 06:37:54 +00:00
Sylvestre Ledru 9f363abaef Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,profiles-reviewers,ai-ondevice-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-03-20 04:55:48 +00:00
André Bargull 0349c04f10 Bug 2020608 - Part 5: Replace CountTrailingZeroes32 with std::countr_zero. r=sergesanspaille,manuel
Similar to part 4, also replace `CountTrailingZeroes32` with `std::countr_zero`.

Differential Revision: https://phabricator.services.mozilla.com/D286313
2026-03-14 14:08:25 +00:00
Atila Butkovits 3578df2975 Revert "Bug 2020608 - Part 17: Use std::rot[lr] for Rotate(Left|Right). r=sergesanspaille" for causing bustages at PowerOfTwo.h.
This reverts commit eb884a9f65.

Revert "Bug 2020608 - Part 16: Use std::bit_ceil for RoundUpPow2. r=sergesanspaille"

This reverts commit 35a310aa8a.

Revert "Bug 2020608 - Part 15: Require unsigned integral types for CeilingLog2 and FindMostSignificantBit. r=sergesanspaille,nbp"

This reverts commit f682901ca2.

Revert "Bug 2020608 - Part 14: Remove mozilla::IsPowerOfTwo. r=sergesanspaille"

This reverts commit b998e4bd39.

Revert "Bug 2020608 - Part 13: Replace IsPowerOfTwo with std::has_single_bit in js/. r=sergesanspaille"

This reverts commit 00db5e1f32.

Revert "Bug 2020608 - Part 12: Replace IsPowerOfTwo with std::has_single_bit outside of js/. r=sergesanspaille,profiler-reviewers,win-reviewers,gstoll,canaltinova"

This reverts commit cec056f5d6.

Revert "Bug 2020608 - Part 11: Simplify PowerOfTwo. r=sergesanspaille,profiler-reviewers,canaltinova"

This reverts commit a2ee5b9053.

Revert "Bug 2020608 - Part 10: Prefer std::bit_width in MathAlgorithms.h. r=sergesanspaille"

This reverts commit 89d966bb97.

Revert "Bug 2020608 - Part 9: Prefer std::bit_width instead of std::countl_zero in js/src. r=sergesanspaille"

This reverts commit da9a43075a.

Revert "Bug 2020608 - Part 8: Replace CountTrailingZeroes with std::countr_zero. r=sergesanspaille"

This reverts commit d77ca273cb.

Revert "Bug 2020608 - Part 7: Replace CountLeadingZeroes32 with std::countl_zero or std::countl_one. r=sergesanspaille,nbp,profiler-reviewers,canaltinova"

This reverts commit 94929ae729.

Revert "Bug 2020608 - Part 6: Replace CountLeadingZeroes64 with std::countl_zero. r=sergesanspaille,profiler-reviewers,canaltinova"

This reverts commit 9b428168df.

Revert "Bug 2020608 - Part 5: Replace CountTrailingZeroes32 with std::countr_zero. r=sergesanspaille,manuel"

This reverts commit d3e77036b2.

Revert "Bug 2020608 - Part 4: Replace CountTrailingZeroes64 with std::countr_zero or std::countr_one. r=sergesanspaille"

This reverts commit 6a7bcee10e.

Revert "Bug 2020608 - Part 3: Replace CountPopulation32 with std::popcount. r=sergesanspaille"

This reverts commit e7b204177b.

Revert "Bug 2020608 - Part 2: Replace CountPopulation64 with std::popcount. r=sergesanspaille"

This reverts commit 1d6f98a622.

Revert "Bug 2020608 - Part 1: Add <bit> C++20 definitions to std.py. r=sergesanspaille"

This reverts commit 3ee4c6dcab.
2026-03-13 21:11:22 +00:00
André Bargull d3e77036b2 Bug 2020608 - Part 5: Replace CountTrailingZeroes32 with std::countr_zero. r=sergesanspaille,manuel
Similar to part 4, also replace `CountTrailingZeroes32` with `std::countr_zero`.

Differential Revision: https://phabricator.services.mozilla.com/D286313
2026-03-13 20:19:54 +00:00
Tom Ritter 426c57ff82 Bug 2011512: Only count events once per-page r=timhuang
We were also incrementing a metric multiple times if a fingerprinter
alias or known text was seen multiple times.  This in theory would
tell us if a technique/script was used on a page multiple times
but in practice we had no reliable denominator because of the multiple
counting, so now we only record each possible combination once per page
resulting in a stable denominator.

Differential Revision: https://phabricator.services.mozilla.com/D279763
2026-01-21 18:53:49 +00:00
Tom Ritter 0afe46578a Bug 2011512: Only count the combined bitmask r=timhuang
We were incrementing the telemetry metric once for the combined
source bitmask, and then once more for each individual bit. This
made it impossible to sum up the total rate of events for a single-bit
source because it was double counting.

Differential Revision: https://phabricator.services.mozilla.com/D279762
2026-01-21 18:53:47 +00:00
Serban Stanca 897ad32374 Revert "Bug 2011512: Only count events once per-page r=timhuang" for causing non-unified build bustages in ContentBlockingLog.cpp.
This reverts commit 1b8f10d332.

This reverts commit d1eaa79844.
2026-01-21 15:21:24 +00:00
Tom Ritter 1b8f10d332 Bug 2011512: Only count events once per-page r=timhuang
We were also incrementing a metric multiple times if a fingerprinter
alias or known text was seen multiple times.  This in theory would
tell us if a technique/script was used on a page multiple times
but in practice we had no reliable denominator because of the multiple
counting, so now we only record each possible combination once per page
resulting in a stable denominator.

Differential Revision: https://phabricator.services.mozilla.com/D279763
2026-01-21 14:09:06 +00:00
Tom Ritter d1eaa79844 Bug 2011512: Only count the combined bitmask r=timhuang
We were incrementing the telemetry metric once for the combined
source bitmask, and then once more for each individual bit. This
made it impossible to sum up the total rate of events for a single-bit
source because it was double counting.

Differential Revision: https://phabricator.services.mozilla.com/D279762
2026-01-21 14:09:03 +00:00
Tom Ritter 45c0ce6bb7 Bug 1873716: Remove the 'shouldReport' parameter r=timhuang
Based on the fact that no other reporting mechanism cares about
the DATA_RECEIVED flag, and that it eliminates about 75% of the
reports we would have received, remove this argument and do not
change any behavior based on it

Differential Revision: https://phabricator.services.mozilla.com/D274959
2025-12-09 16:52:03 +00:00
Tom Ritter d5ad2b2885 Bug 1873716: Finally change how we report telemetry r=timhuang
SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273664
2025-12-09 16:51:50 +00:00
Tom Ritter 89363ce080 Bug 1873716: Change the plumbing to use a CanvasFingerprintingEvent r=timhuang
SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273660
2025-12-09 16:51:39 +00:00
Tom Ritter aa954ad1f7 Bug 1873716: Simplify the fingerprinting content blocking log logic r=timhuang
Presently we use CheckSuspiciousFingerprintingActivity to see
if the number of fingerprinting activities exceed a theshold
and if so, we indicate that an entry has suspicious fingerprinting.

That threshold is 1. And we don't have any plans to adjust it.

So we can just remove the check altogether: if that function is
called, it is called immediately after creating or finding a log
of the two relevant types: Canvas or Font fingerprinting.  So it
will _always_ return true.

SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273659
2025-12-09 16:51:34 +00:00
Atila Butkovits 02ba73c64b Revert "Bug 1873716: Add logging for Font Fingerprinting r=timhuang" for causing ThreadSanitizer failures.
This reverts commit 7f3efcc656.

Revert "Bug 1873716: Add utilities for identifying canvas fingerprinters in an automated fashion (crawling) r=timhuang"

This reverts commit 0ca707cca5.

Revert "Bug 1873716: Remove the 'shouldReport' parameter r=timhuang"

This reverts commit 98b91beb72.

Revert "Bug 1873716: Update content blocking tests r=timhuang"

This reverts commit 65643858cf.

Revert "Bug 1873716: Handle about:blank iframes that do fingerprinting r=timhuang"

This reverts commit f876fc136a.

Revert "Bug 1873716: Update the heuristics used to identify different fingerprinters r=timhuang"

This reverts commit 76464d0857.

Revert "Bug 1873716: Adding more recording sites r=timhuang"

This reverts commit c83fe48d8f.

Revert "Bug 1873716: Finally change how we report telemetry r=timhuang"

This reverts commit 39accc7ebd.

Revert "Bug 1873716: Record (and separate activity) by source r=timhuang"

This reverts commit a59040a6b0.

Revert "Bug 1873716: Switch to using a bitmask for known text r=timhuang"

This reverts commit a66fab0931.

Revert "Bug 1873716: Move the identifier of a Fingerprinter from AntiTracking to RFP r=timhuang"

This reverts commit 8c90d9ae56.

Revert "Bug 1873716: Change the plumbing to use a CanvasFingerprintingEvent r=timhuang"

This reverts commit 34a426c6e3.

Revert "Bug 1873716: Create two new canvas fingerprinting metrics for the improved telemetry design r=timhuang"

This reverts commit b0fc603170.

Revert "Bug 1873716: Simplify the fingerprinting content blocking log logic r=timhuang"

This reverts commit 6f17ec54eb.
2025-12-08 23:34:34 +00:00
Tom Ritter 98b91beb72 Bug 1873716: Remove the 'shouldReport' parameter r=timhuang
Based on the fact that no other reporting mechanism cares about
the DATA_RECEIVED flag, and that it eliminates about 75% of the
reports we would have received, remove this argument and do not
change any behavior based on it

Differential Revision: https://phabricator.services.mozilla.com/D274959
2025-12-08 22:34:09 +00:00
Tom Ritter 39accc7ebd Bug 1873716: Finally change how we report telemetry r=timhuang
SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273664
2025-12-08 22:33:56 +00:00
Tom Ritter 34a426c6e3 Bug 1873716: Change the plumbing to use a CanvasFingerprintingEvent r=timhuang
SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273660
2025-12-08 22:33:46 +00:00
Tom Ritter 6f17ec54eb Bug 1873716: Simplify the fingerprinting content blocking log logic r=timhuang
Presently we use CheckSuspiciousFingerprintingActivity to see
if the number of fingerprinting activities exceed a theshold
and if so, we indicate that an entry has suspicious fingerprinting.

That threshold is 1. And we don't have any plans to adjust it.

So we can just remove the check altogether: if that function is
called, it is called immediately after creating or finding a log
of the two relevant types: Canvas or Font fingerprinting.  So it
will _always_ return true.

SKIP_BMO_CHECK

Differential Revision: https://phabricator.services.mozilla.com/D273659
2025-12-08 22:33:41 +00:00
serge-sans-paille 5507f1c19a Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv
Those are the remaining parts required before we land the new mhbt
header inclusion linter

Differential Revision: https://phabricator.services.mozilla.com/D270812
2025-11-16 10:27:57 +00:00
Cristina Horotan 17287b2ae8 Revert "Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv" for causing conflict on reverting Bug 1998267
This reverts commit d0eaaff18d.
2025-11-15 17:02:19 +00:00
serge-sans-paille d0eaaff18d Bug 1995522 - Cleanup remaining unused mfbt includes r=emilio,necko-reviewers,media-playback-reviewers,webrtc-reviewers,profiler-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,layout-reviewers,dom-worker-reviewers,emz,mstange,TYLin,alwu,pehrsons,dom-storage-reviewers,valentin,jari,jwatt,hsingh,edenchuang,janv
Those are the remaining parts required before we land the new mhbt
header inclusion linter

Differential Revision: https://phabricator.services.mozilla.com/D270812
2025-11-14 12:08:52 +00:00
serge-sans-paille e0b12d066f Bug 1997163 - Remove unused mfbt inclusion in toolkit/** r=emilio,application-update-reviewers,credential-management-reviewers,win-reviewers,toolkit-telemetry-reviewers,bytesized,gstoll,dimi
Differential Revision: https://phabricator.services.mozilla.com/D270574
2025-10-30 12:27:00 +00:00
agoloman 38026d3a97 Revert "Bug 1997163 - Remove unused mfbt inclusion in toolkit/** r=emilio,application-update-reviewers,credential-management-reviewers,win-reviewers,toolkit-telemetry-reviewers,bytesized,gstoll,dimi" for causing build bustages @Arm64.h.
This reverts commit 81ad911e44.
2025-10-30 10:40:32 +00:00
serge-sans-paille 81ad911e44 Bug 1997163 - Remove unused mfbt inclusion in toolkit/** r=emilio,application-update-reviewers,credential-management-reviewers,win-reviewers,toolkit-telemetry-reviewers,bytesized,gstoll,dimi
Differential Revision: https://phabricator.services.mozilla.com/D270574
2025-10-30 09:28:49 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Fatih Kilic be40c1b86a Bug 1873716 - Match top level load counter r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D243326
2025-05-06 22:12:24 +00:00
Florian Quèze b4b0d27e43 Bug 1935420 - Migrate histograms to use Glean APIs in toolkit/components/antitracking, r=chutten,anti-tracking-reviewers,firefox-desktop-core-reviewers ,emz,mossop.
Differential Revision: https://phabricator.services.mozilla.com/D234069
2025-01-27 13:42:15 +00:00
Tim Huang 2dbfecdc8b Bug 1918340 - Notify the STATE_COOKIES_PARTITIONED_TRACKER content blocking event for partitioned tracker cookies. r=anti-tracking-reviewers,cookie-reviewers,bvandersloot,edgul
To show the trackers who access partitioned cookies, we need to notify
the STATE_COOKIES_PARTITIONED_TRACKER content blocking event.

The patch changes the cookie service to nofity when accessing the
partitioned tracker cookies. And replace the
STATE_COOKIES_LOADED_TRACKER and
STATE_COOKIES_LOADED_SOCIALTRACKER events with the
STATE_COOKIES_PARTITIONED_TRACKER for the ContentBlockingNotifier.

Differential Revision: https://phabricator.services.mozilla.com/D229330
2024-11-20 23:38:09 +00:00
Paul Zuehlcke 3fe1d5b7bb Bug 1876736 - Record bounce trackers purged in anti-tracking stats. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212798
2024-06-11 17:16:37 +00:00
Tim Huang 68f37c3e60 Bug 1863280 - Part 2: Adding STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING to ContentBlockingLog. r=pbz,anti-tracking-reviewers
To record whether we have detected suspicious fingerprinting activities
to the ContentBlockingLog, we introduce a new ContentBlockingLog event
called STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING.

Whenever a fingerprinting content blocking event gets recorded under an
origin, we check if this origin is conducting suspicious fingerprinting
activites. Then, we store this fact under the origin entry and notify
the STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING event to indicate that there
is a suspicous fingerprinitng activity happening.

I need to move ContentBlockingLog::RecordLogInternal() from header to
cpp file to avoid include file dependency issue.

Differential Revision: https://phabricator.services.mozilla.com/D193454
2023-11-16 00:22:46 +00:00
Tom Schuster 489ae02a57 Bug 1847990 - Font fingerprinting detection and telemetry. r=timhuang,jfkthame,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192074
2023-11-13 10:05:22 +00:00
Tom Schuster b69f140767 Bug 1847990 - Canvas fingerprinting telemetry. r=timhuang,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189111
2023-11-13 10:05:22 +00:00
Harshit Sohaney 8367dd9595 Bug 1826418 - Added a new event to categorize replaced shims scripts for fingerprinting. Replaced shims for fingerprinting are counted in about:protections too now. r=timhuang,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D178324
2023-05-26 08:10:50 +00:00
serge-sans-paille 7e05b62fdb Bug 1823341 - Make toolkit/components/antitracking buildable outside of a unified build environment r=andi
Depends on D172968

Differential Revision: https://phabricator.services.mozilla.com/D172969
2023-03-21 10:47:28 +00:00
Simon Friedberger 5d21cf38c6 Bug 1810790 - Remove Origin Telemetry. r=chutten,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D167779
2023-02-04 18:42:16 +00:00
Cristian Tuns 664ba17a6e Backed out changeset aefea186c9bc (bug 1810790) for causing mochitest failures on performance/browser_preferences_usage.js CLOSED TREE 2023-02-02 08:48:01 -05:00
Simon Friedberger e780b9c123 Bug 1810790 - Remove Origin Telemetry. r=chutten,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D167779
2023-02-02 11:57:11 +00:00
Cristian Tuns a7aaa20a65 Backed out changeset 30517fbc6b05 (bug 1810790) for causing multiple failures CLOSED TREE 2023-01-30 13:13:35 -05:00
Simon Friedberger b1ff3fe29a Bug 1810790 - Remove Origin Telemetry. r=chutten,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D167779
2023-01-30 16:24:45 +00:00