• proberge's avatar
    Chrome Cleanup: Prevent accidental prompt acceptance · 8a674ef1
    proberge authored
    If a user is typing as the Chrome Cleanup prompt is opening, there's a
    good chance that a Space or Enter keyboard click will accept the dialog,
    surprising users who did not intend to consent to the Chrome Cleanup.
    
    This works around the issue by setting the initial focus on the details
    button. This brings the user to a new tab with more details about
    Chrome Cleanup and allows them to start cleanup from there.
    
    Bug: 690020
    Change-Id: Ibac7fe55ecc403e831e8fc4fc469c980557b83d4
    Reviewed-on: https://chromium-review.googlesource.com/575355
    Commit-Queue: proberge <proberge@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#487940}
    8a674ef1
chrome_cleaner_dialog_win.cc 5.85 KB