summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/webview_impl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 78a15cef..fdf3fbc 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -568,7 +568,10 @@ void WebViewImpl::MouseUp(const WebMouseEvent& event) {
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();