`typeof VisualViewport` returns "function" regardless of the dom.visualviewport.enabled flag
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox88 | --- | fixed |
People
(Reporter: myakura, Assigned: saschanaz)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:87.0) Gecko/20100101 Firefox/87.0
Steps to reproduce:
- open DevTools console
- type
typeof VisualViewport - check out the result
Actual results:
it returns "function"
Expected results:
it should return "undefined" on environments where dom.visualviewport.enabled is set to false (currently by default on desktop)
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.
Comment 3•5 years ago
|
||
Backed out changeset e780bd8fa66a (bug 1697253) for Mochitest failures in dom/base/test/test_domwindowutils.html. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer?job_id=332764035&repo=autoland&lineNumber=4255
Push with failures:
https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&revision=e780bd8fa66ade0204a4dfe39034bfae411cb4a8
Backout:
https://hg.mozilla.org/integration/autoland/rev/2b451ba06562f5581e0ea9da0b3d9949abf558de
| Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
| bugherder | ||
Description
•