Chromium Code Reviews| Index: third_party/WebKit/Source/core/page/FocusController.cpp |
| diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp |
| index c7d11a226f30bdcff86214c2462d43f70a5ee4cc..637feb60f85e10e6ef1ef4b8a05bd1a7e77f4431 100644 |
| --- a/third_party/WebKit/Source/core/page/FocusController.cpp |
| +++ b/third_party/WebKit/Source/core/page/FocusController.cpp |
| @@ -772,7 +772,8 @@ void FocusController::focusDocumentView(Frame* frame, bool notifyEmbedder) |
| dispatchFocusEvent(*document, *focusedElement); |
| } |
| - setFocusedFrame(frame, notifyEmbedder); |
| + if (newFocusedFrame && newFocusedFrame->selection().isAvailable()) |
| + setFocusedFrame(frame, notifyEmbedder); |
|
yosin_UTC9
2016/07/19 01:44:46
I think we should check |LocalFrame::selection().i
kochi
2016/07/20 08:05:27
The original test case fails after dispatching eve
|
| } |
| LocalFrame* FocusController::focusedFrame() const |