Commit 77b7a4f0 authored by Rakina Zata Amni's avatar Rakina Zata Amni Committed by Commit Bot

Set FocusedFrame on RFH's associated WebContents in FindRequestManager

Currently we call on the RFH's associated WebContents' focused
WebContents instead.

Bug: 819919,876890
Change-Id: Ia97f60cb524322fe3f2566ffa8f6ba86eeddcf90
Reviewed-on: https://chromium-review.googlesource.com/1192665
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586742}
parent bd386b7f
......@@ -348,8 +348,8 @@ void FindRequestManager::SetActiveMatchOrdinal(RenderFrameHostImpl* rfh,
// match is in, which should be in the |rfh|'s associated WebContents.
WebContentsImpl* web_contents =
static_cast<WebContentsImpl*>(WebContents::FromRenderFrameHost(rfh));
web_contents->GetFocusedWebContents()->SetFocusedFrame(
rfh->frame_tree_node(), rfh->GetSiteInstance());
web_contents->SetFocusedFrame(rfh->frame_tree_node(),
rfh->GetSiteInstance());
}
if (rfh == active_frame_) {
active_match_ordinal_ +=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment