DescriptionOOPIF: Route keyboard events to focused frame in the browser process.
Previously, keyboard events were always routed to the top frame's
RenderWidgetHost. With OOPIF, the top frame then forwarded the event
to an appropriate subframe renderer if needed. The extra hop is
inefficient and leaks information; moreover, the forwarding broke when
mouse event hit-testing in the browser process was introduced.
This CL adds logic to send keyboard events directly to the right
RenderWidgetHost in the browser process, using the currently focused
frame which is already tracked in each FrameTree. This should be
supported for Aura, Mac, and Android.
BUG=530663, 339659
Committed: https://crrev.com/e2a1799925ea027bd71ea9367280ddfb4403987a
Cr-Commit-Position: refs/heads/master@{#357011}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Rebase + test #Patch Set 4 : Fix compile #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : Rebase #Patch Set 8 : #Patch Set 9 : Cleanup #
Total comments: 12
Patch Set 10 : Address Ken's comments #
Total comments: 5
Patch Set 11 : Add edit stack bug reference. #Depends on Patchset: Messages
Total messages: 21 (7 generated)
|