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
git-svn-id: svn://10.0.0.236/trunk@176969 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fe5beb1a03
commit
cfdb4f0d7f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user