Closed Bug 117681 Opened 23 years ago Closed 22 years ago

Clicking middle button opens empty new tab

Categories

(SeaMonkey :: Tabbed Browser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: jens.kager, Assigned: hyatt)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7) Gecko/20011221 BuildID: 2001122106 Mozilla opens an empty new tab after a middle-click although it was only text which was clicked, not a real link. The source contains the an anchor tag (<a name=#b target=_blank>) which isn't closed. Thus Mozilla considers everything after it a link and opens a new tab (for some reason it doesn't open a new window when "Middle-click" is activated under "Tabbed Browsing"). That's probably not really a bug, but it's annoying nonetheless. Reproducible: Always Steps to Reproduce: 1. Activate "Middle-click or control-click of links in a Web page" under "Tabbed Browsing". 2. Middle-click on some text at the given URL. Actual Results: Mozilla opens an empty new tab. Expected Results: Nothing should have happened as no link has been clicked.
Reproducible on Win2K SP2 Build 2002011803, both on unclosed "<a name" tags and closed ones.
middle-clicking on either "foo" or "bar" opens a new empty tab
confirming 2002020406 win2k, is this a bug or a feature it should atleast open the same page and jump to the anchor, or not react to the click at all
I cannot reproduce this using the testcase or with other pages - WFM using 1.0RC3 on Win2000. reporter (Jens), or anyone, can you reproduce this bug with a recent build of Mozilla?
I can confirm it on linux RC3 (build 2002052309), but with even weirder results. It's not really that simple as to only trying to load the text you click on, it can also try to load the text from your current clipboard or any text that is highlighted. I'm seeing very similar problems with Bug 149232. When I middle click on a text my tab/window starts thinking: - "hey someone middle-clicked so we better load that url" - "hey, there is no url there! let's check if anything is highlighted and then check the clipboard" - "Something is highlighted, we'll just stupidly asume it's an url and load it" OR - "We found some stuff on the clipboard, we'll try to load that as an url!" Maybe Bug 149232 is a duplicate of this one? It seems to me that both bugs are simply a result of a middle-click event being sent, and the routines that take care of middle clicks handle them wrong.
I don't think this is really to do with tabs or anchor tags - If you middle click *anywhere* on a HTML page mozilla tries to load a new page with some random junk in the URL (I can't see a pattern). Interestingly if you don't have tabs on when you middle click it changes the URL of the current window, rather than opening a new window and putting the random URL in that.
A friend of mine has just explained that this is actually a feature. How it is supposed to work is that you highlight a URL somewhere (anywhere, in a console, in an icq message etc) then when you middle click in the Mozilla window the browser opens that URL. I'm pretty sure this explains the behaviour from my last comment, does it explain this bug though?
Even if it is a feature, it doesn't work now. Clicking the middle-button on the text 'Foo' does nothing ('middle-click opens in new tab' is enabled). WinXP trunk build 2002071108.
Dave: thats the linux behavior; you copy a URL to the clipboard, highlight mozilla, and middleclick somewhere. Mozilla should then open the URL in a new tab. It's not related to this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
mass-verifying WorksForMe bugs. reopen only if this bug is still a problem with a *recent trunk build*. mail search string for bugspam: AchilleaMillefolium
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: