Local debug assertion failure !frame || frame->AccessibleType() == eImageType || frame->AccessibleType() == a11y::eHTMLImageMapType
Categories
(Core :: Disability Access APIs, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: evilpie, Assigned: Jamie)
Details
Attachments
(1 file)
Every time I run a local optimized debug build I get the following assertion failure, that I have to disable:
Assertion failure: !frame || frame->AccessibleType() == eImageType || frame->AccessibleType() == a11y::eHTMLImageMapType, at /home/tom/projects/mozilla/accessible/generic/ImageAccessible.cpp:78
Comment 1•2 years ago
|
||
Is there any specific website or content that makes it happen, or is it on startup? Clean profile?
Assignee | ||
Comment 2•2 years ago
|
||
It's caused by a XUL image. I have a patch.
Reporter | ||
Comment 3•2 years ago
|
||
(In reply to James Teh [:Jamie] from comment #2)
It's caused by a XUL image. I have a patch.
Great! Sorry I missed the previous comment, but I also don't really know what triggers the assertion.
Assignee | ||
Comment 4•2 years ago
|
||
FWIW, I was hitting it when typing into the address bar.
Assignee | ||
Comment 5•2 years ago
|
||
UL images use nsImageBoxFrame, not nsImageFrame.
AccessibleType() returns eNoType on nsImageBoxFrame.
Changing this to return eImageType seems a bit risky and adding a new type just for an assertion seems pointless.
Therefore, we just check the frame type.
Assignee | ||
Comment 6•2 years ago
|
||
:evilpie, would you mind testing this patch to verify it definitely fixes the assertion for you?
Reporter | ||
Comment 7•2 years ago
|
||
(In reply to James Teh [:Jamie] from comment #6)
:evilpie, would you mind testing this patch to verify it definitely fixes the assertion for you?
I can't reproduce the crash with this change.
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8c0fe99587c Don't throw an assertion when calling ImageAccessible::NativeState on a XUL image. r=eeejay
Assignee | ||
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Description
•