Comment #49 on issue 2913 by bugdro...@chromium.org: Middle-click doesn't open a new tab for an anchor link http://code.google.com/p/chromium/issues/detail?id=2913
The following revision refers to this bug: http://src.chromium.org/viewvc/chrome?view=rev&revision=20674 ------------------------------------------------------------------------ r20674 | c...@google.com | 2009-07-14 15:02:46 -0700 (Tue, 14 Jul 2009) | 27 lines Changed paths: M http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/webframeloaderclient_impl.cc?r1=20674&r2=20673 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. Review URL: http://codereview.chromium.org/155522 ------------------------------------------------------------------------ -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---