Open Bug 1327818 Opened 8 years ago Updated 2 years ago

Click event fires on mouseup after I cancel window resizing via Escape key

Categories

(Core :: DOM: Events, defect, P5)

defect

Tracking

()

People

(Reporter: arni2033, Unassigned)

References

Details

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:  (testcase)
1. Open url [1]
2. Click on scrollbar on the page
3. Hover mouse over the window's border, hold left mouse button,
   move mouse a bit, press Escape to cancel drag and drop,
   move mouse to the gray square on the page, release left mouse button

AR:  Click event fires on <div> element
ER:  Only mouseup event should fire on <div> element


STR_2:  (original)
1. Open url [2], click on the page
2. Open devtools toolbox in separate window, open console
3. Resize console so that vertical scrollbar appeared. Click on the vertical scrollbar
4. Hover mouse over the window's border (the window w/ toolbox), hold left mouse button,
   move mouse a bit, press Escape to cancel drag and drop,
   move mouse to the link inside console message from Step1 (accidentally!), release left mouse button

AR:  Script opens in Debugger
ER:  Console should stay opened, because I haven't clicked anywhere

> [1] data:text/html,<body onload="D=document.querySelector('div');D.onmousedown=D.onmouseup=D.onclick=function(e){console.log(Date.now(),e)};"><div><style>body{height:10000px;width:10000px;}div{height:100px;width:100px;background:gray;}
> [2] data:text/html,<script src="data:text/javascript,onclick=function(){console.log(1)}"></script>
Component: Untriaged → DOM: Events
Product: Firefox → Core
No longer blocks: 1277113
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.