зеркало из https://github.com/mozilla/pjs.git
Bug 519478 - UMR in nsAutoCompleteController::ClosePopup. r=gavin.sharp
This commit is contained in:
Родитель
915233cdd8
Коммит
aaabd4e525
|
@ -328,7 +328,7 @@ nsAutoCompleteController::HandleStartComposition()
|
|||
// Stop all searches in case they are async.
|
||||
StopSearch();
|
||||
|
||||
PRBool isOpen;
|
||||
PRBool isOpen = PR_FALSE;
|
||||
input->GetPopupOpen(&isOpen);
|
||||
if (isOpen)
|
||||
ClosePopup();
|
||||
|
@ -404,7 +404,7 @@ nsAutoCompleteController::HandleKeyNavigation(PRUint32 aKey, PRBool *_retval)
|
|||
// the cursor to home/end on some systems
|
||||
*_retval = PR_TRUE;
|
||||
|
||||
PRBool isOpen;
|
||||
PRBool isOpen = PR_FALSE;
|
||||
input->GetPopupOpen(&isOpen);
|
||||
if (isOpen) {
|
||||
PRBool reverse = aKey == nsIDOMKeyEvent::DOM_VK_UP ||
|
||||
|
@ -478,7 +478,7 @@ nsAutoCompleteController::HandleKeyNavigation(PRUint32 aKey, PRBool *_retval)
|
|||
)
|
||||
{
|
||||
// The user hit a text-navigation key.
|
||||
PRBool isOpen;
|
||||
PRBool isOpen = PR_FALSE;
|
||||
input->GetPopupOpen(&isOpen);
|
||||
if (isOpen) {
|
||||
PRInt32 selectedIndex;
|
||||
|
@ -949,7 +949,7 @@ nsAutoCompleteController::ClosePopup()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
PRBool isOpen;
|
||||
PRBool isOpen = PR_FALSE;
|
||||
mInput->GetPopupOpen(&isOpen);
|
||||
if (!isOpen)
|
||||
return NS_OK;
|
||||
|
|
|
@ -199,6 +199,8 @@ nsFormFillController::GetPopupOpen(PRBool *aPopupOpen)
|
|||
{
|
||||
if (mFocusedPopup)
|
||||
mFocusedPopup->GetPopupOpen(aPopupOpen);
|
||||
else
|
||||
*aPopupOpen = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче