Commit Graph

63 Commits

Author SHA1 Message Date
Manuel Bucher
9299e47a12 Bug 1952564 - Fix "Cookies and site data" being set for users when migrating from clear-site-data dialog v2 to v3 (unmerge history and formdata) r=emz
Differential Revision: https://phabricator.services.mozilla.com/D241037
2025-03-12 12:17:55 +00:00
Goloman Adrian
3b1ad52d9f Backed out changeset 1c0dde7af6e9 (bug 1952564) for causing bc failures @browser_sanitizeDialog_v2.js. CLOSED TREE 2025-03-12 00:26:20 +02:00
Manuel Bucher
a731ebeb1f Bug 1952564 - Fix "Cookies and site data" being set for users when migrating from clear-site-data dialog v2 to v3 (unmerge history and formdata) r=emz
Differential Revision: https://phabricator.services.mozilla.com/D241037
2025-03-11 17:56:50 +00:00
Florian Quèze
6784b8164c Bug 1944631 - Migrate histograms to use Glean APIs in browser/modules/Sanitizer.sys.mjs, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D238096
2025-02-17 15:10:53 +00:00
Harshit Sohaney
79547d182a Bug 1944566 - Fix formdata removal when clearing on shutdown. r=emz,places-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D236265
2025-02-04 16:33:54 +00:00
Harveer Singh
e93d3ed84a Bug 1930378: Ensure nsIClearDataService.cleanupAfterDeletionAtShutdown is always called after sanitization.r=dom-storage-reviewers,janv,asuth,emz
We ensure that nsIClearDataService.cleanupAfterDeletionAtShutdown always get called at the end of sanitization process.
For optimization reasons, this was only performed conditionally where it used to check if sanitization was performed or
not and skips cleanup if it was not. Now, the condition is more general and relaxed where we check the existence of 'to-be-removed'
directory and check its' contents to decide if cleanup is required. It was harder to ensure that cleanup was done correctly for all
cases with prior approach.

Differential Revision: https://phabricator.services.mozilla.com/D231268
2025-01-09 18:24:12 +00:00
Harshit Sohaney
c6c656995e Bug 1888466 - (part 7) Add a migration to allow user's to continue clearing data without any unexpected data loss or persistance for history and formdata. r=manuel
Differential Revision: https://phabricator.services.mozilla.com/D228209
2025-01-09 12:52:47 +00:00
Harshit Sohaney
11deb510cf Bug 1888466 - (Part 1) Unmerge form data from the history and downloads pref. r=fluent-reviewers,bolsson,manuel
Differential Revision: https://phabricator.services.mozilla.com/D220980
2025-01-09 12:52:45 +00:00
Emilio Cobos Álvarez
5e05eb6892 Bug 1918659 - Remove nsIClearDataService.CLEAR_SESSION_HISTORY. r=smaug,pbz,sessionstore-reviewers,sfoster
Other than in one test, we don't use it separate from CLEAR_HISTORY.

They are two different bits because in the past one bit could only have
one cleaner associated to it, but that is no longer an issue.

Differential Revision: https://phabricator.services.mozilla.com/D222107
2024-09-16 14:12:21 +00:00
Harshit Sohaney
09d49f353d Bug 1907783 - Use the new clear on shutdown branch to prevent losing pending shutdown items on unexpected shutdown. r=pbz,places-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D216616
2024-07-19 18:24:04 +00:00
William Wen
6aad46ac21 Bug 1658094 - Add new cleaner for "cookie" permissions. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D212057
2024-06-24 15:14:45 +00:00
Harshit Sohaney
403fae4bcf Bug 1895612 - Add new prefs to run the clear history pref migration again for all users for the new clear history dialog. r=pbz
Depends on D208411

Differential Revision: https://phabricator.services.mozilla.com/D209758
2024-05-25 15:19:14 +00:00
Mike Hommey
68e5cec3f6 Bug 1885449 - Move GV code shared between Android and iOS to a shared directory. r=geckoview-reviewers,frontend-codestyle-reviewers,nalexander,owlish
And hook them up to the iOS build.

