Bug 1866142 - allow the enter key to activate the send more info button on Report...
commit17c04470236d6239670fd2ba479cbeb611b379b5
authorThomas Wisniewski <twisniewski@mozilla.com>
Tue, 28 Nov 2023 17:56:47 +0000 (28 17:56 +0000)
committerThomas Wisniewski <twisniewski@mozilla.com>
Tue, 28 Nov 2023 17:56:47 +0000 (28 17:56 +0000)
treeb28ab3d3019d416bc782b529511ce6cc27861ddb
parentd8811a49d0adc6a04f6b025ad980ca676835b90c
Bug 1866142 - allow the enter key to activate the send more info button on Report Broken Site; r=Gijs

- Ensure the anchor gets an actual href, otherwise when the tab is closed, the entire window goes with.
- Use event.target instead of event.view, which is not defined for the related key events.
- Add tests for keyboard navigation, and improve the Help menu support code for tests.

Differential Revision: https://phabricator.services.mozilla.com/D194566
browser/components/reportbrokensite/ReportBrokenSite.sys.mjs
browser/components/reportbrokensite/test/browser/browser.toml
browser/components/reportbrokensite/test/browser/browser_keyboard_navigation.js [new file with mode: 0644]
browser/components/reportbrokensite/test/browser/head.js