• Alexander Dunaev's avatar
    [ozone/linux] Enabled file contents in drag data on Linux. · 18450925
    Alexander Dunaev authored
    Historically, there were a few discrepancies in behaviour of file
    drag and drop on different platforms.  With introduction of Ozone and
    implementation of X11 platform it became so complicated that a few tests
    had been disabled.
    
    The core difference between Linux and non-Linux was in how string and
    URI contents are handled together.  Various Linux file managers pass
    both string and URI together, for which there was a workaround in the
    X11 implementation but not in Wayland one.
    
    Another difference was that drags started in the renderer did not take
    files (due to security reasons) but the non-backed data provider used
    in ChromeOS and Wayland didn't recognise this scenario.
    
    This CL unifies the behaviour on Linux platforms and makes the
    non-backed data provider aware of drags originated from renderer, and
    enables the tests that validate this behaviour.
    
    Bug: 1121928, 1070483
    Change-Id: If64857c60df295b37f1f5d4abe11338912134f5c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461372Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Alexander Dunaev <adunaev@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#816195}
    18450925
web_contents_view_aura.cc 59.6 KB