| Index: third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| index 00e598d1d7b89154f2e09c91cc696a495fcf4ee8..3131829d390a848d04077586548d4dbef3860bf5 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| @@ -55,7 +55,7 @@ static void setFocusForDialog(HTMLDialogElement* dialog)
|
| Element* element = toElement(node);
|
| if (element->isFormControlElement()) {
|
| HTMLFormControlElement* control = toHTMLFormControlElement(node);
|
| - if (control->isAutofocusable()) {
|
| + if (control->isAutofocusable() && control->isFocusable()) {
|
| control->focus();
|
| return;
|
| }
|
|
|