Граф коммитов

3972 Коммитов

Автор SHA1 Сообщение Дата
Iulian Moraru 3e09eabd4e Backed out 10 changesets (bug 1928672, bug 1922020) for causing mochitest-plain failures on test_different_domain_in_hierarchy.html. CLOSED TREE
Backed out changeset c7c93c34f516 (bug 1928672)
Backed out changeset 4e6a8bea3574 (bug 1922020)
Backed out changeset 11718a55e298 (bug 1922020)
Backed out changeset ff0655d8a6a9 (bug 1922020)
Backed out changeset cabd41ab53e4 (bug 1922020)
Backed out changeset 88eac74dbe86 (bug 1922020)
Backed out changeset ea5096fafb29 (bug 1922020)
Backed out changeset 852d8a2132c8 (bug 1922020)
Backed out changeset e66184701c85 (bug 1922020)
Backed out changeset f52eb9bf4d08 (bug 1922020)
2024-11-05 01:46:32 +02:00
Benjamin VanderSloot 67b11bf553 Bug 1922020, part 8 - Remove reliance on window.opener storage access heuristic in user.js from dom/indexedDB - r=asuth,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224813
2024-11-04 20:38:38 +00:00
Goloman Adrian 4373312425 Backed out 10 changesets (bug 1928672, bug 1922020) for causing bc failures @browser_permissionPropagation.js. CLOSED TREE
Backed out changeset 48e75896365c (bug 1928672)
Backed out changeset efa4047d526e (bug 1922020)
Backed out changeset 3df5f4781f39 (bug 1922020)
Backed out changeset 23e201efd3b8 (bug 1922020)
Backed out changeset 4c05fa56cf47 (bug 1922020)
Backed out changeset 43f97ae7eb6f (bug 1922020)
Backed out changeset 5e14c27894de (bug 1922020)
Backed out changeset cf506f71a542 (bug 1922020)
Backed out changeset e034708dee92 (bug 1922020)
Backed out changeset 787a649b70b8 (bug 1922020)
2024-11-04 18:11:34 +02:00
Benjamin VanderSloot a36a7255c4 Bug 1922020, part 8 - Remove reliance on window.opener storage access heuristic in user.js from dom/indexedDB - r=asuth,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224813
2024-11-04 13:04:40 +00:00
Sylvestre Ledru cd289bcb06 Bug 1921433 - reformat with black 24.8.0 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,taskgraph-reviewers,releng-reviewers,dom-storage-reviewers,janv,jmaher,whimboo,afinder,ahal
Differential Revision: https://phabricator.services.mozilla.com/D223963
2024-11-03 20:28:59 +00:00
Sandor Molnar 4844cd6ff2 Backed out 4 changesets (bug 1922020) for causing mochitest plain failures. CLOSED TREE
Backed out changeset 758a808aa636 (bug 1922020)
Backed out changeset 09892a5bf0f2 (bug 1922020)
Backed out changeset 0ad002c61500 (bug 1922020)
Backed out changeset 4f130b2a64e4 (bug 1922020)
2024-10-31 22:20:58 +02:00
Benjamin VanderSloot 7cd55cf3f2 Bug 1922020, part 8 - Remove reliance on window.opener storage access heuristic in user.js from dom/indexedDB - r=asuth,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224813
2024-10-31 18:36:30 +00:00
Alexandru Marc 9615ca2956 Backed out 4 changesets (bug 1922020) for causing build bustages @ ActorsParent.cpp. CLOSED TREE
Backed out changeset 3926397fec17 (bug 1922020)
Backed out changeset 37af765882cb (bug 1922020)
Backed out changeset cd59a5e18609 (bug 1922020)
Backed out changeset 33e10ef1ba65 (bug 1922020)
2024-10-31 17:54:02 +02:00
Benjamin VanderSloot ff8d9a42e1 Bug 1922020, part 8 - Remove reliance on window.opener storage access heuristic in user.js from dom/indexedDB - r=asuth,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224813
2024-10-31 15:14:15 +00:00
Joel Maher 4ce101dc6e Bug 1927333 - clean up mochitest.toml files for mac/linux to include processor and os_version. r=aryx,jgilbert,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D226987
2024-10-29 23:35:47 +00:00
serge-sans-paille e54774d573 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc 191ccbe7fe Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
serge-sans-paille 53068cdf31 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Jan Varga 5fe0ba685f Bug 1903816 - GetDatabasesOp::SendResults doesn't check if operation failed; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D226739
2024-10-24 08:56:31 +00:00
Alexandru Marc 83543f20f2 Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE 2024-10-24 11:37:49 +03:00
serge-sans-paille c7a369b29a Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Jan Varga 8386591a8a Bug 1926565 - IDB: Ensure that a closed connection is not used when asserting that the current thread is the connection thread; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D226649
2024-10-23 20:17:07 +00:00
Jan Varga 40c2d54381 Bug 1926565 - IDB: Remove a meaningless assertion; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D226638
2024-10-23 20:17:07 +00:00
Jari Jalkanen 1a6d576667 Bug 1878149 - Test deserialization function with filelist for IDB schema upgrades. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D224968
2024-10-22 04:49:16 +00:00
Jari Jalkanen 0b9ac1b83a Bug 1878149 - Add Filelist structured cloning support to IDB. r=dom-storage-reviewers,janv,asuth
Differential Revision: https://phabricator.services.mozilla.com/D222910
2024-10-22 04:49:16 +00:00
Jari Jalkanen 9f51a7c484 Bug 1878149 - Add async version of verifyBlob to file.js helper for IDB. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D223958
2024-10-22 04:49:15 +00:00
Jan Varga e79a4c2ad5 Bug 1904562 - Change DirectoryLockImpl to be topmost class; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D214857
2024-10-21 09:31:27 +00:00
Jan Varga afc04fa756 Bug 1904562 - Convert IndexedDB to use concrete directory lock type; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D214855
2024-10-21 09:31:26 +00:00
Jan Varga f7feaf03c6 Bug 1904562 - Move ClientDirectoryLock to separate files and make it inherit from DirectoryLockImpl; r=dom-storage-reviewers,aiunusov
Differential Revision: https://phabricator.services.mozilla.com/D214849
2024-10-21 09:31:23 +00:00
Jan Varga 6d5f924e4a Bug 1904562 - Move UniversalDirectoryLock to separate files and make it inherit from DirectoryLockImpl; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D214818
2024-10-21 09:31:22 +00:00
Jan Varga c08cca4d20 Bug 1867997 - Simplify signature of QuotaManager::OnOriginClearCompleted; r=dom-storage-reviewers,jari
OnOriginClearCompleted currently takes two separate arguments which can be
expressed as just one argument.

