Bug 1481400 - More explicitly activate checkbox in browser_protocol_ask_dialog_permission.js.

The element used to only receive the keyup event because of the
subdialog code moving around the focus.

MANUAL PUSH: Orange on a CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2021-06-03 12:51:45 +02:00
Родитель 632a18be52
Коммит dc3e79e28d
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -331,8 +331,7 @@ async function testCheckbox(
}
if (typeof actionCheckbox == "boolean") {
checkbox.focus();
await EventUtils.synthesizeKey("VK_SPACE", undefined, dialogEl.ownerWindow);
checkbox.click();
}
}