Bug 1437431 - Give the Rich autocomplete panel a proper role to override the default popup XBL binding of menupopup, r?paolo
Screen readers, especially on Windows, react very sensitively to a menu and expect certain children. Some, for example, only accept menu items, menu checkboxes or menu radio items, but no full-blown widgets like a rich listbox. So, this patch changes the role for the panels that pop up with search results or auto complete entries, to be like a normal grouping panel.
MozReview-Commit-ID: GCVXAPttV1M
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -131,31 +131,34 @@
onclick="checkForMiddleClick(this, event);"/>
<tooltip id="aHTMLTooltip" page="true"/>
<tooltip id="remoteBrowserTooltip"/>
<!-- for search and content formfill/pw manager -->
<panel type="autocomplete-richlistbox"
id="PopupAutoComplete"
+ role="group"
noautofocus="true"
hidden="true"
overflowpadding="4"
norolluponanchor="true"
nomaxresults="true" />
<!-- for search with one-off buttons -->
<panel type="autocomplete-richlistbox"
id="PopupSearchAutoComplete"
+ role="group"
noautofocus="true"
hidden="true" />
<!-- for url bar autocomplete -->
<panel type="autocomplete-richlistbox"
id="PopupAutoCompleteRichResult"
+ role="group"
noautofocus="true"
hidden="true"
flip="none"
level="parent"
overflowpadding="15" />
<!-- for date/time picker. consumeoutsideclicks is set to never, so that
clicks on the anchored input box are never consumed. -->