mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called.
Tag #1343
This commit is contained in:
parent
900df90dae
commit
c39b0e4fd7
5 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#ifndef HTMLDialogElement_h
|
||||
#define HTMLDialogElement_h
|
||||
|
||||
#include "mozilla/AsyncEventDispatcher.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "nsGenericHTMLElement.h"
|
||||
#include "nsGkAtoms.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue