-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility crash while closing tabs or restoring a session #13778
Comments
Maybe our native view elements don't provide proper |
Apparently yes! I've spent some time trying to figure that out, but found only 2-3 unrelated issues. Will need to investigate it further |
For some reason, MacOS call the patched method for tabs, and tabs cannot provide an accessibility string. Fix brave/brave-browser#13778
Attempted to reproduce the crash with If QA can't reproduce @iefremov, we might just need to uplift and have @iefremov verify it once we uplift and get a |
Verified passed with
Verified steps from #13778 (comment) multiple times. No crash observed but still have open issue #13837 as the crash does still occur sometimes. Verification PASSED on
Ran through #13778 (comment) for ~20-30min and managed Brave to crash the browser twice via the follownig:
However, I'm not sure if these are related to accessibility but it's definitely a lot better as @LaurenWags mentioned above. We have #13837 filed as a follow up to address the other crashes as @LaurenWags mentioned. |
Browser crash https://brave.sp.backtrace.io/p/brave/debug?filters=((callstack%2Ccontains%2CaccessibilityAttributedStringForRange)%2C(ver%2Cregex%2C%228%5B7%7C8%7C9%5D.*%22)%2Cptype%3Dbrowser)&debug=(c25f28,0,0)
Steps to Reproduce
Reproduces how often:
Easily reproduced/Intermittent issue/No steps to reproduce
Brave version (brave://version info)
and newer, tested on
Version/Channel Information:
Technical notes
The crash occurs in
accessibilityAttributedStringForRange
which is called by MacOS for different elements of the browser UI. For some reason, MacOS calls it for Tabs, and in this unfortunate case the requested string cannot be obtained. We have to figure out why this happens at all, because Chrome doesn't look affectedThe text was updated successfully, but these errors were encountered: