Do not paste clipboard contents when middle click on a bookmark in Bookmark Manager.
commit233c5a88c8ad7fbaba83c7822e7d6ae10162cdef
authorgajendra.n <gajendra.n@samsung.com>
Fri, 5 Sep 2014 00:42:47 +0000 (4 17:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Sep 2014 00:47:38 +0000 (5 00:47 +0000)
tree16a2696db868c95f9b24cb344f2037f127d0ea94
parent884eafca142af3f8e8ed252048edeeb5c3d25319
Do not paste clipboard contents when middle click on a bookmark in Bookmark Manager.

Middle click on a bookmark in Bookmark Manager should open the bookmark in new
tab without pasting the contents of paste buffer. In Linux, since middle click
is used as 'paste', prevent it from pasting if the clicked item is a bookmark.
If clicked elsewhere in the Bookmark Manager window, do the default behaviour.

BUG=44811

R=bauerb@chromium.org

TEST=
1) Add few bookmarks and open Bookmark Manager.
2) Copy one or more bookmark item(s).
3) Middle click on a bookmark item and observe.
4) The clicked bookmark should open in new tab without pasting the copied bookmark
   inside the window.

Review URL: https://codereview.chromium.org/527923002

Cr-Commit-Position: refs/heads/master@{#293382}
chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js