After bug 925209, sender headings in Facebook Messenger are exposed as invisible
Categories
(Core :: Disability Access APIs, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox73 | --- | unaffected |
firefox74 | --- | unaffected |
firefox75 | --- | fixed |
firefox76 | --- | fixed |
People
(Reporter: Jamie, Assigned: eeejay)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
In conversations on Facebook Messenger (messenger.com), the sender of each message is indicated with an h5. In very simplified code, it goes something like this:
<h2>Joe Blogs</h2>
...
<h3>Conversation Information</h3>
...
<h3>Messages</h3>
...
<h4>2:04 PM</h4>
<h5>Joe</h5>
...
Hi!
Those h5s are not visually shown; I guess they use thumbnails or some other way of indicating the sender. Instead of being off-screen, they use opacity: 0. That means we now expose them as invisible.
NVDA ignores the invisible state, so thankfully, they still get rendered in NVDA browse mode. I'm not sure about other AT. If we're filtering invisibles out for VoiceOver, this is going to cause a problem there.
Even when the invisible state is ignored, this causes a problem. We return early in GroupPosition if the invisible state is present. That means NVDA can't get the heading level, so it just gets reported as "heading" instead of "heading level 5" and you can't quick nav to heading level 5.
Assignee | ||
Comment 1•4 years ago
|
||
OK, that's bad.
I think that patch might need to be reverted.
Assignee | ||
Comment 2•4 years ago
|
||
Since we get the opacity:0 awesomeness from layout. I think it may be worth using it to mark ~OPAQUE on subtrees of opacity:0.
We ended up not needing this in mac, so I can also see wholly reverting it.
Reporter | ||
Comment 3•4 years ago
|
||
It looks like we only expose the opaque state for opacity: 1, but I'm confused about how this gets inherited through the tree:
https://searchfox.org/mozilla-central/rev/557a0e222dd104c5d805ba344c45d6abc27d3db0/accessible/generic/Accessible.cpp#1238
Anyway, it makes sense to use this info from layout somehow, so I'm happy with either resolution here.
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7092b787ffba Revert change where opacity:0 makes subtrees invisible. r=Jamie
Comment 6•4 years ago
|
||
Eitan, please request beta uplift for this one, since the original patch landed in 75 and regressed things there. Thanks!
Updated•4 years ago
|
Comment 7•4 years ago
|
||
bugherder |
Assignee | ||
Comment 8•4 years ago
|
||
Comment on attachment 9132372 [details]
Bug 1620508 - Revert change where opacity:0 makes subtrees invisible. r?Jamie!
Beta/Release Uplift Approval Request
- User impact if declined: Some elements that are meant to be visible to screen readers become unreadable because their context is stripped
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): I reverted a recently landed change so we are back to the very stable status quo
- String changes made/needed:
Comment 9•4 years ago
|
||
Comment on attachment 9132372 [details]
Bug 1620508 - Revert change where opacity:0 makes subtrees invisible. r?Jamie!
regression fix, approved for 75.0b3
Comment 10•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Description
•