Closed Bug 1486297 Opened 6 years ago Closed 6 years ago

Option to disable Pointer Lock API

Categories

(Core :: DOM: Events, defect, P3)

61 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: edgaras.janusauskas, Assigned: xidorn)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180807170231

Steps to reproduce:

1. Open web app with Pointer Lock API
2. Mouse is captured by API


Actual results:

If user has no access to keyboard (ex. user has physical disability and uses only mouse), there are no way to exit mouse locked app without Esc key.

One way is to push power button to shutdown computer.

Disabled user can only call assistant to click Esc on keyboard.


Expected results:

Firefox could have config option to completely disable API, or option to ask for permission.

Also it could be some method to exit with mouse only, for example hold left and right button for 5 seconds.
Xidorn, what do you think we should do here? Have a pref? I don't think keyboard-less setups are something we'd consider tier 1.
Flags: needinfo?(xidorn+moz)
Priority: -- → P3
Yeah, we can probably put it behind a pref. It should be trivial to add such support.
Assignee: nobody → xidorn+moz
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(xidorn+moz)
Comment on attachment 9005105 [details]
Bug 1486297 - Add a pref for Pointer Lock API so that user can disable it. r=smaug!

Olli Pettay [:smaug] has approved the revision.
Attachment #9005105 - Flags: review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/86ec37344b44
Add a pref for Pointer Lock API so that user can disable it. r=smaug!
https://hg.mozilla.org/mozilla-central/rev/86ec37344b44
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: