Bug 1895778 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to :Gijs (he/him) from comment #1)
> Stealing focus from the notification bar is probably not ideal. I'm not sure how much control we have over the focus behaviour here in terms of the timing of the content focus vs. the appearing of the notification bar.
> 
> Are popup blocking notifications announced/alerted correctly? They should be using pretty similar notification bar styles (at least visually) so I'd expect them to behave similarly in terms of markup and a11y state, so if/where they do not that might give a hint so as to fix at least the announce-y-ness without necessarily changing focus. WDYT?

The popup blocker, i.e. from [this test website](www.webroot.com/services/popuptester1.htm), is announced in the recent Nightly 129.0a1 as expected - as an `role=alert` element. I think this may have been fixed with the bug 1894535 that made a `moz-message-bar` component an alert, but I am not sure if the notification in question ([possibly, this code](https://searchfox.org/mozilla-central/rev/4a78812619a63c4ace10ff4269432f73b64d5d67/browser/components/BrowserGlue.sys.mjs#1670-1679)) is actually using `moz-message-bar`
(In reply to :Gijs (he/him) from comment #1)
> Stealing focus from the notification bar is probably not ideal. I'm not sure how much control we have over the focus behaviour here in terms of the timing of the content focus vs. the appearing of the notification bar.
> 
> Are popup blocking notifications announced/alerted correctly? They should be using pretty similar notification bar styles (at least visually) so I'd expect them to behave similarly in terms of markup and a11y state, so if/where they do not that might give a hint so as to fix at least the announce-y-ness without necessarily changing focus. WDYT?

The popup blocker, i.e. from [this test website](www.webroot.com/services/popuptester1.htm), is announced in the recent Nightly 129.0a1 as expected - as an `role=alert` element. The moz-message-bar have been fixed with the bug 1894535 that made a `moz-message-bar` component an alert, but I am not sure if the notification in question ([possibly, this code](https://searchfox.org/mozilla-central/rev/4a78812619a63c4ace10ff4269432f73b64d5d67/browser/components/BrowserGlue.sys.mjs#1670-1679)) is actually using `moz-message-bar`.

In general, I agree, if this notification would be an `alert` and is announcing itself on page load, the bug is fixed

Back to Bug 1895778 Comment 2