| Index: webkit/glue/webview_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webview_impl.cc (revision 27870)
|
| +++ webkit/glue/webview_impl.cc (working copy)
|
| @@ -564,7 +564,10 @@
|
| HitTestResult hit_test_result =
|
| focused->eventHandler()->hitTestResultAtPoint(click_point, false, false,
|
| ShouldHitTestScrollbars);
|
| - if (!hit_test_result.scrollbar() && focused) {
|
| + // We don't want to send a paste when middle clicking a scroll bar or a
|
| + // link (which will navigate later in the code).
|
| + if (!hit_test_result.scrollbar() && !hit_test_result.isLiveLink() &&
|
| + focused) {
|
| Editor* editor = focused->editor();
|
| Pasteboard* pasteboard = Pasteboard::generalPasteboard();
|
| bool oldSelectionMode = pasteboard->isSelectionMode();
|
|
|