Backed out changeset 77c1f23afc1c (bug 933483) for mochitest-bc failures.

This commit is contained in:
Ryan VanderMeulen 2013-12-02 20:31:18 -05:00
parent c489b1733e
commit fd1c979402
3 changed files with 6 additions and 7 deletions

View File

@ -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) {

View File

@ -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;
}

View File

@ -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;