summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
commit3424afccaebc71c4acd4fa9eadf519c408c5965b (patch)
treeb9c79b7f13f0fac5ad645c07e77892596cfb122a /dom
parentace7f20fa76c0a1594ab80d3a07fda92a7edea67 (diff)
downloadUXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.gz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.lz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.xz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.zip
Capture delayed events and cancel as necessary.
Tag #1052
Diffstat (limited to 'dom')
-rw-r--r--dom/base/nsGlobalWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index ac85e34c0..f9126f4da 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -9335,7 +9335,7 @@ nsGlobalWindow::EnterModalState()
topWin->mSuspendedDoc = topDoc;
if (topDoc) {
- topDoc->SuppressEventHandling(nsIDocument::eAnimationsOnly);
+ topDoc->SuppressEventHandling(nsIDocument::eEvents);
}
nsGlobalWindow* inner = topWin->GetCurrentInnerWindowInternal();
@@ -9372,7 +9372,7 @@ nsGlobalWindow::LeaveModalState()
if (topWin->mSuspendedDoc) {
nsCOMPtr<nsIDocument> currentDoc = topWin->GetExtantDoc();
- topWin->mSuspendedDoc->UnsuppressEventHandlingAndFireEvents(nsIDocument::eAnimationsOnly,
+ topWin->mSuspendedDoc->UnsuppressEventHandlingAndFireEvents(nsIDocument::eEvents,
currentDoc == topWin->mSuspendedDoc);
topWin->mSuspendedDoc = nullptr;
}