Closed
Bug 1047631
Opened 10 years ago
Closed 8 years ago
Allow permissions to be read off the main thread
Categories
(Core :: Permission Manager, defect)
Core
Permission Manager
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: bent.mozilla, Assigned: Fill)
Details
Attachments
(1 file)
We'd like to be able to read permissions off the main thread using PrincipalInfo. This will require some locking for main-thread writes (which should be rare) and some locking for off-main-thread reads but our common case main-thread reads should be unaffected.
Assignee | ||
Comment 1•10 years ago
|
||
Awaiting review.
Attachment #8466496 -
Flags: review?(bent.mozilla)
Adding Jed who had to do some sad workarounds in the past involving proxying calls to the main thread in order to read from the nsIPermissionManager. Once this bug is fixed we should be able to simplify that a whole lot.
Comment 3•8 years ago
|
||
Seems we are no longer concerned with this.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
I would have thought that we need this in order to implement persistent storage. I would expect the quota manager to need to check if a given origin has been given persistent permission or not, and that this check needs to happen on a background thread. Of course, we can always proxy to the main thread and do the check there. But the goal of this bug is to not having to re-invent that wheel every time (and also save some perf)
Comment 5•8 years ago
|
||
For reference: if memory serves, comment #2 was about bug 976398, and that's B2G-specific. But it sounds like comment #0 might have had other things in mind.
Updated•8 years ago
|
Attachment #8466496 -
Flags: review?(bent.mozilla)
You need to log in
before you can comment on or make changes to this bug.
Description
•