Differential Revision: https://phabricator.services.mozilla.com/D204711
2024-05-16 22:08:51 +00:00
Harshit Sohaney
c3540c3462 Bug 1881797 - (part 2) Add a helper flag to clear cookies and site data. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D206533
2024-04-09 15:39:32 +00:00
Harshit Sohaney
dc8995e1b9 Bug 1881797 - (part 1) Add cleaner for site-permissions and storage-access for clearing site data history. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D203684
2024-04-09 15:39:32 +00:00
Kagami Sascha Rosylight
28b156ceb7 Bug 1814281 - Add more logs to confirm sanitization runs r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D206677
2024-04-09 14:50:44 +00:00
Harshit Sohaney
ae4aed478f Bug 1881579 - Add clearing EME functionality for cookies and storage in the new clear history dialog. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D203683
2024-03-29 03:25:41 +00:00
Dave Townsend
a0c83bc943 Bug 1864896: Autofix unused function arguments (browser). r=webcompat-reviewers,mconley,fxview-reviewers,desktop-theme-reviewers,omc-reviewers,migration-reviewers,twisniewski,aminomancer,dao,sclements,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203005
2024-03-19 09:36:35 +00:00
Mark Banner
afdbce2ec3 Bug 1884623 - Update more jsm references in production code and docs in browser/. r=mossop,extension-reviewers,omc-reviewers,migration-reviewers,robwu,mconley,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204182
2024-03-11 15:26:28 +00:00
Harshit Sohaney
edc5c03ac4 Bug 1878111 - Migrate prefs for clear history dialog in both clearHistory and clearOnShutdown contexts. r=pbz,mconley
Differential Revision: https://phabricator.services.mozilla.com/D201630
2024-02-26 21:29:36 +00:00
Paul Zuehlcke
d5ea0142dc Bug 1878915 - Add CLEAR_BOUNCE_TRACKING_PROTECTION_STATE flag to nsIClearDataService callers. r=bvandersloot,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D200972
2024-02-14 09:44:55 +00:00
Cosmin Sabou
1697c44570 Backed out 8 changesets (bug 1839919, bug 1876579, bug 1878915) for causing non-unified build bustages on nsCOMPtr.h.
Backed out changeset 99ce75dc42c5 (bug 1878915)
Backed out changeset 1ba7f2b78980 (bug 1878915)
Backed out changeset c4675cbf4e84 (bug 1878915)
Backed out changeset df1f8aa6637f (bug 1839919)
Backed out changeset 325f849a24df (bug 1839919)
Backed out changeset e1f7b77f841b (bug 1839919)
Backed out changeset 33e6ffa9f8cc (bug 1876579)
Backed out changeset bae7618dff51 (bug 1876579)
2024-02-13 16:15:27 +02:00
Paul Zuehlcke
3c595e0a18 Bug 1878915 - Add CLEAR_BOUNCE_TRACKING_PROTECTION_STATE flag to nsIClearDataService callers. r=bvandersloot,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D200972
2024-02-13 11:33:07 +00:00
Harshit Sohaney
c934d62d7a Bug 1876097 - Migrate old prefs to the new prefs for clear on shutdown in the new clear history dialog. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D199445
2024-01-29 14:17:40 +00:00
Tim Huang
6b243ce2f7 Bug 1852738 - Part 4: Add tests. r=tjr,pbz
The patch adds a test function to nsIRFPService.idl for generating
fingerprinting randomization key for the given channel. It also adds
tests for ensuring the ClearDataService properly clears the random key.

Differential Revision: https://phabricator.services.mozilla.com/D196303
2024-01-22 19:09:12 +00:00
Tim Huang
29f5511898 Bug 1852738 - Part 3: Add a FingerprintingProtectionState cleaner. r=pbz,geckoview-reviewers,owlish
This patch implements a FingerprintingProtectionState cleaner that calls
the clear functions to reset fingerprinting random key.

Differential Revision: https://phabricator.services.mozilla.com/D196302
2024-01-22 19:09:11 +00:00
Harshit Sohaney
4e984702b9 Bug 1869884 - Remerging downloads into history. r=pbz,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D198393
2024-01-19 06:30:02 +00:00
Natalia Csoregi
d94e9647c8 Backed out changeset 7969278ce39f (bug 1869884) for causing failures on browser_sanitizeDialog_v2.js. CLOSED TREE 2024-01-19 00:54:37 +02:00
Harshit Sohaney
b3c41dcdf5 Bug 1869884 - Remerging downloads into history. r=pbz,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D198393
2024-01-18 20:10:01 +00:00
Harshit Sohaney
aea6eced6f Bug 1861450 - (Part 1) Create new prefs and categories in Sanitizer for the new dialog box. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D194136
2024-01-16 06:50:46 +00:00
Harshit Sohaney
3d88318d2d Bug 1856412 - (Part 1) Make all clear history entrypoints point to the new clear history dialog. r=pbz,fluent-reviewers,settings-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192282
2024-01-15 13:10:05 +00:00
Harshit Sohaney
e2e1067f1f Bug 1855068 - (Part 1) Added functionality to get all data sizes by time range. r=pbz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D190862
2024-01-15 13:10:05 +00:00
Noemi Erli
5ee98305d6 Backed out 4 changesets (bug 1855068, bug 1856412) for causing failures in test_SiteDataManager.js CLOSED TREE
Backed out changeset dbaf2b0da226 (bug 1856412)
Backed out changeset 8d040fd73abf (bug 1856412)
Backed out changeset 645f7ed438fb (bug 1855068)
Backed out changeset be41f5296dec (bug 1855068)
2024-01-11 03:20:27 +02:00
Harshit Sohaney
458e1863b3 Bug 1856412 - (Part 1) Make all clear history entrypoints point to the new clear history dialog. r=pbz,fluent-reviewers,settings-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192282
2024-01-10 13:15:01 +00:00
Harshit Sohaney
20e51c41c6 Bug 1855068 - (Part 1) Added functionality to get all data sizes by time range. r=pbz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D190862
2024-01-10 11:47:26 +00:00
Harshit Sohaney
642fccf057 Bug 1856415 - (Part 1) Updating clear data dialog UI. r=pbz,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,Gijs,dao,flod
Differential Revision: https://phabricator.services.mozilla.com/D189947
2023-12-18 14:41:11 +00:00
Sandor Molnar
717f90695a Backed out 2 changesets (bug 1856415) for causing bc failures at browser/base/content/test/static/browser_all_files_referenced.js CLOSED TREE
Backed out changeset f5e458c049b9 (bug 1856415)
Backed out changeset ffd79f9e0881 (bug 1856415)
2023-12-11 20:20:33 +02:00
Harshit Sohaney
2bbd228a56 Bug 1856415 - (Part 1) Updating clear data dialog UI. r=pbz,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,Gijs,dao,flod
Differential Revision: https://phabricator.services.mozilla.com/D189947
2023-12-11 16:50:57 +00:00
Tim Huang
8988120223 Bug 1854940 - Part 2: Add a CookieBannerCleaner to ClearDataService. r=pbz,geckoview-reviewers,anti-tracking-reviewers,amejiamarmol
The patch add a CookieBannerExceptionCleaner and a
CookieBannerExecutedRecordCleaner to ClearDataService. The cleaners
clear the cookie banner handling data. We will also clear the executed
record when cleaning cookies or dom storage so that the cookie banner
handling will run again after cleaning.

Differential Revision: https://phabricator.services.mozilla.com/D190764
2023-11-09 08:29:16 +00:00
Stanca Serban
826b87ff61 Backed out 4 changesets (bug 1854940) for causing multiple failures.
Backed out changeset 2d264402493e (bug 1854940)
Backed out changeset 144b76e6db22 (bug 1854940)
Backed out changeset 5a9e45504f32 (bug 1854940)
Backed out changeset c8c7ec382574 (bug 1854940)
2023-11-08 14:20:06 +02:00
Tim Huang
ea0bd01c63 Bug 1854940 - Part 2: Add a CookieBannerCleaner to ClearDataService. r=pbz,geckoview-reviewers,anti-tracking-reviewers,amejiamarmol
The patch add a CookieBannerExceptionCleaner and a
CookieBannerExecutedRecordCleaner to ClearDataService. The cleaners
clear the cookie banner handling data. We will also clear the executed
record when cleaning cookies or dom storage so that the cookie banner
handling will run again after cleaning.

Differential Revision: https://phabricator.services.mozilla.com/D190764
2023-11-08 11:04:46 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Kagami Sascha Rosylight
0db38fe58e Bug 1830384 - Skip cleanup when no sanitization happened r=hpeuckmann
D176147 falsely let the process always run; this should now skip it when not needed.

Differential Revision: https://phabricator.services.mozilla.com/D176709
2023-05-03 07:33:10 +00:00
Kagami Sascha Rosylight
76b85e7701 Bug 1827390 - Reduce calls to maybeSanitizeSessionPrincipals r=hpeuckmann
Also initializes gPrincipalsCollector properly.

Differential Revision: https://phabricator.services.mozilla.com/D176147
2023-04-25 10:11:11 +00:00
Hannah Peuckmann
359e3af2ee Bug 1578273 - Reduce calls to the PrincipalsCollector. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162721
2023-03-31 13:47:39 +00:00
Marian-Vasile Laza
5d1b4404c7 Backed out 2 changesets (bug 1578273, bug 1806620) as req for causing Bug 1816279. CLOSED TREE
Backed out changeset a34115b334e2 (bug 1806620)
Backed out changeset 733f6ba8c1c6 (bug 1578273)
2023-02-16 13:01:02 +02:00
Mark Banner
799dd68531 Bug 1808289 - Automatically replace Cu.reportError with console.error (browser/themes, browser/modules). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165848
2023-01-03 19:16:20 +00:00
Danny Colin
2bfbc92b65 Bug 1796797 - Convert toolkit/components/contextualidentity JSM modules to ESMs r=baku,webdriver-reviewers,extension-reviewers,settings-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D159945
2022-12-21 08:14:05 +00:00
Hannah Peuckmann
2902280379 Bug 1578273 - Reduce calls to the PrincipalsCollector. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162721
2022-12-20 08:33:57 +00:00