• Maksim Sisov's avatar
    ozone/x11: complete request on SelectionNotify. · 33e2cb7c
    Maksim Sisov authored
    Currently, X11ClipboardOzone continues to keep the request even
    though OnSelectionNotify comes. This may result in clients waiting
    until the request is processed or sending another request at the
    same time as the request is being processed. Thus, after I looked
    at how non-Ozone/X11 handle selection notify, copy the logic that
    SelectionRequestor::OnSelectionNotify has and complete
    the request with empty data.
    
    Fixes the following tests:
    SafeBrowsingBlockingPageWithDelayedWarningsBrowserTest/SafeBrowsingBlockingPageDelayedWarningBrowserTest.Paste_*
    
    Bug: 1084472
    Change-Id: Iad7383f198b482549c9cff7f6b1183c9b8419470
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340909Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Commit-Queue: Maksim Sisov (GMT+3) <msisov@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#796709}
    33e2cb7c
x11_clipboard_ozone.cc 15 KB