0
Go to file
Aaron leventhal 51ba18064e Reland: [A11y] Expose options as NSAccessibilityMenuItemRole
Reason for revert in CL:6101793:
VoiceOver not reading autofill, crbug.com/379143333
Fixed autofill case by only implementing the new role for content.
We keep NSAccessibilityStaticTextRole for options in UI.
Eventually, we hope that Apple will provide new role for options.

Original commit message:

A previous attempt at fixing https://crbug.com/1221690 (truncated
option text) was to expose different text, rather than exposing the
name. However, it's important to expose the accessible name because a
lot more goes into it than just appending descendant text together.
For example, whitespace is added where appropriate. Therefore, the
previous fix caused new bugs such as https://crbug.com/40773609.

The original problem occurs because VoiceOver does not expect a
descendant subtree for AXStaticText, and ends up using the subtree's
text but concatenates it to the length of the AXValue.

To fix this issue while retaining the accessible name, we can either:
1. Truncate the subtree for options. The problem with this is that
options can have important, even interactive, descendants.
2. Use a different role than the officially recommended role. It seems
that NSAccessibilityMenuItemRole is reasonable. It does cause VoiceOver
to announce each option as a menu item, but it seems that the options
basically are similar to menu items.

Idea  seems to have the fewest downsides. Therefore, this CL
undoes the original problematic fix from CL:2976454 and instead
implements idea .

In the meantime we have contacted James Craig from Apple for a
recommendation. They are going to look into a fix in VoiceOver and
get back to us when there is a new recommendation. For the short term,
James said it makes sense to go with solution  (this CL).

Bug: 40773609
Change-Id: Ibd8ab9939cbad5ba77bfe35ac8289be84b1fec9e
Fixed: 379289359
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6104178
Reviewed-by: Jacques Newman <janewman@microsoft.com>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1403047}
2025-01-07 09:13:33 -08:00
2025-01-06 15:15:14 -08:00
2025-01-06 16:58:28 -08:00
2025-01-07 07:21:48 -08:00
2025-01-06 04:37:29 -08:00
2024-12-10 15:32:48 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%