mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-27 11:20:57 +00:00
Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called.
Tag #1343
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user