summaryrefslogtreecommitdiffstats
path: root/xpfe/appshell/nsWebShellWindow.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-01-09 13:07:56 +0000
committerGitHub <noreply@github.com>2020-01-09 13:07:56 +0000
commit29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2 (patch)
tree3542eb0e53d20ba44a96a0b6a801d8a77ea8fb8f /xpfe/appshell/nsWebShellWindow.cpp
parentd79cc5fb49131cba4ed1aa86bb13de468a718565 (diff)
parent52bda2a828364a9a2b3847a005587fa0ea952b30 (diff)
downloadUXP-29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2.tar
UXP-29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2.tar.gz
UXP-29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2.tar.lz
UXP-29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2.tar.xz
UXP-29bf28ca34cb3061d2a6c38f60b01f2d7ca1e1e2.zip
Merge pull request #1347 from g4jc/html5_dialog
Implement HMTL5 <dialog>
Diffstat (limited to 'xpfe/appshell/nsWebShellWindow.cpp')
-rw-r--r--xpfe/appshell/nsWebShellWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpfe/appshell/nsWebShellWindow.cpp b/xpfe/appshell/nsWebShellWindow.cpp
index 288d94759..f703be728 100644
--- a/xpfe/appshell/nsWebShellWindow.cpp
+++ b/xpfe/appshell/nsWebShellWindow.cpp
@@ -323,7 +323,7 @@ nsWebShellWindow::RequestWindowClose(nsIWidget* aWidget)
RefPtr<nsPresContext> presContext = presShell->GetPresContext();
nsEventStatus status = nsEventStatus_eIgnore;
- WidgetMouseEvent event(true, eWindowClose, nullptr,
+ WidgetMouseEvent event(true, eClose, nullptr,
WidgetMouseEvent::eReal);
if (NS_SUCCEEDED(eventTarget->DispatchDOMEvent(&event, nullptr, presContext, &status)) &&
status == nsEventStatus_eConsumeNoDefault)
@@ -759,7 +759,7 @@ bool nsWebShellWindow::ExecuteCloseHandler()
contentViewer->GetPresContext(getter_AddRefs(presContext));
nsEventStatus status = nsEventStatus_eIgnore;
- WidgetMouseEvent event(true, eWindowClose, nullptr,
+ WidgetMouseEvent event(true, eClose, nullptr,
WidgetMouseEvent::eReal);
nsresult rv =