| Index: sky/engine/core/frame/LocalDOMWindow.cpp
|
| diff --git a/sky/engine/core/frame/LocalDOMWindow.cpp b/sky/engine/core/frame/LocalDOMWindow.cpp
|
| index 28f7afdd6992a0e86df7232c7fa3ffbf00724203..d765b0e7541368a05c2b183dbf63bafe0e41efa2 100644
|
| --- a/sky/engine/core/frame/LocalDOMWindow.cpp
|
| +++ b/sky/engine/core/frame/LocalDOMWindow.cpp
|
| @@ -73,7 +73,6 @@
|
| #include "sky/engine/core/page/ChromeClient.h"
|
| #include "sky/engine/core/page/EventHandler.h"
|
| #include "sky/engine/core/page/Page.h"
|
| -#include "sky/engine/core/page/WindowFocusAllowedIndicator.h"
|
| #include "sky/engine/core/rendering/style/RenderStyle.h"
|
| #include "sky/engine/platform/EventDispatchForbiddenScope.h"
|
| #include "sky/engine/platform/PlatformScreen.h"
|
| @@ -474,11 +473,7 @@ void LocalDOMWindow::focus(ExecutionContext* context)
|
| if (!host)
|
| return;
|
|
|
| - bool allowFocus = WindowFocusAllowedIndicator::windowFocusAllowed();
|
| -
|
| - // If we're a top level window, bring the window to the front.
|
| - if (allowFocus)
|
| - host->chrome().focus();
|
| + host->chrome().focus();
|
|
|
| if (!m_frame)
|
| return;
|
|
|