Add QuotaManager::Initialize(Persistent|Temporary)Origin methods
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(3 files)
Assignee | ||
Comment 1•7 months ago
|
||
EnsureTemporaryOriginIsInitialized currently takes two separate arguments which
can be expressed as just one argument.
Assignee | ||
Comment 2•7 months ago
|
||
One of the goals of the asynchronous temporary storage initialization is to
call Ensure(Persistent|Temporary)OriginIsInitialized only from
Initialize(Persistent|Temporary)OriginOp. Calling from other places including
quota clients will be disallowed by changing the method to a private method.
The private nature of the method should be emphasized by adding the Internal
suffix.
Assignee | ||
Comment 3•7 months ago
|
||
There are currently EnsurePersistentOriginIsInitializedInternal and
EnsureTemporaryOriginIsInitializedInternal methods which can only be
called on the QuotaManager IO thread. These methods shouldn't be exposed to
quota clients and origin operations. There should be public methods callable
from the PBackground thread returning a MozPromise instead. Such methods will
guarantee that proper directory locking is acquired before persistent origin
initialization or temporary origin initialization is started.
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Updated•6 months ago
|
Comment 7•6 months ago
|
||
bugherder |
Description
•