• Tanmoy Mollik's avatar
    Revert "Fix accessible name for input type=file" · 801d6b45
    Tanmoy Mollik authored
    This reverts commit 21c89bbc.
    
    Reason for revert: This cl is causing failures in different bots. See the bug to failed bot links
    
    Original change's description:
    > Fix accessible name for input type=file
    > 
    > A file picker control (<input type=file>) is exposed as
    > a button in the accessibility tree. Previously the
    > filename chosen was only exposed in the accessible value,
    > like with other input elements - but most screen readers
    > were not reading the value, since it's not normal to
    > read the value of a button. So users couldn't tell what
    > file was chosen, or whether a file was chosen at all.
    > 
    > Fix this by making the accessible name include both the
    > filename (as already exposed in the value) and the
    > text of the "Choose File" button.
    > 
    > Add a test to confirm this is working correctly when a
    > file is selected.
    > 
    > Bug: 903655
    > 
    > Change-Id: Iaa22ee66e21079014999e8af3d762ee481c85c54
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340163
    > Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
    > Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#795655}
    
    TBR=dmazzoni@chromium.org,aleventhal@chromium.org
    
    Change-Id: I06b265ba4e46e428ac62e17bb186f711f3226224
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: 1114139
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339627Reviewed-by: default avatarTanmoy Mollik <triploblastic@chromium.org>
    Commit-Queue: Tanmoy Mollik <triploblastic@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#795891}
    801d6b45
input-file-expected-mac.txt 92 Bytes