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
Jan Varga
2ffbce35b7
Bug 1513937 - LSNG: Compress specific values; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D29140
2019-04-29 06:10:42 +02:00
Jan Varga
6360443a3b
Bug 1546310 - LSNG: Parent process should store values in UTF8; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D29139
2019-04-29 06:09:42 +02:00
Ryan VanderMeulen
4f044a29d2
Backed out 8 changesets (bug 1513937, bug 1546310, bug 1548788, bug 1547688, bug 1547452, bug 1540777, bug 1542669, bug 1547454) for causing bug 1549362.
...
Backed out changeset 8dca7df29492 (bug 1548788)
Backed out changeset 688f361e8bb6 (bug 1547688)
Backed out changeset b5d8d57838a3 (bug 1540777)
Backed out changeset d1bd31177b14 (bug 1513937)
Backed out changeset df97dfbb526a (bug 1546310)
Backed out changeset ade08d6dc361 (bug 1547454)
Backed out changeset b622431054b7 (bug 1547452)
Backed out changeset ad73e5604411 (bug 1542669)
2019-05-06 09:02:54 -04:00
Jan Varga
2820fe9cc8
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
0d5ae59a7b
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
Jan Varga
12fd20045f
Bug 1513937 - LSNG: Compress specific values; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D29140
2019-04-29 06:10:42 +02:00
Jan Varga
120ed0037a
Bug 1546310 - LSNG: Parent process should store values in UTF8; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D29139
2019-04-29 06:09:42 +02:00
Sylvestre Ledru
96da5036ad
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D28948
--HG--
extra : moz-landing-system : lando
2019-04-28 09:30:05 +00:00
Jan Varga
4d4622f55f
Bug 1546305 - LSNG: Add temporary support for downgrading; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D28800
2019-04-25 11:25:52 +02:00