Closed
Bug 296069
Opened 19 years ago
Closed 19 years ago
When CTRL-Click is set to open a link in a new window / tab, it still trigger the onclick events
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 151142
People
(Reporter: pbnadeau, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4" AND "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414" With both mozilla & firefox, using right-click, open in new window, will not launch the onclick event. This seem the right thing to do since the button wasn't pressed. All the other browsers tested behave like this and we used this construct a lot. But, using the quick key CTRL-Click to do the same action will have the onclick event fired. This completely destroy what our site do. To show that case, I've included a small test case at http://omega.darkthrone.com/mozbug.htm with a simple alert message when you click on the button. It should not be shown when using right-click -> new tab/window (and it's not), neither should it with ctrl-click, but it will be. :( Reproducible: Always Steps to Reproduce: 1. Right-Click -> open in a new window 2. CTRL-Click on the link 3. Notice the alert being displayed Actual Results: the alert was displayed, even if it should not Expected Results: not throw the onclick event Many users reported that problem, all using a version of firefox / mozilla. So it seems to be a long running bug. This also prevent mixed RPC sites from working correctly on firefox / mozilla ie gmail is a full RPC site. A mixed one will have normal link so the user can still open more windows from anywhere, will support refresh, and stuff like this :)
Duplicate of/related to bug 151142?
Comment 2•19 years ago
|
||
*** This bug has been marked as a duplicate of 151142 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•