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

167 Коммитов

Автор SHA1 Сообщение Дата
Jan Varga a19671cf78 Bug 1619592 - Remove unused EnsureStorageAndOriginIsInitialized method; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D65939
2020-11-19 15:42:19 +00:00
Jan Varga 1ed80b88a4 Bug 1619592 - Convert EnsureDirectory, EnsureOriginDirectory, EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized to use mozilla::Result and QM_TRY; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97254
2020-11-19 09:40:52 +00:00
Jan Varga a7d7c361aa Bug 1619592 - Remove unused aClientType argument in EnsureStorageAndOriginIsInitialized; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97253
2020-11-17 08:37:00 +00:00
Simon Giesecke 3236acba9d Bug 1671369 - Change GetUsageForClient to return a UsageInfo. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D93777
2020-11-17 13:17:24 +00:00
Simon Giesecke 2282fb5a6a Bug 1626555 - Make `dom/quota` buildable outside of `unified-build` environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94011
2020-10-21 13:16:19 +00:00
Simon Giesecke f92973bd13 Bug 1663924 - Replace output parameters by return values on GetInfo* methods. r=dom-workers-and-storage-reviewers,ttung
This also changes all methods that use a pair of group/origin or a tuple of
suffix/group/origin input/output parameters to use a single GroupAndOrigin
resp. QuotaInfo struct input parameter or return value. Also, several types
having a pair or 3-tuple of such data members are changed to use these structs
instead.

Differential Revision: https://phabricator.services.mozilla.com/D91131
2020-10-20 11:46:31 +00:00
Simon Giesecke 121fb04625 Bug 1663924 - Use IDB_TRY in OpenDatabaseOp::LoadDatabaseInformation. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D92275
2020-10-15 13:19:30 +00:00
Simon Giesecke 8e6a721680 Bug 1663924 - Replace output parameter by return value for EnsureStorageAndOriginIsInitialized. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D92199
2020-10-14 15:46:24 +00:00
Tom Tung 75112e975a Bug 1661711 - Use Result<V, E> for GetDirectoryOrigin and use *_TRY_VAR for its callsites; r=sg,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89704
2020-09-10 12:37:37 +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
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
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
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
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
Jan Varga 00dceeab95 Bug 1624802 - Add a pref for overriding storage name; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D73142
2020-05-05 06:24:17 +00:00
Tom Tung f73f17be94 Bug 1619910 - P1 - Change MaybeUpgradeFrom* to UpgradeFrom*; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65523

--HG--
extra : moz-landing-system : lando
2020-03-11 12:51:26 +00:00
Jan Varga 45769a3be8 Bug 1606635 - Modify QuotaManager::OpenDirectory to return a pending lock; r=asuth,dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D64715

--HG--
extra : moz-landing-system : lando
2020-02-29 04:42:50 +00:00
Oana Pop Rus d001aab6bf Backed out changeset ad8efac474bf (bug 1606635) for build bustages multiple failures in Context.cpp on a CLOSED TREE 2020-02-29 06:17:22 +02:00
Jan Varga 39371e357b Bug 1606635 - Modify QuotaManager::OpenDirectory to return a pending lock; r=asuth,dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D64715

--HG--
extra : moz-landing-system : lando
2020-02-29 04:02:13 +00:00
Jan Varga 34927b46f0 Bug 1616003 - QM: Make it possible to verify initialization status from unit tests; r=ttung,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63052

--HG--
extra : moz-landing-system : lando
2020-02-22 07:57:28 +00:00
Simon Giesecke 861998c782 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/quota. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62557

--HG--
extra : moz-landing-system : lando
2020-02-12 10:25:22 +00:00
Jan Varga 37fc02fdf4 Bug 1608025 - Add tests for the removal of old indexedDB/ and storage/persistent/ directories; r=asuth
This patch also refactors relevant upgrade methods to do the removal directly.

Differential Revision: https://phabricator.services.mozilla.com/D59702

--HG--
extra : moz-landing-system : lando
2020-01-14 02:53:16 +00:00
Jan Varga 68e8c0c78c Bug 1608025 - Clean up the test for the upgrade from storage/persistent/ directory; r=asuth
An additional test is added for the complete upgrade from flat origin directories.

Differential Revision: https://phabricator.services.mozilla.com/D59701

--HG--
rename : dom/quota/test/unit/upgrades/persistentStorageDirectory_flatOriginDirectories_profile.zip => dom/quota/test/unit/upgrades/persistentStorageDirectory_originDirectories_profile.zip
rename : dom/quota/test/unit/upgrades/defaultStorageUpgrade_profile.zip => dom/quota/test/unit/upgrades/persistentStorageDirectory_profile.zip
rename : dom/quota/test/unit/upgrades/test_defaultStorageUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeFromPersistentStorageDirectory.js
rename : dom/quota/test/unit/upgrades/test_upgradeFromFlatOriginDirectories.js => dom/quota/test/unit/upgrades/test_upgradeFromPersistentStorageDirectory_upgradeOriginDirectories.js
extra : moz-landing-system : lando
2020-01-14 02:51:42 +00:00
Jan Varga 2159f2fcd8 Bug 1608025 - Clean up the test for the upgrade from indexedDB/ directory; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59700

--HG--
rename : dom/quota/test/unit/upgrades/storagePersistentUpgrade_profile.zip => dom/quota/test/unit/upgrades/indexedDBDirectory_profile.zip
rename : dom/quota/test/unit/upgrades/test_storagePersistentUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeFromIndexedDBDirectory.js
extra : moz-landing-system : lando
2020-01-14 02:50:08 +00:00
Jan Varga 143724b74b Bug 1592934 - Abstract first initialization attempt recording into a standalone class; r=ttung,dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D55653

--HG--
extra : moz-landing-system : lando
2019-12-11 08:22:47 +00:00
Jan Varga f6d7565873 Bug 1592934 - Change some bools to bitfields before adding new telemetry probes; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54902

--HG--
extra : moz-landing-system : lando
2019-12-09 18:47:56 +00:00
Tom Tung 77e83b90da Bug 1592934 - Add telemetry probes to track persistent origins and temporary origins initialization success rate; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D53392

--HG--
extra : moz-landing-system : lando
2019-12-11 08:20:46 +00:00
Jan Varga 6ba032116d Bug 1592934 - Refactor some storage initialization methods before adding new telemetry probes; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54307

--HG--
extra : moz-landing-system : lando
2019-11-25 15:04:43 +00:00
Tom Tung 05af29c010 Bug 1592934 - Add a telemetry probe to track storage initialization success rate; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D51845

--HG--
extra : moz-landing-system : lando
2019-11-20 10:34:34 +00:00
Tom Tung 6667804ee1 Bug 1592934 - Add a telemetry probe to track temporary storage initialization success rate; r=janv,janerik
Differential Revision: https://phabricator.services.mozilla.com/D51267

--HG--
extra : moz-landing-system : lando
2019-11-21 07:59:34 +00:00
Jan Varga 8ea2bacbc6 Bug 1591394 - QM: Add more getters to DirectoryLock; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D50610

--HG--
extra : moz-landing-system : lando
2019-10-26 08:50:43 +00:00
Tom Tung a973874d9b Bug 1576593 - P2 - Change the way for tunneling quota information to SQLite; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D48183

--HG--
extra : moz-landing-system : lando
2019-10-25 12:02:10 +00:00
Jan Varga 9dd55053d6 Bug 1587258 - QM: Add support for creating specialized directory locks from existing directory locks; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48657

--HG--
extra : moz-landing-system : lando
2019-10-10 14:55:53 +00:00
Jan Varga ae7651951f Bug 1584323 - Add more object properties to IndexedDBShutdownTimeout and LocalStorageShutdownTimeout crash annotations; r=asuth, dr=chutten
Differential Revision: https://phabricator.services.mozilla.com/D47341

--HG--
extra : moz-landing-system : lando
2019-10-02 04:28:23 +00:00
Jan Varga f4d108788b Bug 1563023 - Part 8: Ignore quota cache if the user loads the same profile in different builds; r=asuth
This patch adds support for quota cache invalidation if the profile is loaded in different builds.

Differential Revision: https://phabricator.services.mozilla.com/D39673

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:19 +00:00
Jan Varga 3e97ea2f34 Bug 1563023 - Part 7: Implement caching functionality; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D38817

--HG--
extra : moz-landing-system : lando
2019-08-25 01:34:37 +00:00
Jan Varga 76cfa3e3e3 Bug 1563023 - Part 6: Simplify iterations over all client types; r=asuth
This patch converts index based client type loops to iterator based client type
loops. This way the static cast is avoided and the loops are simpler and more
readable.

Differential Revision: https://phabricator.services.mozilla.com/D38629

--HG--
extra : moz-landing-system : lando
2019-08-23 04:48:36 +00:00
Jan Varga a650fac7b0 Bug 1563023 - Part 4: Get rid of custom usage tracking in LS by using client usage tracked by QM; r=asuth
This patch gets rid of gUsages in LSNG. This provides better consistency and
makes it easier to cache quota info on disk.
The patch also fixes some edge cases when usage was not adjusted correctly after
a failed file or database operation.

Differential Revision: https://phabricator.services.mozilla.com/D38229

--HG--
extra : moz-landing-system : lando
2019-08-23 04:46:14 +00:00
Jan Varga 9ab967ef1e Bug 1563023 - Part 2: Add support for getting origin usage from memory; r=asuth
This patch modifies getUsageForPrincipal to support getting origin usage from
memory. Support for getting group usage is factored out to a standalone method
called Estimate.
Operations based on NormalOriginOperationBase can now avoid directory locking
if they don't touch disk.

Differential Revision: https://phabricator.services.mozilla.com/D38087

--HG--
extra : moz-landing-system : lando
2019-08-22 20:51:09 +00:00
Jan Varga 9f906cd7c4 Bug 1563023 - Part 1: Implement per client usage tracking; r=asuth
This patch adds a fixed-size array of client usages to OriginInfo and modifies
quota tracking APIs to require the client type to be passed in.
A new method ResetUsageForClient is implemented. The method is used during
client-specific origin clearing. ResetUsageForClient is much faster than calling
GetUsageForOrigin and calling DecreaseUsageForOrigin after that.
LockedUsage now has an assertion that verifies that the total sum of client
usages matches total origin usage. This method should be called instead of
touching mUsage directly.
A new assertion is added to GetQuotaObject which verifies that passed file
belongs to the given persistence type, origin, and client.

Differential Revision: https://phabricator.services.mozilla.com/D38028

--HG--
extra : moz-landing-system : lando
2019-08-22 13:06:48 +00:00
Sylvestre Ledru d57d4905f1 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D30883

--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
arthur.iakab af8e458c5f Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE 2019-05-24 14:26:01 +03:00
Sylvestre Ledru c82ea97226 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D30883

--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Jan Varga eef773ad6c Bug 1549654 - LSNG: Compress specific values during migration; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D30181
2019-05-07 12:54:02 +02:00
Jan Varga e25844ad71 Bug 1548788 - LSNG: Datastore preparation doesn't have to create new origin directories if they don't exist; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D29822
2019-05-03 15:03:54 +02:00
Jan Varga ea67826b85 Bug 1547688 - LSNG: Preloading can use gUsages hash table to quickly finish if there's nothing to preload; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D29194
2019-04-29 14:23:55 +02:00