Open Bug 712225 Opened 13 years ago Updated 1 year ago

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

Categories

(Core :: DOM: Core & HTML, defect)

All
Android
defect

Tracking

()

REOPENED

People

(Reporter: diogogmt, Unassigned, NeedInfo)

References

Details

Attachments

(1 file)

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
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

This is still happening on android, somehow.

Assignee: diogo.gmt → nobody
Status: ASSIGNED → NEW
Attachment #9204860 - Attachment mime type: text/plain → text/html
Component: DOM: Core & HTML → Widget: Android
Flags: needinfo?(emilio)
OS: Linux → Android
Hardware: x86_64 → All
Version: 11 Branch → Trunk

Moving all open Core::Widget: Android bugs to GeckoView::General (then the triage owner of GeckoView will decide which ones are valuable and which ones should be closed).

Component: Widget: Android → General
Product: Core → GeckoView
Version: Trunk → unspecified

Not applicable to GeckoView

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID

Why not? I reproduced comment 5 on Fenix.

Flags: needinfo?(etoop)
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)

Why not? I reproduced comment 5 on Fenix.

sorry we thought if it was a problem it would have been reported somewhere else :) but I guess this bug was the place. Emilio do you have a sense what could be going on here?

Flags: needinfo?(etoop)

It might be floating round issue such as bug 1657380.

I can reproduce this on Windows 10 + Surface Pro 4 when display's scale setting is 275%.

This doesn't depends on Android since I can reproduce this on Windows. I guess that this is same issue as bug 1657380 (mAppUnitsPerDevPixelAtUnitFullZoom isn't float), so I move this to "DOM: Core & HTML" again.

Component: General → DOM: Core & HTML
Product: GeckoView → Core
Severity: normal → S3
See Also: → 1818953
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: