diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-26 14:13:32 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-26 14:13:32 +0200 |
commit | bf564a3ee7887ef88a1699577ade4bafcf6ca42a (patch) | |
tree | b9c79b7f13f0fac5ad645c07e77892596cfb122a /dom/base | |
parent | 5765b74ab76c091abd94af13e6a9de6b992d7178 (diff) | |
download | aura-central-bf564a3ee7887ef88a1699577ade4bafcf6ca42a.tar.gz |
Capture delayed events and cancel as necessary.
Tag mcp-graveyard/UXP%1052
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/nsGlobalWindow.cpp | 4 |
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; } |