diff --git a/uriloader/exthandler/tests/mochitest/browser_protocol_ask_dialog_permission.js b/uriloader/exthandler/tests/mochitest/browser_protocol_ask_dialog_permission.js index 5f00ca93942e..675ef9a225ed 100644 --- a/uriloader/exthandler/tests/mochitest/browser_protocol_ask_dialog_permission.js +++ b/uriloader/exthandler/tests/mochitest/browser_protocol_ask_dialog_permission.js @@ -331,8 +331,7 @@ async function testCheckbox( } if (typeof actionCheckbox == "boolean") { - checkbox.focus(); - await EventUtils.synthesizeKey("VK_SPACE", undefined, dialogEl.ownerWindow); + checkbox.click(); } }