| 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 3131829d390a848d04077586548d4dbef3860bf5..923c4046074156af8a451f0de9e8cfaa757ede66 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| @@ -152,7 +152,7 @@ void HTMLDialogElement::showModal(ExceptionState& exceptionState)
|
| exceptionState.throwDOMException(InvalidStateError, "The element already has an 'open' attribute, and therefore cannot be opened modally.");
|
| return;
|
| }
|
| - if (!inShadowIncludingDocument()) {
|
| + if (!isConnected()) {
|
| exceptionState.throwDOMException(InvalidStateError, "The element is not in a Document.");
|
| return;
|
| }
|
|
|