commit | d0b14fb63c6ee5cbb078eb2e7e5f243d7b7cb27c | [log] [tgz] |
---|---|---|
author | Darwin Huang <huangdarwin@chromium.org> | Fri May 10 22:25:16 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri May 10 22:25:16 2019 |
tree | 48baabc0cb5df2af6ab227c1a65e0050d2222253 | |
parent | a54f0e72e9f7c091186536f33250cb024f59511d [diff] |
Revert "Clipboard: Remove unnecessary ClipboardBuffer argument" This reverts commit 9f2e13b917fe46c87cb3528e7658be5ad533e110. Reason for revert: Regression https://crbug.com/959765 Removal of SystemClipboard::ReadPlainText logic checking and passing through |buffer_| resulted in a regression where attempting to middle click paste an X11 selection clipboard would incorrectly paste the copy/paste clipboard. The change was incorrect because blink::ClipboardCommands::ExecutePasteGlobalSelection() did indeed change the active clipboard buffer. Original change's description: > Clipboard: Remove unnecessary ClipboardBuffer argument > > of mojom::ClipboardBuffer::kStandard. While it could be useful > to allow this argument to have other values, perhaps to use > for ClipboardBuffer::kSelection in X11, this is currently not > used and always has the same value, so let's remove the unnecessary > checks and passing around of this buffer value. > > SystemClipboard: :Read{Image,PlainText}() have an argument, > mojom: :ClipboardBuffer buffer, which always has the same value > Change-Id: Ide1d9ecb5b8f2869b14232dc2acbfe4c681419e5 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576184 > Commit-Queue: Victor Costan <pwnall@chromium.org> > Reviewed-by: Victor Costan <pwnall@chromium.org> > Cr-Commit-Position: refs/heads/master@{#653521} TBR=pwnall@chromium.org,huangdarwin@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Change-Id: I5870d6e8d81e5e412848e6d39be1015980b94ab3 Bug: 959765 Change-Id: I5870d6e8d81e5e412848e6d39be1015980b94ab3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1606425 Reviewed-by: Victor Costan <pwnall@chromium.org> Reviewed-by: Darwin Huang <huangdarwin@chromium.org> Commit-Queue: Darwin Huang <huangdarwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#658785}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .