Get rid of QuotaManager::EnsureStorageAndOriginIsInitialized
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
(Blocks 2 open bugs)
Details
Attachments
(15 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
This method currently ensures that storage, temporary storage and the origin is initialized. However, for example LSNG needs more fine grained work flow and when there's no localStorage data for given origin it just makes sure storage and temporary storage is initialized. The origin is initialized later when we actually need to flush data to disk.
Also, by forcing quota clients to call individual methods, it will be slightly more visible when one of these methods fail and also what is actually happening/what needs to be initialized.
Assignee | ||
Comment 1•3 years ago
|
||
This is also needed for converting test_unknownFiles.js to the new declarative testing infrastructure.
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
All initialization related operations, the clear all operation and reset
operations now fail if storage is not initialized.
All other operations make sure storage is initialized by setting the
mNeedsStorageInit flag. DirectoryWork() for these operations now assert that
storage is initialized.
The aResetAll param has been removed from resetStoragesForPrincipal since
there's no use case for it right now (if there's a use case for it in future,
it should be handled by a separate method like clearOriginsByPrefix).
This patch also separates ResetOriginOp from ClearOriginOp for better
readibility of code.
Assignee | ||
Comment 4•3 years ago
|
||
EnsureStorageAndOriginIsInitialized has been replaced with:
EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized.
Both methods require initialized storage via EnsureStorageIsInitialized.
EnsureTemporaryOriginIsInitialized additionally requries initialized temporary
storage via EnsureTemporaryStorageIsInitialized.
Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Pushed by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50af9d58c645 Rationalize PersistenceTypeTo* and PersistenceTypeFrom* methods; r=dom-workers-and-storage-reviewers,sg
Comment 7•3 years ago
|
||
Backed out changeset 50af9d58c645 (Bug 1619592) for causing build bustages in /builds/worker/checkouts/gecko/dom/quota/PersistenceType.cpp CLOSED TREE
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=292638058&repo=autoland&lineNumber=9358
Backout by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/24cc377eedd8 Backed out changeset 50af9d58c645 for causing build bustages in /builds/worker/checkouts/gecko/dom/quota/PersistenceType.cpp CLOSED TREE
Pushed by rgurzau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6567a3000e96 Rationalize PersistenceTypeTo* and PersistenceTypeFrom* methods; r=dom-workers-and-storage-reviewers,sg
Comment 10•3 years ago
|
||
bugherder |
Assignee | ||
Comment 11•3 years ago
|
||
Assignee | ||
Comment 12•3 years ago
|
||
Assignee | ||
Comment 13•3 years ago
|
||
ResetOriginOp has been separated from ClearOriginOp for better readibility of
code.
Assignee | ||
Comment 14•3 years ago
|
||
The aResetAll param has been removed from resetStoragesForPrincipal since
there's no use case for it right now (if there's a use case for it in future, it
should be handled by a separate method like resetOriginsByPrefix).
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 15•3 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d749e4d81c35 Refactor persistence type checks using new IsValidPersistenceType method; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/c5b818f1397c Refactor client type checks using new Client::IsValidType method; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/c6f81e43e149 Separate ResetOriginOp from ClearOriginOp; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/31ada6206090 Remove aResetAll param from nsIQuotaManagerService::ResetStoragesForPrincipal; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/afa84f8037a5 Update selected operations to not implicitly initialize storage; r=dom-workers-and-storage-reviewers,sg
Comment 16•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 17•2 years ago
|
||
Assignee | ||
Comment 18•2 years ago
|
||
Depends on D97253
Assignee | ||
Comment 19•2 years ago
|
||
Depends on D97254
Assignee | ||
Comment 20•2 years ago
|
||
Depends on D97255
Assignee | ||
Comment 21•2 years ago
|
||
Depends on D97256
Assignee | ||
Comment 22•2 years ago
|
||
Depends on D97257
Assignee | ||
Comment 23•2 years ago
|
||
Depends on D97258
Assignee | ||
Comment 24•2 years ago
|
||
Depends on D97259
Updated•2 years ago
|
Comment 25•2 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c33d91bff7d Remove unused aClientType argument in EnsureStorageAndOriginIsInitialized; r=dom-workers-and-storage-reviewers,sg
Comment 26•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 27•2 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9e8572b4f56f Convert EnsureDirectory, EnsureOriginDirectory, EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized to use mozilla::Result and QM_TRY; r=dom-workers-and-storage-reviewers,sg
Updated•2 years ago
|
Comment 28•2 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8db250609526 Add initializePersistentOrigin and initializeTemporaryOrigin to nsIQuotaManagerService; r=dom-workers-and-storage-reviewers,sg
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 29•2 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4e713da4380 Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/quota; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/e16ce60b0942 Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/indexedDB; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/61d0d2245183 Replace EnsureStorageAndOriginIsInitialized with EnsureTemporaryOriginIsInitialized in dom/cache; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/056fd84bddfb Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/simpledb; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/a515433c3eb8 Replace EnsureStorageAndOriginIsInitialized with EnsureTemporaryOriginIsInitialized in dom/localstorage; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/01623709adc4 Remove unused EnsureStorageAndOriginIsInitialized method; r=dom-workers-and-storage-reviewers,sg
![]() |
||
Comment 30•2 years ago
|
||
bugherder |
Assignee | ||
Updated•2 years ago
|
Comment 31•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8db250609526
https://hg.mozilla.org/mozilla-central/rev/d4e713da4380
https://hg.mozilla.org/mozilla-central/rev/e16ce60b0942
https://hg.mozilla.org/mozilla-central/rev/61d0d2245183
https://hg.mozilla.org/mozilla-central/rev/056fd84bddfb
https://hg.mozilla.org/mozilla-central/rev/a515433c3eb8
https://hg.mozilla.org/mozilla-central/rev/01623709adc4
Description
•