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

Unified Diff: Source/core/page/FocusController.cpp

Issue 809523003: Send NPAPI focus messages when web contents is blurred or focused (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setFocus call update Created 5 years, 11 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
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FocusController.cpp
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp
index 1ad152026e279c609d3e2f61aac17df38c5d07cf..7dc7ff98451e93df088d3e280497a582742ff86b 100644
--- a/Source/core/page/FocusController.cpp
+++ b/Source/core/page/FocusController.cpp
@@ -153,6 +153,9 @@ static inline void dispatchEventsOnWindowAndFocusedNode(Document* document, bool
// If we have a focused node we should dispatch focus on it after we focus the window.
// https://bugs.webkit.org/show_bug.cgi?id=27105
+ if (document->focusedElement() && isHTMLPlugInElement(document->focusedElement()))
+ toHTMLPlugInElement(document->focusedElement())->setPluginFocus(focused);
+
// Do not fire events while modal dialogs are up. See https://bugs.webkit.org/show_bug.cgi?id=33962
if (Page* page = document->page()) {
if (page->defersLoading())
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698