summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLDialogElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/HTMLDialogElement.cpp')
-rw-r--r--dom/html/HTMLDialogElement.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/html/HTMLDialogElement.cpp b/dom/html/HTMLDialogElement.cpp
index 1f796f9a6..1f65b602f 100644
--- a/dom/html/HTMLDialogElement.cpp
+++ b/dom/html/HTMLDialogElement.cpp
@@ -30,6 +30,9 @@ HTMLDialogElement::Close(const mozilla::dom::Optional<nsAString>& aReturnValue)
ErrorResult ignored;
SetOpen(false, ignored);
ignored.SuppressException();
+ RefPtr<AsyncEventDispatcher> eventDispatcher =
+ new AsyncEventDispatcher(this, NS_LITERAL_STRING("close"), false);
+ eventDispatcher->PostDOMEvent();
}
void