This also fixes test
browser/base/content/test/tabs/browser_navigate_through_urls_origin_attributes.js
which was failing for fission + bfcacheInParent, because about:privatebrowsing
was getting bfcached, and an extra XULFrameLoaderCreated event was firing, when
we were not expecting it.
Differential Revision: https://phabricator.services.mozilla.com/D112441
The full text is split into 2 labels, one describing state and one containing the e-mail address.
To sighted users, both are visible. When this happens, let's use aria-labelledby to ensure both
labels are associated with the button control, so that both are read by screenreaders.
In the signed in and signed out state, the label is already correct (and either doesn't include
an email address, or doesn't include anything *but* the email address).
Note that in non-proton, the only label (both visible and otherwise) is the
state (the e-mail is not shown/used).
Differential Revision: https://phabricator.services.mozilla.com/D113657
macOS calls `-[MacApplicationDelegate applicationDockMenu:]` shortly after startup.
We fire popupshowing/shown/hiding/hidden events for the Dock menu when this
happens, mostly for consistency with other menus. Accessibility code was
processing these events and turning them into unintended accessibility notifications.
The Dock menu is a "native menu", but it is not covered by the workaround from
bug 1703482 because it's not a native *context* menu. It's its own special thing
and makes use of nsIMacDockSupport and nsIStandaloneNativeMenu and some JS glue
code.
Prior to the "Simplify nsMenuX state management" patch from bug 1699551, we were
*not* firing the popup DOM events for the Dock menu, mostly by accident.
In fact, it looks like we were only ever firing the events if a DOM modification
had occurred in the menu between menu construction and the current menu opening.
That's definitely not what we want and I'm surprised we got away with it for so
long.
Differential Revision: https://phabricator.services.mozilla.com/D113599
Reuse existing "show" event object to track which primary button was shown on the first screen. Update Events.yaml with longer description of expected values.
Differential Revision: https://phabricator.services.mozilla.com/D112837
Reuse existing "show" event object to track which primary button was shown on the first screen. Update Events.yaml with longer description of expected values.
Differential Revision: https://phabricator.services.mozilla.com/D112837
In the past, menus stayed open when an item was middle-clicked. Now that menus
fire command on middle-click, they automatically close when middle-clicked.
So this code now needs to handle middle clicks on menus like left clicks on
menus, and manually keep the menu open (rather than rely on them staying open
by default).
This functionality is covered by browser_stayopenmenu.js.
Differential Revision: https://phabricator.services.mozilla.com/D112683
Now that there is no more click handler, we need to go one level lower to keepthis test passing.
At this point in the patch series, activateItem does not yet support the button property.
Later on in this series, I will replace this with an activateItem call so that the test works with native context menus as well.
Differential Revision: https://phabricator.services.mozilla.com/D112073
Migrates two strings to fluent and uses sentence casing.
Places identity security block into a toolbar button.
Fixes margin spacing.
Removes green color from secure connection.
Differential Revision: https://phabricator.services.mozilla.com/D111368
Change the height of a window opened during the test now that menus on windows 10 are larger. Make sure that the zoom level is reset after the test so that running the test again doesn't use the old zoom level. The default value of 'ignorekeys' is 'shortcuts' on Windows so reset this properly otherwise the test fails if run again.
Differential Revision: https://phabricator.services.mozilla.com/D112407
Use labelledby and describedby to have reasonable reading of the dialog and buttons. Set live for dynamic changes. Remove spacers and other items from the accessibility list.
Differential Revision: https://phabricator.services.mozilla.com/D112160