Bug 21782 - When command-clicking a link it doesn't open in a new tab, but with right-clicking it works
Summary: When command-clicking a link it doesn't open in a new tab, but with right-cli...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, NeedsReduction
Depends on:
Blocks:
 
Reported: 2008-10-21 22:31 PDT by hahn.seb
Modified: 2009-04-09 08:38 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hahn.seb 2008-10-21 22:31:04 PDT
I use http://www.web.de for email, and their webmail has a list of emails. When I click one while pushing command, I don't get a new tab, even though the status bar says that it is going to open it in a new tab. When I open it with right-clicking and choosing "open in new tab", it works as expected.

Normally, command-click opens a new tab without a problem, except on that website.

Here is some code from the website:

						function sendpost(mid, indexid, document) {
							document.postform.rv_mid.value = mid;
							document.postform.indexid.value = indexid;
							document.postform.rv_js.value = "yes";
							document.postform.submit();
							return false;
						}
 
and every link looks like this:

                    <span class="from" id="***"><a href="/online/msg/lesen.htm?si=***&rv_mid=***&sortid=0&indexid=1" onclick="return sendpost(***,1, document);" title="misc &#010;&lt;misc@mail333.com&gt;" style="color:#000000; text-decoration:none;vertical-align:top">
                    misc &lt;***&gt;
						</a>
					</span>
Comment 1 Mark Rowe (bdash) 2008-10-21 23:40:16 PDT
The inconsistency between Cmd-Click and the context menu item is surprising.  There's a high possibility that this bug may be in Safari rather than WebKit, since WebKit doesn't make any decisions about, or have any knowledge of, tabs.
Comment 2 Mark Rowe (bdash) 2008-10-21 23:40:36 PDT
<rdar://problem/6309820>
Comment 3 nobody 2009-04-09 08:38:53 PDT
r42260

Here is another repeatable example.


1. http://www.dailymail.co.uk/news/article-1168584/Blundering-Bob-police-chief-quits-terror-dossier-gaffe--walks-away-110-000-year-pension.html

2. Open link to "Print" in a new window.

3. In the new Print window, command-click on image "A section from the paper Mr Quick was carrying" (this image contains link to enlarged image). Nothing happens.

4. However, menu item "Open link in new tab" or contextual menu "Open link in new tab" works OK.





AFAIK, this worked OK in previous nightly builds, but now works incorrectly in r422660.