Open
Bug 1349404
Opened 7 years ago
Updated 2 years ago
Video starts playing when it's clicked in "Pick an element from the page" mode
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(firefox52 wontfix, firefox53 wontfix, firefox54 fix-optional, firefox56 wontfix, firefox57 fix-optional)
NEW
Tracking | Status | |
---|---|---|
firefox52 | --- | wontfix |
firefox53 | --- | wontfix |
firefox54 | --- | fix-optional |
firefox56 | --- | wontfix |
firefox57 | --- | fix-optional |
People
(Reporter: 684sigma, Unassigned)
References
Details
(Keywords: regression)
I have a problem with Firefox Beta 52. It also happens in Beta 53, Nightly 55. It doesn't happen in ESR 45. "Pick an element from the page" in devtools never sends "mousedown", "mouseup", "click" events to the page, and nothing happens when clicking on the page. <video> element now breaks this rule: when clicking on <video> element, the video starts, even if it has onclick handler with .preventDefault(). "mousedown", "mouseup", "click" events are not sent. Here's what I do 1. Open https://www.w3schools.com/html/HTML5_video.asp 2. Open devtools, click "Pick an element from the page" 3. Click on the video Result: video starts playing. Expected: video shouldn't start playing.
Keywords: regression
Regression window: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=952eae508967ae46d36909d179159f2a2205169c&tochange=2863702401b0927e2884c2b15476790265c1ff5c
Blocks: 1274520
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Ever confirmed: true
Version: 52 Branch → 49 Branch
Comment 2•7 years ago
|
||
I think this is intended, please see more details in Bug 1274520.
Comment 3•7 years ago
|
||
When picking nodes on the page, devtools tries to prevent mouse events so that clicking on a button would select it rather than actually click that button. This is where it is done: http://searchfox.org/mozilla-central/rev/0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/devtools/server/actors/highlighters.js#243-246 It looks like there are some events that the devtools node picker can't prevent right now. It also happens if you try clicking on buttons at the bottom of the about:home page. Looking at bug 1274520, it looks like the reason is that certain things listen for events using mozSystemGroup. I don't know if there's a way for devtools to also prevent mozSystemGroup events in a similar way. Olli, do you know if there's something we could do?
Flags: needinfo?(bugs)
Comment 5•7 years ago
|
||
Add event listener to window's chromeEventListener in capture phase (default group) and call preventDefault() or add listener to capture phase in system group and call preventDefault()? http://searchfox.org/mozilla-central/rev/0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/dom/webidl/EventTarget.webidl#14,16-18,35
Flags: needinfo?(bugs)
Comment 6•7 years ago
|
||
But, hmm, is this possibly related to bug 1327097 too?
Comment 7•7 years ago
|
||
(and Bug 1338961)
Updated•7 years ago
|
status-firefox52:
--- → wontfix
status-firefox53:
--- → affected
status-firefox54:
--- → affected
status-firefox55:
--- → affected
Comment 8•7 years ago
|
||
Too late for a fix for 53, fix-optional for 54, minor carryover regression.
Updated•7 years ago
|
status-firefox56:
--- → wontfix
status-firefox57:
--- → fix-optional
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
status-firefox55:
wontfix → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•