mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 133304. Caret disappearing when tabbing to mail compose edit window. r=bryner, sr=hewitt, a=asa.
This commit is contained in:
parent
a8f99cc832
commit
3026fad7a6
@ -4565,7 +4565,7 @@ nsEventStateManager::ResetBrowseWithCaret(PRBool *aBrowseWithCaret)
|
||||
// This is called when browse with caret changes on the fly
|
||||
// or when a document gets focused
|
||||
|
||||
mBrowseWithCaret = *aBrowseWithCaret = PR_FALSE;
|
||||
*aBrowseWithCaret = PR_FALSE;
|
||||
|
||||
nsCOMPtr<nsISupports> pcContainer;
|
||||
mPresContext->GetContainer(getter_AddRefs(pcContainer));
|
||||
@ -4580,6 +4580,10 @@ nsEventStateManager::ResetBrowseWithCaret(PRBool *aBrowseWithCaret)
|
||||
return NS_OK; // Never browse with caret in chrome
|
||||
|
||||
mPrefService->GetBoolPref("accessibility.browsewithcaret", aBrowseWithCaret);
|
||||
|
||||
if (mBrowseWithCaret == *aBrowseWithCaret)
|
||||
return NS_OK; // already set this way, don't change caret at all
|
||||
|
||||
mBrowseWithCaret = *aBrowseWithCaret;
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
|
Loading…
Reference in New Issue
Block a user