mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 77c1f23afc1c (bug 933483) for mochitest-bc failures.
This commit is contained in:
parent
c489b1733e
commit
fd1c979402
@ -8490,10 +8490,7 @@ FireOrClearDelayedEvents(nsTArray<nsCOMPtr<nsIDocument> >& aDocuments,
|
||||
return;
|
||||
|
||||
for (uint32_t i = 0; i < aDocuments.Length(); ++i) {
|
||||
// NB: Don't bother trying to fire delayed events on documents that were
|
||||
// closed before this event ran.
|
||||
if (!aDocuments[i]->EventHandlingSuppressed() &&
|
||||
aDocuments[i]->IsActive()) {
|
||||
if (!aDocuments[i]->EventHandlingSuppressed()) {
|
||||
fm->FireDelayedEvents(aDocuments[i]);
|
||||
nsCOMPtr<nsIPresShell> shell = aDocuments[i]->GetShell();
|
||||
if (shell) {
|
||||
|
@ -8185,8 +8185,10 @@ nsGlobalWindow::EnterModalState()
|
||||
NS_ASSERTION(!mSuspendedDoc, "Shouldn't have mSuspendedDoc here!");
|
||||
|
||||
mSuspendedDoc = topWin->GetExtantDoc();
|
||||
if (mSuspendedDoc) {
|
||||
if (mSuspendedDoc && mSuspendedDoc->EventHandlingSuppressed()) {
|
||||
mSuspendedDoc->SuppressEventHandling();
|
||||
} else {
|
||||
mSuspendedDoc = nullptr;
|
||||
}
|
||||
}
|
||||
topWin->mModalStateDepth++;
|
||||
@ -8200,8 +8202,7 @@ nsGlobalWindow::RunPendingTimeoutsRecursive(nsGlobalWindow *aTopWindow,
|
||||
nsGlobalWindow *inner;
|
||||
|
||||
// Return early if we're frozen or have no inner window.
|
||||
if (aWindow->IsClosedOrClosing() ||
|
||||
!(inner = aWindow->GetCurrentInnerWindowInternal()) ||
|
||||
if (!(inner = aWindow->GetCurrentInnerWindowInternal()) ||
|
||||
inner->IsFrozen()) {
|
||||
return;
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=61098
|
||||
<script class="testbody" type="text/javascript">
|
||||
/** Test for Bug 61098 **/
|
||||
|
||||
SimpleTest.expectAssertions(8);
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var mockPromptServiceRegisterer, mockPromptFactoryRegisterer;
|
||||
|
Loading…
Reference in New Issue
Block a user