DescriptionPreserve page-level focus for subframe cross-process navigations.
Currently, CommitPending contains logic to remember if the old RFH's
RWHV was focused, and if so, focus the new frame's RWHV. In the case
of subframes, however, this logic doesn't work, as
RWHVChildFrame::HasFocus always returned false. This CL adds the
logic to properly retrieve page focus for subframes and propagate it
to the subframe's renderer, building on logic introduced in my earlier
page-level focus CL (https://codereview.chromium.org/1394383002).
BUG=530663, 339659
Committed: https://crrev.com/0d7e0b09bb13053bf480cc22a1cbfff1b47e8fee
Cr-Commit-Position: refs/heads/master@{#356961}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 7
Patch Set 4 : Address Charlie's comments #
Total comments: 2
Patch Set 5 : Add comment #
Dependent Patchsets: Messages
Total messages: 19 (5 generated)
|