Prevent talkback from announcing current progress time [chromium/src : main]

0 views
Skip to first unread message

Gurmeet Kalra (Gerrit)

unread,
Jun 25, 2026, 1:41:47 PMJun 25
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Open in Gerrit

Related details

Attention is currently required from:
  • Oleh Desiatyrikov (xWF)
  • Yong Li (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 1
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Thu, 25 Jun 2026 17:41:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Gurmeet Kalra (Gerrit)

unread,
Jun 25, 2026, 1:53:17 PMJun 25
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 2 comments

Patchset-level comments
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

File chrome/android/modules/xr/internal/java/src/org/chromium/chrome/browser/media/immersive_playback/components/ImmersiveVideoControlView.java
Line 143, Patchset 1 (Latest): boolean shouldBlock = mBlockAccessibilityEvents;
Gurmeet Kalra . unresolved

The `shouldBlock` appears to be redundant. You can directly `return false` inside the if conditions where blocking is desired, and let the final `return super.requestSendAccessibilityEvent(child, event);` handle the non-blocking case.

Gerrit-Comment-Date: Thu, 25 Jun 2026 17:53:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Gurmeet Kalra <gurm...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Gurmeet Kalra (Gerrit)

unread,
Jun 25, 2026, 1:57:43 PMJun 25
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 1 comment

File chrome/android/modules/xr/internal/java/src/org/chromium/chrome/browser/media/immersive_playback/components/ImmersiveVideoControlView.java
Line 145, Patchset 1 (Latest): CharSequence className = event.getClassName();
boolean isSeekBarClass =
className != null
&& (className.toString().contains("SeekBar")
|| className.toString().contains("Slider"));
boolean isTextViewClass =
(className != null && className.toString().contains("TextView"));
Gurmeet Kalra . unresolved

Instead of checking class name strings, which can be fragile and very generic as part of the class name can match, could you check if `event` is an instance of the specific classes - SeekBar or Slider or TextView?

Gerrit-Comment-Date: Thu, 25 Jun 2026 17:57:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yong Li (xWF) (Gerrit)

unread,
Jun 25, 2026, 2:02:53 PMJun 25
to Oleh Desiatyrikov (xWF), Gurmeet Kalra, chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Gurmeet Kalra and Oleh Desiatyrikov (xWF)

Yong Li (xWF) added 1 comment

Patchset-level comments
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

Yong Li (xWF)

I personally doubt that we should do this. Because this issue happens outside of the immersive playback, and the fix will make the behavior inconsitent. If we want to apply the same approach to other seekbars, it is no longer a Chrome XR issue.

Open in Gerrit

Related details

Attention is currently required from:
  • Gurmeet Kalra
  • Oleh Desiatyrikov (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 1
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Gurmeet Kalra <gurm...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Thu, 25 Jun 2026 18:02:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Gurmeet Kalra <gurm...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Yong Li (xWF) (Gerrit)

unread,
Jun 25, 2026, 2:14:15 PMJun 25
to Oleh Desiatyrikov (xWF), Gurmeet Kalra, chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Gurmeet Kalra and Oleh Desiatyrikov (xWF)

Yong Li (xWF) added 1 comment

File chrome/android/modules/xr/internal/java/src/org/chromium/chrome/browser/media/immersive_playback/components/ImmersiveVideoControlView.java
Line 145, Patchset 1 (Latest): CharSequence className = event.getClassName();
boolean isSeekBarClass =
className != null
&& (className.toString().contains("SeekBar")
|| className.toString().contains("Slider"));
boolean isTextViewClass =
(className != null && className.toString().contains("TextView"));
Gurmeet Kalra . unresolved

Instead of checking class name strings, which can be fragile and very generic as part of the class name can match, could you check if `event` is an instance of the specific classes - SeekBar or Slider or TextView?

Yong Li (xWF)

That's the ugly part here. I have tried many other approaches, and none of them works. The problem is the element is nested in the Slide. We don't have any access.

Gerrit-Comment-Date: Thu, 25 Jun 2026 18:14:07 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Gurmeet Kalra (Gerrit)

unread,
Jun 26, 2026, 1:22:59 PM (13 days ago) Jun 26
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 1 comment

Patchset-level comments
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

Yong Li (xWF)

I personally doubt that we should do this. Because this issue happens outside of the immersive playback, and the fix will make the behavior inconsitent. If we want to apply the same approach to other seekbars, it is no longer a Chrome XR issue.

Gurmeet Kalra

Not sure, what you mean by `I personally doubt that we should do this.`.

Adding a recording to the cl description to demo the impact of the change that is it is not announcing current progress during talkback is possible, right?

Open in Gerrit

Related details

Attention is currently required from:
  • Oleh Desiatyrikov (xWF)
  • Yong Li (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 1
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Fri, 26 Jun 2026 17:22:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Gurmeet Kalra <gurm...@google.com>
Comment-In-Reply-To: Yong Li (xWF) <yyon...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Yong Li (xWF) (Gerrit)

unread,
Jun 26, 2026, 1:26:06 PM (13 days ago) Jun 26
to Oleh Desiatyrikov (xWF), Gurmeet Kalra, chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Gurmeet Kalra and Oleh Desiatyrikov (xWF)

Yong Li (xWF) added 1 comment

Patchset-level comments
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

Yong Li (xWF)

I personally doubt that we should do this. Because this issue happens outside of the immersive playback, and the fix will make the behavior inconsitent. If we want to apply the same approach to other seekbars, it is no longer a Chrome XR issue.

Gurmeet Kalra

Not sure, what you mean by `I personally doubt that we should do this.`.

Adding a recording to the cl description to demo the impact of the change that is it is not announcing current progress during talkback is possible, right?

Yong Li (xWF)

Sorry for confusing. I mean I am not sure we should try to merge this CL. I personally don't think we should merge this CL.
1. it is ugly
2. it is inconsistent with other seekbar behaviors.

Open in Gerrit

Related details

Attention is currently required from:
  • Gurmeet Kalra
  • Oleh Desiatyrikov (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 1
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Gurmeet Kalra <gurm...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Fri, 26 Jun 2026 17:25:57 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Gurmeet Kalra (Gerrit)

unread,
Jun 26, 2026, 1:31:32 PM (13 days ago) Jun 26
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 1 comment

Patchset-level comments
Gurmeet Kalra . unresolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

Yong Li (xWF)

I personally doubt that we should do this. Because this issue happens outside of the immersive playback, and the fix will make the behavior inconsitent. If we want to apply the same approach to other seekbars, it is no longer a Chrome XR issue.

Gurmeet Kalra

Not sure, what you mean by `I personally doubt that we should do this.`.

Adding a recording to the cl description to demo the impact of the change that is it is not announcing current progress during talkback is possible, right?

Yong Li (xWF)

Sorry for confusing. I mean I am not sure we should try to merge this CL. I personally don't think we should merge this CL.
1. it is ugly
2. it is inconsistent with other seekbar behaviors.

Gurmeet Kalra

Agree, lets discard this change and come up with better alternate to solve the problem.

Consider using `instanceof` checks or comparing with `ClassName.class.getName()` if possible for more cleaner approach.

Open in Gerrit

Related details

Attention is currently required from:
  • Oleh Desiatyrikov (xWF)
  • Yong Li (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 1
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Fri, 26 Jun 2026 17:31:12 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Yong Li (xWF) (Gerrit)

unread,
2:49 PM (4 hours ago) 2:49 PM
to Oleh Desiatyrikov (xWF), Gurmeet Kalra, chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Gurmeet Kalra and Oleh Desiatyrikov (xWF)

Yong Li (xWF) added 2 comments

Patchset-level comments
File-level comment, Patchset 1:
Gurmeet Kalra . resolved

Lgtm, please add a recording of the flow to the description.

Gurmeet Kalra

Also, added additional comments.

Yong Li (xWF)

I personally doubt that we should do this. Because this issue happens outside of the immersive playback, and the fix will make the behavior inconsitent. If we want to apply the same approach to other seekbars, it is no longer a Chrome XR issue.

Gurmeet Kalra

Not sure, what you mean by `I personally doubt that we should do this.`.

Adding a recording to the cl description to demo the impact of the change that is it is not announcing current progress during talkback is possible, right?

Yong Li (xWF)

Sorry for confusing. I mean I am not sure we should try to merge this CL. I personally don't think we should merge this CL.
1. it is ugly
2. it is inconsistent with other seekbar behaviors.

Gurmeet Kalra

Agree, lets discard this change and come up with better alternate to solve the problem.

Consider using `instanceof` checks or comparing with `ClassName.class.getName()` if possible for more cleaner approach.

Yong Li (xWF)

Done

File chrome/android/modules/xr/internal/java/src/org/chromium/chrome/browser/media/immersive_playback/components/ImmersiveVideoControlView.java
Line 145, Patchset 1: CharSequence className = event.getClassName();

boolean isSeekBarClass =
className != null
&& (className.toString().contains("SeekBar")
|| className.toString().contains("Slider"));
boolean isTextViewClass =
(className != null && className.toString().contains("TextView"));
Gurmeet Kalra . resolved

Instead of checking class name strings, which can be fragile and very generic as part of the class name can match, could you check if `event` is an instance of the specific classes - SeekBar or Slider or TextView?

Yong Li (xWF)

That's the ugly part here. I have tried many other approaches, and none of them works. The problem is the element is nested in the Slide. We don't have any access.

Yong Li (xWF)

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Gurmeet Kalra
  • Oleh Desiatyrikov (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 2
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Gurmeet Kalra <gurm...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Thu, 09 Jul 2026 18:49:17 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Gurmeet Kalra (Gerrit)

unread,
5:27 PM (1 hour ago) 5:27 PM
to Yong Li (xWF), Oleh Desiatyrikov (xWF), chromium...@chromium.org, feature-me...@chromium.org, feature-v...@chromium.org
Attention needed from Oleh Desiatyrikov (xWF) and Yong Li (xWF)

Gurmeet Kalra added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Gurmeet Kalra . unresolved

LGTM. Also please add a recordings of the flow that prevents the talkback to announce current progress when accessibility is enabled and other one with progress on toolbar continues when no accessibility/talkback not set.

Open in Gerrit

Related details

Attention is currently required from:
  • Oleh Desiatyrikov (xWF)
  • Yong Li (xWF)
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia035db6ef8948f4d7684ead24c5ca290812d2560
Gerrit-Change-Number: 7994157
Gerrit-PatchSet: 3
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Gurmeet Kalra <gurm...@google.com>
Gerrit-Reviewer: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
Gerrit-Attention: Oleh Desiatyrikov (xWF) <desiat...@google.com>
Gerrit-Comment-Date: Thu, 09 Jul 2026 21:27:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages