Open Bug 1341059 Opened 4 years ago Updated 2 years ago

middlemouse.contentLoadURL is not prevented with preventDefault()

Categories

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

51 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jf.pambrun, Unassigned)

Details

Attachments

(1 file)

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.
Could you attach a testcase, please.
Component: Untriaged → Event Handling
Flags: needinfo?(jf.pambrun)
Product: Firefox → Core
Attached file index.html
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
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.