Closed Bug 1585331 Opened 2 months ago Closed Last month

Add an api to nsIPrincipal for fetching the Flags of an associated aboutModule

Categories

(Core :: DOM: Security, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: sstreich, Assigned: sstreich)

References

(Depends on 1 open bug)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

Currently we have a few places with boilerplate code that uses Principal-GetURI to find the responsible nsIAboutModule, just to get its Flags and check if certain things are allowed.
As we don't want the Principal to leak its Uri, we could just expose the Flags directly if there is an about module associated to the principal's Uri.

Assignee: nobody → sstreich
Summary: Add to nsIPrincipal an api to query the Flags of an associated aboutModule → Add an api to nsIPrincipal for fetching the Flags of an associated aboutModule
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:sstreich, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(sstreich)
Flags: needinfo?(sstreich)
Keywords: checkin-needed

Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a67d60ec29d
Add nsIPrincipal::GetAboutModuleFlags r=ckerschb

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.