зеркало из https://github.com/mozilla/gecko-dev.git
Backed out bug 400774 to see if it is the cause of the Window unit test oranges.
This commit is contained in:
Родитель
643e748fc6
Коммит
fce0f259e9
|
@ -631,23 +631,19 @@ nsXULElement::PerformAccesskey(PRBool aKeyCausesActivation,
|
|||
return;
|
||||
|
||||
nsCOMPtr<nsIDOMXULElement> elm(do_QueryInterface(content));
|
||||
if (elm) {
|
||||
// Define behavior for each type of XUL element.
|
||||
nsIAtom *tag = content->Tag();
|
||||
if (tag == nsGkAtoms::textbox || tag == nsGkAtoms::menulist) {
|
||||
// if it's a text box or menulist, give it focus
|
||||
elm->Focus();
|
||||
} else if (tag == nsGkAtoms::toolbarbutton) {
|
||||
// if it's a toolbar button, just click
|
||||
elm->Click();
|
||||
} else {
|
||||
// otherwise, focus and click in it
|
||||
elm->Focus();
|
||||
elm->Click();
|
||||
}
|
||||
}
|
||||
else {
|
||||
content->PerformAccesskey(aKeyCausesActivation, aIsTrustedEvent);
|
||||
|
||||
// Define behavior for each type of XUL element.
|
||||
nsIAtom *tag = content->Tag();
|
||||
if (tag == nsGkAtoms::textbox || tag == nsGkAtoms::menulist) {
|
||||
// if it's a text box or menulist, give it focus
|
||||
elm->Focus();
|
||||
} else if (tag == nsGkAtoms::toolbarbutton) {
|
||||
// if it's a toolbar button, just click
|
||||
elm->Click();
|
||||
} else {
|
||||
// otherwise, focus and click in it
|
||||
elm->Focus();
|
||||
elm->Click();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче