• Sara Kato's avatar
    Return early when output only contains "alert". · 6cf984ef
    Sara Kato authored
    On an alert event, 2 alert events are sometimes generated. The
    first alert events will read "Alert", while the second wil contain
    the actual contents of the alert. This CL prevents such "Alert"
    messages from being announced.
    
    Such as case is when a notification in chat app is received, ChromeVox will read
    "Alert" "Alert <message>". With this CL, ChromeVox will read
    "Alert <message>"".
    
    AX-Relnotes: None
    Test: ChromeVoxBackgroundTest.Alert[No]Announcement
    Test: manual. Confirm "Alert" for chat notification is read once.
    Bug: b:162993006
    Change-Id: Ibc661dca9df96da937af165099718f710593fac8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341231
    Commit-Queue: Sara Kato <sarakato@chromium.org>
    Auto-Submit: Sara Kato <sarakato@chromium.org>
    Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
    Reviewed-by: default avatarHiroki Sato <hirokisato@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#802121}
    6cf984ef
output.js 91.9 KB