| Index: Source/core/html/HTMLDialogElement.cpp
|
| diff --git a/Source/core/html/HTMLDialogElement.cpp b/Source/core/html/HTMLDialogElement.cpp
|
| index 2f030139411dd3b6fb48cb517c528000aa24a567..b5a7d657a6cf2fe5efa3cd3b6aad86fe38f3eee5 100644
|
| --- a/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/Source/core/html/HTMLDialogElement.cpp
|
| @@ -60,7 +60,7 @@ PassRefPtr<HTMLDialogElement> HTMLDialogElement::create(const QualifiedName& tag
|
| void HTMLDialogElement::close(const String& returnValue, ExceptionState& es)
|
| {
|
| if (!fastHasAttribute(openAttr)) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| closeDialog(returnValue);
|
| @@ -123,7 +123,7 @@ void HTMLDialogElement::show()
|
| void HTMLDialogElement::showModal(ExceptionState& es)
|
| {
|
| if (fastHasAttribute(openAttr) || !inDocument()) {
|
| - es.throwDOMException(InvalidStateError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| document().addToTopLayer(this);
|
|
|