Closed Bug 1599470 Opened 5 years ago Closed 5 years ago

NullPrincipalURI::Init should not exist

Categories

(Core :: Security: CAPS, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: bzbarsky, Assigned: mccr8)

References

Details

Attachments

(2 files)

After bug 1346759 this function never fails, which means it should just move into the NullPrincipalURI constructor. That will make it much clearer at upstream callers which things can fail and which things can't. For example, it will make it clear that NullPrincipalURI::Create never returns null (and we could perhaps get rid of that method altogether, and use new NullPrincipalURI directly at the callsites).

Assignee: nobody → continuation
Blocks: 1599801
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8ee0f7ed68bb part 1 - Inline the infallible NullPrincipalURI::Init. r=bzbarsky https://hg.mozilla.org/integration/autoland/rev/05b73b0bbac2 part 2 - Inline the now-infallible NullPrincipalURI::Create(). r=bzbarsky
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: