Backed out changeset cb88e52676eb (bug 1267488) for causing bc failures on browser_quicksuggest_onboardingDialog.js. CLOSED TREE

This commit is contained in:
pstanciu
2024-03-07 10:52:55 +02:00
parent 5f7e0d941b
commit c54b13cea6
7 changed files with 4 additions and 110 deletions

View File

@@ -6480,8 +6480,7 @@ bool HTMLInputElement::IsHTMLFocusable(bool aWithMouse, bool* aIsFocusable,
}
// Current radio button is not selected.
// Make it tabbable if nothing in group is selected and it is the first radio
// button.
// But make it tabbable if nothing in group is selected.
auto* container = GetCurrentRadioGroupContainer();
if (!container) {
*aIsFocusable = defaultFocusable;
@@ -6491,8 +6490,7 @@ bool HTMLInputElement::IsHTMLFocusable(bool aWithMouse, bool* aIsFocusable,
nsAutoString name;
GetAttr(nsGkAtoms::name, name);
if (container->GetCurrentRadioButton(name) ||
container->GetFirstRadioButton(name) != this) {
if (container->GetCurrentRadioButton(name)) {
*aTabIndex = -1;
}
*aIsFocusable = defaultFocusable;