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)

task

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.

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

Blocks: 1686733
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
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: