Chromium Code Reviews
DescriptionMiddle 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 #Messages
Total messages: 4 (0 generated)
|