Commit bcf0a04f authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

cbui views: don't AX ignore title on permission prompts

This title provides the only display of which origin is requesting the
permission in question, so it should be accessibility-focusable to
allow the user to focus it and navigate within it, select it, etc.

Bug: 1099327
Change-Id: I4f8038f2623a79d10ba18cdd809b202110bc55ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2515182Reviewed-by: default avatarAbigail Klein <abigailbklein@google.com>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823620}
parent d82f7979
...@@ -12,7 +12,6 @@ std::unique_ptr<views::Label> CreateTitleOriginLabel( ...@@ -12,7 +12,6 @@ std::unique_ptr<views::Label> CreateTitleOriginLabel(
std::make_unique<views::Label>(text, views::style::CONTEXT_DIALOG_TITLE); std::make_unique<views::Label>(text, views::style::CONTEXT_DIALOG_TITLE);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT); label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetCollapseWhenHidden(true); label->SetCollapseWhenHidden(true);
label->GetViewAccessibility().OverrideRole(ax::mojom::Role::kIgnored);
// Elide from head in order to keep the most significant part of the origin // Elide from head in order to keep the most significant part of the origin
// and avoid spoofing. Note that in English, GetWindowTitle() returns a // and avoid spoofing. Note that in English, GetWindowTitle() returns a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment