diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-26 14:13:32 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-26 14:17:01 +0200 |
commit | bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd (patch) | |
tree | 7c5654a9ae682e00864e023cf52694505ee5dd4d /dom | |
parent | d1b93ee16bcfe882aba5af33e5693df4caae81b3 (diff) | |
download | UXP-bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd.tar UXP-bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd.tar.gz UXP-bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd.tar.lz UXP-bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd.tar.xz UXP-bf0b2ab2ed3a117cd2c561a47ca939d82e11fddd.zip |
Capture delayed events and cancel as necessary. (uplift)PM28.5.0_Release
Resolves #1052
Diffstat (limited to 'dom')
-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; } |