Closed Bug 299901 Opened 19 years ago Closed 19 years ago

Middle click fail on links with nested tags

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

Other Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: Gavin)

References

()

Details

(Keywords: fixed-aviary1.0.5, fixed1.7.9, regression)

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050706 Firefox/1.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050706 Firefox/1.0.5

Middle click is completely unresponsive when used on the "Read More" links on
Slashdot.

Reproducible: Always

Steps to Reproduce:
1. Visit http://www.slashdot.org/
2. Middle click "Read More"


Actual Results:  
Nothing happens.

Expected Results:  
Firefox should open the link in a new tab.
Attached file Minimised testcase β€”
Nominating to block 1.0.5, whatever is causing this will most likely break other
things too.
Flags: blocking-aviary1.0.5?
This is not present on the trunk. Apologies for bugspam.
Confirmed:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050706
Firefox/1.0.5

Works in 1.0.4.
Severity: major → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Looks like this bug affects middle-clicking on any child element of a hyperlink
that isn't a textNode.
Summary: Middle click fail on links with nested bold tags → Middle click fail on links with nested tags
(In reply to comment #3)
> This is not present on the trunk. Apologies for bugspam.

It's a problem for the trunk build *I'm* running:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050706
Firefox/1.0+ ID:2005070617 (Pacifica installer.exe)
This is almost certainly due to the changes from bug 298892. The
contentAreaClick changes made it so that any nested links fail the instanceof
checks, causing linkNode to be null. Long story short,

while (linkNode && !(linkNode instanceof HTMLAnchorElement))

should be:

while (event.originalTarget && !(event.originalTarget instanceof HTMLAnchorElement))

to match up with the previous code.
Blocks: 298892
(In reply to comment #6)
> (In reply to comment #3)
> > This is not present on the trunk. Apologies for bugspam.
> 
> It's a problem for the trunk build *I'm* running:
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050706
> Firefox/1.0+ ID:2005070617 (Pacifica installer.exe)

I see this too in yesterdays prometheus tinderbox build and it is *very* annoying:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050706 Firefox/1.0+
No longer blocks: 298892
Nominating to block 1.8b3 as well.
Flags: blocking1.8b3?
Reassiging to dveditz to see if we can quickly fix this regression.  Sounds like
Gavin might have the solution to this one.
Assignee: nobody → dveditz
Component: General → Event Handling
Flags: blocking1.8b3?
Flags: blocking1.8b3+
Flags: blocking-aviary1.0.5?
Flags: blocking-aviary1.0.5+
Product: Firefox → Core
Version: unspecified → Other Branch
Flags: blocking1.7.9+
Nominating for everything, we'll have to see if we can get this fix in.
Flags: blocking1.8b3?
Flags: blocking1.8b3+
Flags: blocking1.7.9?
Flags: blocking1.7.9+
Flags: blocking-aviary1.0.5?
Flags: blocking-aviary1.0.5+
Attached patch Patch β€” β€” Splinter Review
This fixes it for me, and restores the original behavior.
Attachment #188504 - Flags: superreview?(dveditz)
Attachment #188504 - Flags: review?(mconnor)
Comment on attachment 188504 [details] [diff] [review]
Patch

sr=dveditz
also need the same fix in mail and xpfe
Attachment #188504 - Flags: superreview?(dveditz) → superreview+
Comment on attachment 188511 [details] [diff] [review]
thunderbird and suite version

gavin's patch, r/sr=dveditz for other ports
Attachment #188511 - Flags: superreview+
Attachment #188511 - Flags: review+
Attachment #188504 - Flags: review?(mconnor) → review+
Flags: blocking1.8b3?
Flags: blocking1.8b3+
Flags: blocking1.7.9?
Flags: blocking1.7.9+
Flags: blocking-aviary1.0.5?
Flags: blocking-aviary1.0.5+
Whiteboard: has fully reviewed patch - needs approvals for branches and trunk
Comment on attachment 188504 [details] [diff] [review]
Patch

Let's get this checked in everywhere. a=jay
Attachment #188504 - Flags: approval1.8b3+
Attachment #188504 - Flags: approval1.7.9+
Attachment #188504 - Flags: approval-aviary1.0.5+
Attachment #188511 - Flags: approval1.8b3+
Attachment #188511 - Flags: approval1.7.9+
Attachment #188511 - Flags: approval-aviary1.0.5+
D'oh :-[
Assignee: dveditz → gavin.sharp
suite fix landed on 1.7 branch and trunk
firefox and thunderbird fixes landed on aviary 1.0.1 branch and trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: has fully reviewed patch - needs approvals for branches and trunk
Verified with Windows Fx 1.0.5 2005-07-07-05-aviary1.0.1
Status: RESOLVED → VERIFIED
(In reply to comment #20)
> Verified with Windows Fx 1.0.5 2005-07-07-05-aviary1.0.1

Verifying fixed on trunk, too.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050707
Firefox/1.0+ ID:2005070706 (auto-update)
Depends on: 299983
*** Bug 299994 has been marked as a duplicate of this bug. ***
*** Bug 299996 has been marked as a duplicate of this bug. ***
*** Bug 299950 has been marked as a duplicate of this bug. ***
*** Bug 299957 has been marked as a duplicate of this bug. ***
*** Bug 299929 has been marked as a duplicate of this bug. ***
*** Bug 299913 has been marked as a duplicate of this bug. ***
Still not fixed in this release
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050707
Firefox/1.0.5
Rossen: Are you sure you have your middle mouse button configured correctly? 
Please provide a testcase that is still broken.  Both testcases already in this
bug work fine with the latest 1.0.5 candidate builds for me (and others).
No longer depends on: 299983
BTW: I still see this bug (at least with SeaMonkey) on some links, i filed Bug
Bug 300353, a testcase is attached there.
Centre clicking OR ctrl+t clicking image links of any type results in no action
where a new tab should be. This is still happening in the latest 1.06 version.
This bug as filed is fixed. Are you sure you're not seeing this problem as a
result of extension incompatibility? Tabbrowser Extensions is known to be broken.
(In reply to comment #32)

Yes, I started following this bug because of what turned out to be a bug in TBE.
 The most recent version of TBE seems to work fine, though.
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: