summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLDialogElement.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-07 08:27:34 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-07 18:33:23 -0500
commitef2cd8749ff41c3d87a19b598d8d3be1430b75bf (patch)
tree3fda50cfd9bebaa0d02d8257a2eee18c8b636e2b /dom/html/HTMLDialogElement.cpp
parent2e3b937f4ee13e70584c881e0c65200e439ff7fa (diff)
downloadUXP-ef2cd8749ff41c3d87a19b598d8d3be1430b75bf.tar
UXP-ef2cd8749ff41c3d87a19b598d8d3be1430b75bf.tar.gz
UXP-ef2cd8749ff41c3d87a19b598d8d3be1430b75bf.tar.lz
UXP-ef2cd8749ff41c3d87a19b598d8d3be1430b75bf.tar.xz
UXP-ef2cd8749ff41c3d87a19b598d8d3be1430b75bf.zip
Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called.
Tag #1343
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