Open Bug 1142256 Opened 9 years ago Updated 2 years ago

Save permissions in the parent that were requested in the child

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86_64
Linux
defect

Tracking

()

People

(Reporter: billm, Unassigned)

Details

In bug 1085567 we're going to allow the content process to warp the mouse in order to implement pointer locking. However, we don't want to allow this if the user hasn't given permission.

Ideally, we would ask the permission manager. However, the permission manager only seems to save persistent permission grants. If you just click "Hide pointer" when the web page asks for pointer lock, nothing is saved in the permission manager as far as I can tell.

So I think we want these temporary permissions to be saved on the TabParent somehow. They would be flushed when navigating I guess. It looks like b2g already does something sorta like this:
http://mxr.mozilla.org/mozilla-central/source/dom/base/nsContentPermissionHelper.cpp#394

Does anybody have objects to this idea?
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.