Closed Bug 141405 Opened 24 years ago Closed 24 years ago

Control-click on some links causes both current tab and new tab to load linked page

Categories

(SeaMonkey :: Tabbed Browser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 89296

People

(Reporter: justincwatt, Assigned: jag+mozilla)

References

()

Details

Steps to reproduce: 1) Go to http://www.google.com/ 2) Control-click on the "Images", "Groups", or "Directory" links Behavior: current tab and new tab both load the linked page that was control-clicked Expected behavior: The current tab should remain on current page and only the new page should loaded the linked page that was control-clicked. Reason for behavior: ?
I also see this behavior. Using Win95 / 2002042510 These links on Google's home page include attributes like this: href="/imghp?hl=en" onClick="return c('/imghp?hl=en');" I presume that this bug is caused by the onClick?
I tried to isolate the behavior to those attributes in the <A> tag, but the erroneous behavior does not happen when I save Google's index page locally and control-click on the link. It only happens to the remote version of the page.
it's because those google links have onClick code, so that any entries in the form can be carried over into whichever type of search you've selected. the onClick code opens the selected link in the current tab (retaining any entry in the input box), while mozilla opens the link in a new tab from the control+click. not sure if mozilla could do anything about this (catching the scripted form submit into the new tab instead??)
I still think we should be using capture for contentAreaClick, not bubbling... then this problem would not arise.
Status: UNCONFIRMED → NEW
Depends on: 128830
Ever confirmed: true
*** This bug has been marked as a duplicate of 89296 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
No longer depends on: 128830
marking verified as a duplicate. if you decide to reopen this bug, please clarify why. search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.