Closed Bug 1378982 Opened 7 years ago Closed 3 years ago

mozRequestFullScreen While Zoomed Causes Unexpected Results in iframes

Categories

(Firefox for Android Graveyard :: Toolbar, defect, P3)

54 Branch
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: a_blue_crayon, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce:

https://jsfiddle.net/8h9eokmt/2/

*Tested in Firefox 54.0.1 on a Nexus 6 running Android version 7.0*

1. Pinch zoom the page over the cyan box (results section of the fiddle).

-Note that the page should have a good amount of space to scroll left and up, now.

2. Tap the cyan box (runs mozRequestFullScreen on the iframe's documentElement)


Actual results:

While the iframe is fullscreen, it will start out looking correct (cyan box sits in top-left corner while the rest of the screen is blue).

-Touching the cyan box at this point will not trigger a click/touch event, but instead click the jsfiddle page. You can even click within the jsfiddle code behind the fullscreen element and edit it!

-In order to trigger a click/touch event on the cyan box, you must first scroll the page all the way to the top left (note that it won't look like any scrolling is occurring). It seems that the fullscreen element is located at the top left, even though this isn't true, visually.

-If, while fullscreen, the page remains untouched for 10~20 seconds, the fullscreen element will jump to the top left of the page. Any scrolling will return the element to being at the top left of the screen.

Side note: mozRequestFullScreen on Firefox for Android doesn't reset the zoom level while zoomed, but does prevent further zooming in and out, which can be very counter-intuitive for a user experience. It should either force a specific zoom level (check same fiddle in chrome) or still allow zooming while fullscreen.


Expected results:

When an iframe requests fullscreen:

It should properly occupy the screen space and allow interaction (touch/click events).

The parent of the fullscreen element should not receive any touch/click interaction. 

The fullscreen element should either be at the default zoom level, or retain the ability to zoom in/out.
I can reproduce this on my device. It is pretty strange behaviour. We have some other related bugs with zooming and fullscreen, I think.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
See Also: → 1296776
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.