QM: Eliminate the need to do conversion from PrincipalMetadata to PrincipalInfo
Categories
(Core :: Storage: Quota Manager, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
(Blocks 2 open bugs)
Details
Attachments
(8 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
In theory, PrincipalMetadataToPrincipalInfo may occasionally return a different PrincipalInfo than the one originally used to create PrincipalMetadata. While we could add some diagnostic assertions to help identify and eventually address any inconsistencies, it would be safer to avoid this conversion entirely.
PrincipalMetadataToPrincipalInfo
is currently called in QuotaManager::OpenClientDirectory
:
https://searchfox.org/mozilla-central/rev/81ac0fe96e1bd6020408c2ae7eae6e5b5114d1db/dom/quota/ActorsParent.cpp#5383
If PrincipalMetadata
data is not consistent with PrincipalInfo
data (especially the origin string), then the tracking of initialized origins on PBackground thread and QM I/O thread will not be consistent as well.
Assignee | ||
Updated•24 days ago
|
Assignee | ||
Comment 1•19 days ago
|
||
Assignee | ||
Comment 2•19 days ago
|
||
This is not strictly required to get rid of PrincipalMetadataToPrincipalInfo,
but it's better for consistency and readability.
Assignee | ||
Comment 3•19 days ago
|
||
The persistence type should be PERSISTENCE_TYPE_PERSISTENT.
This is a preparation patch for next patches which change many methods to take
OriginMetadata instead of PersistenceType and PrincipalInfo.
Updated•19 days ago
|
Assignee | ||
Comment 4•19 days ago
|
||
Assignee | ||
Comment 5•19 days ago
|
||
Assignee | ||
Comment 6•19 days ago
|
||
Assignee | ||
Comment 7•19 days ago
|
||
This is not strictly required to get rid of PrincipalMetadataToPrincipalInfo,
but it's better for consistency and readability.
Assignee | ||
Comment 8•19 days ago
|
||
Assignee | ||
Updated•18 days ago
|
Comment 10•2 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fbd1c6ba8b63
https://hg.mozilla.org/mozilla-central/rev/bb7b05353b62
https://hg.mozilla.org/mozilla-central/rev/1156ce469927
https://hg.mozilla.org/mozilla-central/rev/233c750b54af
https://hg.mozilla.org/mozilla-central/rev/a3f1433213fe
https://hg.mozilla.org/mozilla-central/rev/14394c582d84
https://hg.mozilla.org/mozilla-central/rev/1713e621c7e8
https://hg.mozilla.org/mozilla-central/rev/8900a352dd36
Description
•