Open Bug 698749 Opened 13 years ago Updated 2 years ago

autoscrolling blocking middle-clicks to dynamically updating links

Categories

(Firefox :: General, defect)

7 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: shoofy, Unassigned)

Details

Attachments

(1 file)

Attached file demo of bug
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928221858

Steps to reproduce:

Preface: I realize that this might be a correct interpretation of the html standard, but other browsers don't behave this way, and given the way the web is moving towards being more and more dynamic, I think this is not a good behavior.

With autoscrolling turned on, middle-click on an <a> element that does not have an href attribute, but has one dynamically added by a 'click' event listener. (See demo html)


Actual results:

autoscrolling triggers and traps click event from reaching event listener.


Expected results:

Event listener should have fired and href should have been added, causing link to open in new tab.

This seems to be caused by http://mxr.mozilla.org/firefox/source/browser/base/content/browser.js#4786. The expected behavior occurs in other browsers I have tested on.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: