Whenever we set plain text on the standard clipboard, also set
the selection clipboard on Linux. Most of the time, this happens automatically since the only way to set the standard clipboard is to select text (which sets the selection clipboard), but it's possible to set the standard clipboard using javascript (event.clipboardData.setData('text/plain', ...)). Since we always set the selection clipboard, I removed some code that was for handling the "Copy Link Address" context menu item. I tested on GTK+ and Aura. BUG=168135 TEST=Right click a link, select "Copy Link Addres", middle click in a text field. This should paste the URL. Here's a test case for clipboardData.setData: http://jsfiddle.net/LNWMG/ Review URL: https://codereview.chromium.org/11792002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175387 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment