Bug 302193. Tabbing gets stuck for print preview when webpage focuses an element in onload, or if user clicks in textfield with mouse. r=mats, sr=neil, a=bsmedberg
This commit is contained in:
Родитель
d1f2d73a22
Коммит
234820548e
|
@ -4289,6 +4289,12 @@ nsEventStateManager::GetFocusedContent(nsIContent** aContent)
|
|||
NS_IMETHODIMP
|
||||
nsEventStateManager::SetFocusedContent(nsIContent* aContent)
|
||||
{
|
||||
|
||||
if (aContent &&
|
||||
(!mPresContext || mPresContext->Type() == nsPresContext::eContext_PrintPreview)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mCurrentFocus = aContent;
|
||||
if (mCurrentFocus)
|
||||
mLastFocus = mCurrentFocus;
|
||||
|
|
Загрузка…
Ссылка в новой задаче