Differential Revision: https://phabricator.services.mozilla.com/D198494
2024-10-18 13:14:03 +00:00
Jan Varga a8506400af Bug 1867997 - Move nsIPrincipal/PrincipalInfo helpers to separate files; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D223992
2024-10-18 01:32:36 +00:00
Jan Varga 9a7972be63 Bug 1867997 - Change QuotaManager::GetInfoFromValidatedPrincipalInfo to be a stacic method; r=dom-storage-reviewers,jari
This is a preparation for moving all nsIPrincipal and PrincipalInfo helpers to separate source files.

Differential Revision: https://phabricator.services.mozilla.com/D223950
2024-10-18 01:32:35 +00:00
Paul Zuehlcke aecbd5cdd2 Bug 1914585 - Remove legacy method ForgetAboutThisSite.removeDataFromDomain. r=hsohaney,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D225544
2024-10-16 15:52:28 +00:00
Jan Varga e57721f47c Bug 1866402 - Remove QuotaManager::EnsurePersistentOriginIsInitializedInternal calls from IndexedDB maintenance; r=dom-storage-reviewers,aiunusov,jari
QuotaManager::OpenStorageDirectory already makes sure that persistent storage
is initialized so this call is now redundant.

Differential Revision: https://phabricator.services.mozilla.com/D195665
2024-10-15 12:33:30 +00:00
Jan Varga b8820c7c3f Bug 1866402 - Add support for initializing persistent storage to QuotaManager::OpenStorageDirectory; r=dom-storage-reviewers,jari
QuotaManager::OpenStorageDirectory can now detect the requested persistence
scope and initialize persistent storage if it's needed.

Differential Revision: https://phabricator.services.mozilla.com/D195661
2024-10-15 05:12:36 +00:00
Jan Varga 491af5e199 Bug 1866402 - Replace most of QuotaManager::EnsurePersistentOriginIsInitializedInternal and QuotaManager::EnsureTemporaryOriginIsInitializedInternal calls; r=dom-storage-reviewers,jari
QuotaManager::OpenClientDirectory already makes sure that corresponding origin
is initialized so all places where a client directory lock is obtained in such
way can start using QuotaManager::GetOriginDirectory instead of
QuotaManager::EnsurePersistentOriginIsInitializedInternal and
QuotaManager::GetOrCreateTemporaryOriginDirectory instead of
QuotaManager::EnsureTemporaryOriginIsInitializedInternal.

Differential Revision: https://phabricator.services.mozilla.com/D195589
2024-10-13 23:05:25 +00:00
Jan Varga 196dc764ef Bug 1866402 - Make it possible to initialize temporary origins without ensuring origin directories; r=dom-storage-reviewers,jari
LSNG already uses some QuotaManager APIs to achieve that origin directories are
not created if they don't exist during datastore preparation, but the feature
is not easy to use and it's also not generalized enough for use in other quota
clients. Besides that, the way how it's currently done in LSNG complicates
removal of QuotaManager::EnsureTemporaryOriginIsInitializedInternal calls from
LSNG. This patch is about generalizing of the feature, making it available to
all quota clients.

