diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-18 19:09:05 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:18:54 +0200 |
commit | 0c9570d81efd16be2cc50daef5b404cd05221fda (patch) | |
tree | 8dcb57ea9af124b835bc087c57f8269a5a32df09 /dom/base/nsGlobalWindow.cpp | |
parent | d9d452c04e934f09a47d978317e08d2a502b4abd (diff) | |
download | UXP-0c9570d81efd16be2cc50daef5b404cd05221fda.tar UXP-0c9570d81efd16be2cc50daef5b404cd05221fda.tar.gz UXP-0c9570d81efd16be2cc50daef5b404cd05221fda.tar.lz UXP-0c9570d81efd16be2cc50daef5b404cd05221fda.tar.xz UXP-0c9570d81efd16be2cc50daef5b404cd05221fda.zip |
Revert "Capture delayed events and cancel as necessary."
Tag #1052 (backout).
Backed out for creating issues like #1191 and other issue-less problems
with e.g. losing the caret from text boxes. Of note: this was also
backed out from m-c for similar reasons in Bug 1332433.
This fixes #1191.
This reverts commit 3424afccaebc71c4acd4fa9eadf519c408c5965b.
Diffstat (limited to 'dom/base/nsGlobalWindow.cpp')
-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 7895ce613..afaa24f09 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -9334,7 +9334,7 @@ nsGlobalWindow::EnterModalState() topWin->mSuspendedDoc = topDoc; if (topDoc) { - topDoc->SuppressEventHandling(nsIDocument::eEvents); + topDoc->SuppressEventHandling(nsIDocument::eAnimationsOnly); } nsGlobalWindow* inner = topWin->GetCurrentInnerWindowInternal(); @@ -9371,7 +9371,7 @@ nsGlobalWindow::LeaveModalState() if (topWin->mSuspendedDoc) { nsCOMPtr<nsIDocument> currentDoc = topWin->GetExtantDoc(); - topWin->mSuspendedDoc->UnsuppressEventHandlingAndFireEvents(nsIDocument::eEvents, + topWin->mSuspendedDoc->UnsuppressEventHandlingAndFireEvents(nsIDocument::eAnimationsOnly, currentDoc == topWin->mSuspendedDoc); topWin->mSuspendedDoc = nullptr; } |