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

372 Коммитов

Автор SHA1 Сообщение Дата
Jan Varga e714fc9814 Bug 1659925 - Use QM_TRY with cleanup in QuotaManager::EnsureStorageIsInitialized; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D87565
2020-08-24 08:15:20 +00:00
Jan Varga 57c6350d78 Bug 1659680 - QM: Introduce ToResultGet and use it in EnsureStorageIsInitialized; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D87422
2020-08-24 17:41:30 +00:00
Jan Varga 549e4c14b7 Bug 1659677 - QM: Replace SuccessEnforcer with mozilla::Result::orElse; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D87420
2020-08-24 16:36:08 +00:00
Jan Varga 64d2674507 Bug 1659689 - QM: Change return type of LoadCacheVersion to Result<int32_t, nsresult>; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87430
2020-08-21 05:44:19 +00:00
Jan Varga ee8d613f32 Bug 1659689 - QM: Change return type of LoadLocalStorageArchiveVersion to Result<int32_t, nsresult>; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87429
2020-08-21 05:11:14 +00:00
Jan Varga 2d14cadbbe Bug 1659689 - QM: Change return type of IsLocalStorageArchiveInitialized to Result<bool, nsresult>; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87428
2020-08-21 05:11:11 +00:00
Jan Varga d238a70396 Bug 1659683 - QM: Record first initialization attempt directly in UpgradeStorageFrom* functions; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87426
2020-08-21 05:11:03 +00:00
Jan Varga 14808faf69 Bug 1659683 - QM: Record first initialization attempt directly in UpgradeFromPersistentStorageDirectoryToDefaultStorageDirectory; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87425
2020-08-21 05:11:00 +00:00
Jan Varga a07b1845e7 Bug 1659683 - QM: Record first initialization attempt directly in UpgradeFromIndexedDBDirectoryToPersistentStorageDirectory; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D87424
2020-08-21 05:16:40 +00:00
Jan Varga 8c74711517 Bug 1658874 - Change return type of QuotaManager::CreateLocalStorageArchiveConnection to Result<V, E>; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86913
2020-08-20 11:04:05 +00:00
Jan Varga 56128d1bfc Bug 1658324 - Convert most of the error handling in QuotaManager::EnsureStorageIsInitialized to QM_TRY/QM_TRY_VAR; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86560
2020-08-20 13:32:21 +00:00
Butkovits Atila 850817430e Backed out 3 changesets (bug 1658874, bug 1658324, bug 1659660) for bustage at ActorsParent.cpp. CLOSED TREE
Backed out changeset b69e256013a3 (bug 1659660)
Backed out changeset 4939692a9047 (bug 1658874)
Backed out changeset e27fb7cd29fe (bug 1658324)
2020-08-20 13:57:20 +03:00
Jan Varga 33dc9faddb Bug 1658874 - Change return type of QuotaManager::CreateLocalStorageArchiveConnection to Result<V, E>; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86913
2020-08-20 08:52:34 +00:00
Jan Varga 21c2588147 Bug 1658324 - Convert most of the error handling in QuotaManager::EnsureStorageIsInitialized to QM_TRY/QM_TRY_VAR; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86560
2020-08-20 07:32:05 +00:00
Tom Tung f3e1fbf443 Bug 1609625 - Align the name of key for TimeStamp errors; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D87610
2020-08-19 16:33:09 +00:00
Tom Tung e116198cc4 Bug 1609625 - Deal with recorded time duration if it across sleep/wake; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83305

Differential Revision: https://phabricator.services.mozilla.com/D83524
2020-08-18 07:31:24 +00:00
Tom Tung 93f8af72df Bug 1609625 - Remove the probe for tracking time duration on initializing repositories and add a probe for tracking time duration on loading quota; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83304

Differential Revision: https://phabricator.services.mozilla.com/D83305
2020-08-18 07:53:15 +00:00
Jan Varga c35198fb73 Bug 1658504 - Support declaration of variables in QM_TRY_VAR; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86685
2020-08-11 11:17:56 +00:00
Simon Giesecke 96f3e7e019 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Noemi Erli 381fca9783 Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Simon Giesecke 032d2ac9d3 Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +00:00
Jan Varga f504378166 Bug 1651016 - Convert remaining NS_ENSURE_SUCCESS to QM_TRY in ActorsParent.cpp; r=dom-workers-and-storage-reviewers,ttung,sg
Differential Revision: https://phabricator.services.mozilla.com/D83958
2020-07-24 07:01:36 +00:00
Jan Varga 8e9d12cff6 Bug 1651016 - Convert remaining NS_ENSURE_TRUE to QM_TRY; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D83953
2020-07-24 07:01:36 +00:00
Jan Varga d9083e868b Bug 1651016 - Convert NS_ENSURE_SUCCESS and NS_ENSURE_TRUE in EnsureDirectory; r=dom-workers-and-storage-reviewers,ttung,sg
Differential Revision: https://phabricator.services.mozilla.com/D83931
2020-07-24 07:01:36 +00:00
Mihai Alexandru Michis 74e45489fa Backed out 9 changesets (bug 1651016) for causing hazard failures in TestQuotaCommon.cpp
CLOSED TREE

