Closed
Bug 1685279
Opened 3 years ago
Closed 3 years ago
Change QuotaManager::ParseOrigin to return a Result<PrincipalInfo, nsresult>
Categories
(Core :: Storage: Quota Manager, task)
Core
Storage: Quota Manager
Tracking
()
RESOLVED
FIXED
86 Branch
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•3 years ago
|
||
ParseOrigin is only used to construct a PrincipalInfo, so it makes sense to
return it directly.
This also fixes an inconsistency: While the callers always created a
ContentPrincipalInfo without checking the result, ParseOrigin was also able to
handle a chrome origin, which should have been turned into a SystemPrincipal.
Since this doesn't seem to be used, we now explicitly fail for a chrome origin.
Depends on D100888
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9cc8da62b1a7 Change QuotaManager::ParseOrigin to return a Result<PrincipalInfo, nsresult>. r=dom-workers-and-storage-reviewers,janv
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox86:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•