bug 247323: kbd stops working after visiting oddpost, anything with <iframe src=javascript:1>. r=dbaron, sr=bryner

git-svn-id: svn://10.0.0.236/trunk@162879 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net 2004-09-28 18:41:15 +00:00
parent d45fca0e31
commit df1a357353
2 changed files with 14 additions and 2 deletions

View File

@ -4679,8 +4679,14 @@ PresShell::UnsuppressAndInvalidate()
cv->Show();
// Calling |Show| may destroy us. Not sure why yet, but it's
// a smoketest blocker.
if (mIsDestroying)
if (mIsDestroying) {
if (focusController) {
// Unsuppress focus now that we're exiting this code,
// otherwise we're stuck in focus suppression, which hoses most of Mozilla
focusController->SetSuppressFocus(PR_FALSE, "PresShell suppression on Web page loads");
}
return;
}
}
}
}

View File

@ -4679,8 +4679,14 @@ PresShell::UnsuppressAndInvalidate()
cv->Show();
// Calling |Show| may destroy us. Not sure why yet, but it's
// a smoketest blocker.
if (mIsDestroying)
if (mIsDestroying) {
if (focusController) {
// Unsuppress focus now that we're exiting this code,
// otherwise we're stuck in focus suppression, which hoses most of Mozilla
focusController->SetSuppressFocus(PR_FALSE, "PresShell suppression on Web page loads");
}
return;
}
}
}
}