Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Issue 2581023002: Add tab status to accessibility labels (Closed)

Created:
4 years ago by edwardjung
Modified:
3 years, 11 months ago
Reviewers:
dmazzoni, sky
CC:
chromium-reviews, tfarina, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tab status to accessibility labels We display various visual tab indicators but there is no corresponding indicator for accessible labels. The updated accessible label is in the format of: Page title - Tab status For tabs in incognito this is a format: Page title - Tab status (incognito) This fixes the crashes by adding a check for the active tab index. BUG=635610 Review-Url: https://codereview.chromium.org/2581023002 Cr-Commit-Position: refs/heads/master@{#441738} Committed: https://chromium.googlesource.com/chromium/src/+/bfeeddcdf2925a4fcd7bcf9666c8af703fa35e29

Patch Set 1 #

Patch Set 2 : Add check for active browser tab index to prevent crashes #

Total comments: 8

Patch Set 3 : Review comments #

Patch Set 4 : Make GetAccessibleTabName to be specific #

Patch Set 5 : Fix Linux breakage #

Patch Set 6 : Add tab index check. Fixes ChromeVox crash. #

Total comments: 14

Patch Set 7 : Review comments #

Patch Set 8 : Fixes for ChromeVox #

Patch Set 9 : Remove browser_ member from BrowserTabStripController #

Patch Set 10 : Remove tab index DCHECK - crashes ChromeVox #

Patch Set 11 : Return early if invalid tab index #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -29 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +57 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 6 7 8 8 chunks +29 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 7 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_controller.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (34 generated)
edwardjung
sky, please take a look. I've added a check in patchset #2 for a positive ...
4 years ago (2016-12-15 23:58:19 UTC) #4
sky
Can you land the fix for the crash separate from this?
4 years ago (2016-12-16 00:44:10 UTC) #6
sky
https://codereview.chromium.org/2581023002/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2581023002/diff/20001/chrome/app/generated_resources.grd#newcode14222 chrome/app/generated_resources.grd:14222: + <message name="IDS_TAB_AX_LABEL_MEDIA_RECORDING_FORMAT" desc="Accessibility label text, when the tab ...
4 years ago (2016-12-16 00:52:52 UTC) #7
edwardjung
On 2016/12/16 00:44:10, sky wrote: > Can you land the fix for the crash separate ...
4 years ago (2016-12-16 09:15:13 UTC) #10
edwardjung
Addressed the comments. Thanks for catching that I was just getting the active tab title ...
4 years ago (2016-12-19 12:59:26 UTC) #13
sky
https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode1606 chrome/browser/ui/views/frame/browser_view.cc:1606: } else { no else after return (see chromium ...
3 years, 11 months ago (2017-01-03 23:11:42 UTC) #24
edwardjung
https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode1606 chrome/browser/ui/views/frame/browser_view.cc:1606: } else { On 2017/01/03 23:11:41, sky wrote: > ...
3 years, 11 months ago (2017-01-05 16:59:45 UTC) #31
sky
LGTM https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode1618 chrome/browser/ui/views/frame/browser_view.cc:1618: if (index > -1) { On 2017/01/05 16:59:45, ...
3 years, 11 months ago (2017-01-05 17:45:17 UTC) #32
edwardjung
Thanks for the quick turnaround. Happy New Year! https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2581023002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode1618 chrome/browser/ui/views/frame/browser_view.cc:1618: if ...
3 years, 11 months ago (2017-01-05 18:41:14 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2581023002/200001
3 years, 11 months ago (2017-01-05 19:48:56 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 19:54:48 UTC) #45
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/bfeeddcdf2925a4fcd7bcf9666c8...

Powered by Google App Engine
This is Rietveld 408576698