Attach the LayersId of the process-top-level layer that has focus to keyboard events
Categories
(Core :: Panning and Zooming, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: hsivonen, Assigned: hsivonen)
References
Details
(Whiteboard: [fission-event-m1])
Attachments
(1 file)
In APZCTreeManager::ReceiveInputEvent attach the LayersId from bug 1524236 to the keyboard event using the field from bug 1524226.
Comment 1•6 years ago
|
||
So one question is whether we actually need to store this information in the input event itself. Right now the results of the APZ hit test are returned to the caller via the ScrollableLayerGuid
out-param in ReceiveInputEvent
code and the guid contains the LayersId
. We also have this InputAPZContext
mechanism that we use in a bunch of places (e.g. here) to stash the APZ hit-test result on the stack and then access it like so. In this example it's used to propagate it from TabParent to TabChild, but we could just as easily use it in the DispatchCrossProcessEvent code to figure out which content process to send it to.
Comment 2•6 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
So one question is whether we actually need to store this information in the input event itself. Right now the results of the APZ hit test are returned to the caller via the
ScrollableLayerGuid
out-param inReceiveInputEvent
code and the guid contains theLayersId
.
That might not be the right LayersId
, though.
Consider a mouse event over a non-scrollable OOP iframe inside a scrollable parent frame. The guid computed for APZ purposes will reference the nearest enclosing scrollable layer, which in this case is the parent, but presumably we want to dispatch the event to the process of the OOP iframe.
Comment 3•6 years ago
|
||
Oh, this bug is about keyboard events.
I think my point is still valid, but should have been made in bug 1524226 instead :)
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
bugherder |
Description
•