| 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())
|
|
|