Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 155522: Middle clicks on all fragment links open in new tab. (Closed)

Created:
11 years, 5 months ago by chase
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Middle clicks on all fragment links open in new tab. Middle clicking on an anchor tag that points to an in-doc fragment should result in a new background tab being opened. Before this change, we were overriding this behavior to cause a middle click to behave like a left click. This patch allows middle clicks to function similar to the behavior seen in Firefox and Safari. No change in behavior should be seen by users for left clicks on anchor tags that refer to in-doc fragments. While testing, I see at times issues due to scrolling within the tab to the correct fragment identifier or start of the page. This has already been identified in issues such as 9319, so I'm ignoring that for now. BUG=2913 TEST=Load Wikipedia, visit a page with many subheadings, left click on a subheading, verify the current page scrolls to the correct heading. Click back, verify you are taken back to your original position. Middle click on the same subheading, verify a new tab is loaded in the background that is scrolled to the correct heading. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20674

Patch Set 1 #

Total comments: 1

Patch Set 2 : make code more compact #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -22 lines) Patch
M webkit/glue/webframeloaderclient_impl.cc View 1 2 chunks +15 lines, -22 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
chase
11 years, 5 months ago (2009-07-14 20:02:34 UTC) #1
Peter Kasting
http://codereview.chromium.org/155522/diff/1/2 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/155522/diff/1/2#newcode937 Line 937: if (disposition != IGNORE_ACTION) { Drive-by: You can ...
11 years, 5 months ago (2009-07-14 20:07:35 UTC) #2
darin (slow to review)
LGTM
11 years, 5 months ago (2009-07-14 21:41:00 UTC) #3
chase
11 years, 5 months ago (2009-07-14 21:49:52 UTC) #4
Taking into account pkasting's review.

Powered by Google App Engine
This is Rietveld 408576698