When element is in fullscreen mode, window.innerHeight is bigger than window.outerHeight

ASSIGNED
Assigned to

Status

()

defect
ASSIGNED
7 years ago
a month ago

People

(Reporter: diogogmt, Assigned: diogogmt)

Tracking

11 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Steps to reproduce:
1. Set element into fullscreen mode by calling element.mozRequestFullScreen()
2. Check window.innerHeight and window.outerHeight

Expected results:
window.innerHeight should have the same value as window.outerHeight since the element is in fullscreen mode, or innerHeight should be less than outerHeight, but not bigger.

Actual Results:
window.innerHeight is bigger than window.outerHeight by 6px


*Notes:
-> Here is a screen shot of the inner/outerHeight prior requesting fullscreen on the element: http://diogogmt.files.wordpress.com/2011/12/ff_windowheightinnerouter.png
-> Here is a screen shot of the inner/outerHeight when the element is in fullscreen mode: http://diogogmt.files.wordpress.com/2011/12/ff_windowheightinnerouter_fullscreen.png

Comment 1

7 years ago
Diogo -> Thanks for the report. Can you please provide a public URL or reduced test case that exhibits this issue. Note any changes that have to be made from a fresh profile.
I'm using this example to get the difference between the inner and outer height:
http://diogogmt.github.com/mozilla-central/windowInnerOuterHeight.html

Apparently this bug is being caused by Bug 633602, since I only get the difference between the heights when applying the mouselock patch.
Diogo, on OS X I see:

Unlocked/Not-FullScreen:
------------------------

window.outerWidth: 1215 window.outerHeight: 1115
window.innerWidth: 1215 window.innerHeight: 1028

Locked/FullScreen:
------------------
window.outerWidth: 2560 window.outerHeight: 1440
window.innerWidth: 2560 window.innerHeight: 1440
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Assignee: nobody → diogo.gmt
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.