Differential Revision: https://phabricator.services.mozilla.com/D195551
2024-10-12 20:58:36 +00:00
Sebastian Hengst d0c13bb2a9 Backed out 7 changesets (bug 1866402) for causing crashes (bug 1762908). a=backout
Backed out changeset 6180f2e753bd (bug 1866402)
Backed out changeset f25dfc157ef7 (bug 1866402)
Backed out changeset d63dac1ee4d4 (bug 1866402)
Backed out changeset 2ab08c49f2b1 (bug 1866402)
Backed out changeset 48781c71d287 (bug 1866402)
Backed out changeset a649d075c9b3 (bug 1866402)
Backed out changeset cc03e4975743 (bug 1866402)
2024-10-11 12:47:35 +02:00
Jan Varga 2a11d937ee Bug 1866402 - Make it possible to initialize temporary origins without ensuring origin directories; r=dom-storage-reviewers,jari
LSNG already uses some QuotaManager APIs to achieve that origin directories are
not created if they don't exist during datastore preparation, but the feature
is not easy to use and it's also not generalized enough for use in other quota
clients. Besides that, the way how it's currently done in LSNG complicates
removal of QuotaManager::EnsureTemporaryOriginIsInitializedInternal calls from
LSNG. This patch is about generalizing of the feature, making it available to
all quota clients.

Differential Revision: https://phabricator.services.mozilla.com/D195551
2024-10-10 12:22:55 +00:00
Jan Varga 3f5feb1074 Bug 1914599 - Fix a potential race between OpenDatabaseOp and GetDatabasesOp; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D224463
2024-10-09 18:19:22 +00:00
Andrea Marchesini 0de3f2c032 Bug 1923340 - Remove an unused member variable in IDBFactory.h, r=asuth,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224944
2024-10-09 05:40:26 +00:00
Jan Varga ac3d53c454 Bug 1913561 - Remove QuotaManager::EnsureTemporaryStorageIsInitializedInternal calls from places where a directory lock is obtained via QuotaManager::OpenStorageDirectory; r=dom-storage-reviewers,jari
QuotaManager::OpenStorageDirectory already makes sure that temporary storage
is initialized so all these calls are now redundant.

Differential Revision: https://phabricator.services.mozilla.com/D195395
2024-10-07 10:25:01 +00:00
Jan Varga 9fc642a657 Bug 1913561 - Add support for initializing temporary storage to QuotaManager::OpenStorageDirectory; r=dom-storage-reviewers,jari
QuotaManager::OpenStorageDirectory can now detect the requested persistence
scope and initialize temporary storage if it's needed.

Differential Revision: https://phabricator.services.mozilla.com/D195393
2024-10-06 22:04:46 +00:00
Jan Varga a0ead95a6f Bug 1913561 - Remove QuotaManager::EnsureTemporaryStorageIsInitializedInternal calls from places where a directory lock is obtained via QuotaManager::OpenClientDirectory; r=dom-storage-reviewers,jari
QuotaManager::OpenClientDirectory already makes sure that temporary storage
is initialized so all these calls are now redundant.

Differential Revision: https://phabricator.services.mozilla.com/D195391
2024-10-06 02:01:00 +00:00
Jan Varga abeb2aa5df Bug 1920487 - QM: Rename helpers for resolving nsresult type; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D223131
2024-10-04 16:57:02 +00:00
Jan Varga b0651b3180 Bug 1919493 - IDB: Propagate database invalidation when the actor becomes alive; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D220674
2024-10-01 17:35:59 +00:00
Jan Varga 53dfbd8ce9 Bug 1919493 - Add a disabled test for origin clearing requested right after starting database work for already existing IDB database; r=dom-storage-reviewers,jari
The new test reveals an edge case when the "Invalidate" IPC message is not sent
to the child causing a subsequent hang.

Differential Revision: https://phabricator.services.mozilla.com/D220673
2024-10-01 17:35:58 +00:00
Jan Varga 075b26ea6c Bug 1919493 - IDB: Modify test_slowDatabaseInitialization.js to allow running multiple subtests; r=dom-storage-reviewers,jari
IDB xpcshell tests historically always supported running only one generator
function or one async function. It turns out that the async function can call
add_task multiple times to add multiple subtests.

Differential Revision: https://phabricator.services.mozilla.com/D220672
2024-10-01 17:35:58 +00:00
Jan Varga 420b19385c Bug 1919493 - IDB: Add handling for directory locks invalidated during database initialization; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D220248
2024-10-01 17:35:57 +00:00
Jan Varga 3734dbe2aa Bug 1919493 - Add a test for origin clearing requested right after starting database work for IDB; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D220247
2024-10-01 17:35:57 +00:00
Jan Varga 12ec927702 Bug 1919493 - IDB: Add support for pausing QM IO thread after finishing database initialization; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D220246
2024-10-01 17:35:57 +00:00
Jan Varga b67523c70e Bug 1919493 - IDB: Add a new testing only notification for database work starting; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D220245
2024-10-01 17:35:56 +00:00
Jan Varga 4fa78afa11 Bug 1918036 - IDB: Add a test for rapid addition and deletion of blobs; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D221767
2024-09-25 05:18:35 +00:00
Harveer Singh 3cbedbfc03 Bug 1914982: Fixing the race condition in FileInfoManager.h.r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D222469
2024-09-23 21:40:52 +00:00