Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: content/browser/frame_host/frame_tree.cc

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/frame_tree.cc
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc
index cddea8333fd214ee43851fa0ee1f71b77b8d8bae..82721946c82c974117b2a79b91b0830172eca127 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -276,7 +276,7 @@ void FrameTree::SetFocusedFrame(FrameTreeNode* node) {
oldFocusedFrame->current_frame_host()->GetSiteInstance() !=
node->current_frame_host()->GetSiteInstance()) {
DCHECK(SiteIsolationPolicy::AreCrossProcessFramesPossible());
- oldFocusedFrame->current_frame_host()->ClearFocus();
+ oldFocusedFrame->current_frame_host()->ClearFocus(node);
}
node->set_last_focus_time(base::TimeTicks::Now());

Powered by Google App Engine
This is Rietveld 408576698