Commit 6e34c1f1 authored by Shelley Vohr's avatar Shelley Vohr Committed by Commit Bot

Fix accessibility label ID mismatch

Refs https://chromium-review.googlesource.com/c/chromium/src/+/2231678.

When the label was updated to use underscores, the associated jQuery
call in accessibility.js was not likewise updated, so it would error
with:

"Uncaught TypeError: Cannot read property 'value' of null"

Change-Id: Iac01a1246a0bb1e0bb8a7c02a5965cfba5f66323
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2296883Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarAbigail Klein <abigailbklein@google.com>
Commit-Queue: Abigail Klein <abigailbklein@google.com>
Cr-Commit-Position: refs/heads/master@{#788770}
parent ab96bb26
...@@ -80,7 +80,7 @@ cr.define('accessibility', function() { ...@@ -80,7 +80,7 @@ cr.define('accessibility', function() {
// function with the result. // function with the result.
const requestType = element.id.split(':')[1]; const requestType = element.id.split(':')[1];
if (data.type == 'browser') { if (data.type == 'browser') {
const delay = $('native_ui_delay').value; const delay = $('native-ui-delay').value;
setTimeout(() => { setTimeout(() => {
chrome.send( chrome.send(
'requestNativeUITree', [{ 'requestNativeUITree', [{
......
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