Backed out changeset 5e566996d34e (bug 1651016)
Backed out changeset 002ddedb37dc (bug 1651016)
Backed out changeset aed04f32eb91 (bug 1651016)
Backed out changeset 2f4529e62cd3 (bug 1651016)
Backed out changeset 8f2aa854a083 (bug 1651016)
Backed out changeset 7f6eb1658a16 (bug 1651016)
Backed out changeset 5d5b249ca664 (bug 1651016)
Backed out changeset 9142d4249c29 (bug 1651016)
Backed out changeset 8d2cc761e5ba (bug 1651016)
2020-07-24 00:00:55 +03:00
Jan Varga d380b48ae6 Bug 1651016 - Convert remaining NS_ENSURE_SUCCESS to QM_TRY in ActorsParent.cpp; r=dom-workers-and-storage-reviewers,ttung,sg
Differential Revision: https://phabricator.services.mozilla.com/D83958
2020-07-23 09:18:05 +00:00
Jan Varga 0c646b6416 Bug 1651016 - Convert remaining NS_ENSURE_TRUE to QM_TRY; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D83953
2020-07-23 18:29:02 +00:00
Jan Varga c83c17ecd2 Bug 1651016 - Convert NS_ENSURE_SUCCESS and NS_ENSURE_TRUE in EnsureDirectory; r=dom-workers-and-storage-reviewers,ttung,sg
Differential Revision: https://phabricator.services.mozilla.com/D83931
2020-07-23 09:17:29 +00:00
Tom Tung 63e00f01a8 Bug 1614397 - Remove the temporary telemetry probe for tracking temporary storage initialization time; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D83304
2020-07-13 13:54:04 +00:00
Simon Giesecke 9364b353d4 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke e3c223da3e Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80861
2020-07-01 08:34:12 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Simon Giesecke 55e3bdd7f8 Bug 1641512 - Use Result<UsageInfo, nsresult> as return type of InitOrigin and add separate InitOriginWithoutTracking. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D77453
2020-06-25 09:31:39 +00:00
Simon Giesecke c23800e5f2 Bug 1641512 - Use Result<UsageInfo, nsresult> as return type of GetUsageForOrigin. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D77452
2020-06-25 08:34:43 +00:00
Jean-Yves Avenard 87438519f0 Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Simon Giesecke 92ffcc48e8 Bug 1641512 - Replace Append method by operator+=. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D77451
2020-06-11 10:42:24 +00:00
Tom Tung bf2c33ba86 Bug 1641231 - Reduce raw pointers as functions arguments for DirectoryLock related functions in QuotaManager; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78068
2020-06-10 10:11:53 +00:00
Tom Tung 4970cd9ea4 Bug 1641231 - Use FlippedOnce for DirectoryLockImpl::mInvalidate; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78067
2020-06-10 12:25:09 +00:00
Tom Tung 714f42fd9c Bug 1641231 - Use InitializedOnce for DirectoryLockImpl::mOpenListener; r=dom-workers-and-storage-reviewers,janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D78066
2020-06-10 10:11:53 +00:00
Tom Tung 9810bb5a2b Bug 1641231 - Use NotNull for DirectoryLockImpl's member variables; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78065
2020-06-10 10:10:47 +00:00
Tom Tung 55867d7488 Bug 1641231 - Replace raw pointers as functions arguments in DirectoryLockImpl; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78062
2020-06-10 10:10:39 +00:00
Csoregi Natalia ab2cd5732d Backed out 5 changesets (bug 1641231) for assertion failures on FlippedOnce.h. CLOSED TREE
Backed out changeset f91248e16c71 (bug 1641231)
Backed out changeset 3c4db99ba498 (bug 1641231)
Backed out changeset 125533344189 (bug 1641231)
Backed out changeset 203e3ec45022 (bug 1641231)
Backed out changeset 84668b82ebee (bug 1641231)
2020-06-09 20:39:47 +03:00
Tom Tung 3402c1562f Bug 1641231 - Reduce raw pointers as functions arguments for DirectoryLock related functions in QuotaManager; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78068
2020-06-08 08:22:43 +00:00
Tom Tung 893617b0d8 Bug 1641231 - Use FlippedOnce for DirectoryLockImpl::mInvalidate; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78067
2020-06-04 08:30:33 +00:00
Tom Tung deebd6c64d Bug 1641231 - Use InitializedOnce for DirectoryLockImpl::mOpenListener; r=dom-workers-and-storage-reviewers,janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D78066
2020-06-09 06:59:40 +00:00
Tom Tung 453b1fffec Bug 1641231 - Use NotNull for DirectoryLockImpl's member variables; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78065
2020-06-04 08:23:10 +00:00
Tom Tung 49df6834b9 Bug 1641231 - Replace raw pointers as functions arguments in DirectoryLockImpl; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78062
2020-06-04 07:53:45 +00:00
Simon Giesecke 13502cf27c Bug 1642991 - Use RemoveElementsBy where easily possible. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78055
2020-06-08 09:01:48 +00:00
Tom Tung 50ef0fddc5 Bug 1641231 - Split GetUsageForOrigin into a smaller function; r=dom-workers-and-storage-reviewers,sg,janv
Differential Revision: https://phabricator.services.mozilla.com/D77286
2020-05-29 13:57:50 +00:00
Tom Tung 12150459e9 Bug 1641231 - Use Result instead of an out parameter for QuotaUsageRequestBase::GetUsageForOrigin; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D77080
2020-05-29 13:20:24 +00:00