Prevent content process from taking focus except when responding to click/tap
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P3)
Tracking
()
Fission Milestone | Future |
People
(Reporter: hsivonen, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fission-event-backlog] )
Post-MVP for event delivery to out-of-process iframes, we should investigate if its feasible / Web-compatible to restrict focus-grabbing by content processes so that a content process may receive focus only by another process handing it off (traversal by tabbing or a page focusing its child frame by JS) or by responding to a click/tap targeted to content hosted by the process that wishes to grab focus.
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Likely implementation in TabParent
:
- In
SendFooEvent
and inNavigateByKey
, set a timestamp onTabParent
. - In
RecvRequestFocus
, if the timestamp is too old, don't honor the request.
Comment 2•5 years ago
|
||
Take focus requests from accessibility need to be allowed as well. Screen readers often set focus in response to user actions (e.g. the user moving the screen reader's review cursor or choosing to interact with a control). This is done via accessibility APIs, not click/tap. Note that on Windows, these requests originate from within the content process, since a11y clients talk directly to the accessibility tree in the content process. That said, we might be able to change this to do some async messaging with the parent process.
Comment 3•5 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #0)
Post-MVP for event delivery to out-of-process iframes
Post-MVP means Fission Milestone "Future"
Updated•2 years ago
|
Description
•