middlemouse.contentLoadURL is not prevented with preventDefault()

UNCONFIRMED
Unassigned

Status

()

P2
normal
UNCONFIRMED
2 years ago
a year ago

People

(Reporter: jf.pambrun, Unassigned)

Tracking

51 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

I am building an software with an image viewer component and panning operation is mapped to middle mouse button drag events. Everything work fine in all browser, except in FF on Linux.


Actual results:

If the user has a URL in the primary buffer, it will be loaded in the current tab on middle button release event even if the default behavior is prevented.


Expected results:

I expect a prevented default behavior when preventDefault() is invoked.
I expect the same middle button drag behavior on all browser and platform.
I expect working middle mouse button drag events whether the user has a URL or or not in the primary buffer.

Comment 1

2 years ago
Could you attach a testcase, please.
Component: Untriaged → Event Handling
Flags: needinfo?(jf.pambrun)
Product: Firefox → Core
(Reporter)

Comment 2

2 years ago
Created attachment 8839220 [details]
index.html
(Reporter)

Comment 3

2 years ago
It is trivial. 10 sec of googling would reveal several mention of this issue.

It kind of feel like you are blowing me off while I am taking the time to help you by submitting bug reports.

Anyway, here you go.
I expect the that middle clicking would he print "nada" on the console regardless of what I have in the primary buffer. Certainly not to navigate to a url I have selected some time ago.
Flags: needinfo?(jf.pambrun)
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.