Open
Bug 1590301
Opened 5 years ago
Updated 2 years ago
window.TouchEvent should be `undefined` when touch simulation is off in RDM
Categories
(DevTools :: Responsive Design Mode, defect, P3)
DevTools
Responsive Design Mode
Tracking
(Not tracked)
NEW
People
(Reporter: pbro, Unassigned)
References
(Blocks 1 open bug)
Details
STR:
- Make sure
devtools.responsive.touchSimulation.enabled
is false - Open a site
- Open RDM
- Make sure the
reload when touch simulation is toggled
setting is off in RDM - Evaluate
window.TouchEvent
in the console ==>undefined
- Click the touch simulation button
- Evaluate
window.TouchEvent
in the console ==>function
- Click the touch simulation button to uncheck it
- Evaluate
window.TouchEvent
again ==> stillfunction
Comment 1•5 years ago
|
||
Seems like we should make a clear decision about desired behavior here. Should TouchEvent constructor always be available or only conditionally available? My vote is that the constructor should always be available. I don't see anything in the spec (https://www.w3.org/TR/touch-events) that indicates otherwise. I'll proceed with that intention.
Comment 2•5 years ago
|
||
Code is changing in this space. This will need a re-test after Bug 1588438 lands.
Depends on: 1588438
Priority: -- → P3
I think the TouchEvent
interface should be always available, as it would be much simpler to write e instanceof TouchEvent
than check that its type
matches. Should I open a separate issue for this discussion?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•