Open Bug 1516283 Opened 5 years ago Updated 2 years ago

Zoom isn't restored after exiting fullscreen if browser.ui.zoom.force-user-scalable = true

Categories

(Core :: Layout, defect, P3)

66 Branch
defect

Tracking

()

Tracking Status
firefox65 --- wontfix
firefox66 --- wontfix

People

(Reporter: csheany, Unassigned)

References

Details

(Whiteboard: [geckoview:p3][layout:p3])

User Agent: Mozilla/5.0 (Android 7.1.1; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0

Steps to reproduce:

With browser.ui.zoom.force-user-scalable set to true

1. Open a page with video (e.g. YouTube)
2. Zoom in
3. Enter fullscreen
4. Exit fullscreen



Actual results:

The page is zoomed out.


Expected results:

The page should still be zoomed in.
Hi and thanks for your report. 
I tried to reproduce your issue using Samsung Galaxy Tab S3(Android 8.0), Huawei P9 Lite(Android 6.0), OnePlus 5T (Android 8.1.0) and Motorola Nexus 6 (Android 7.1.1) on all branches (Nightly, Beta, Release) but I wasn't able. Can you make a video with your problem? Also if you have any additional information please let us know, thanks.
Flags: needinfo?(csheany)

Edit: The description should have also said that can't be zoomed in otherwise.

It happens consistently and is the only differnce I can think of compared to Bug 1511137.

Flags: needinfo?(csheany) → needinfo?(botond)

I am unable to reproduce this either. After exiting fullscreen, the page is zoomed in to the same level as it was before fullscreen.

Which Nightly were you testing with?

Flags: needinfo?(botond)

Nightly 66.0a1 (2019-01-14)

Are you entering fullscreen before or after the video is playing?

Is the video auto rotated?

With media.videocontrols.lock-video-orientation it doesn't happen.

(In reply to csheany from comment #4)

Nightly 66.0a1 (2019-01-14)

Ok, same.

Are you entering fullscreen before or after the video is playing?

I've tried both, no difference in behaviour.

Is the video auto rotated?

Yep.

One possible source of difference is screen size (phoen vs. tablet). Unfortunately, I have not been able to get my hands on a working Android tablet yet.

With YouTube or another site?

I was testing with YouTube. (Mobile site, now that I think of it. Perhaps I should test with "Request desktop site"?)

Just confirming mobile, desktop isn't affected.

I thought orientation might have been factor but I can also reprdouce starting in landscape.

What do you experience with w3schools.com/html/html5_video.asp

(In reply to csheany from comment #10)

What do you experience with w3schools.com/html/html5_video.asp

I can reproduce it on the desktop version of the site. Seems to be independent of browser.ui.zoom.force-user-scalable, which suggests it may a different issue from what you're seeing.

The issue that I'm seeing is an interaction between code to update the zoom level when changing orientation, and code to update the zoom level when entering/exiting fullscreen. Possibly the code to update the zoom level when changing orientation should be suppressed for orientation changes triggered by fullscreen entry/exit.

That would support my findings in comment 4 but is contrary to comment 9.

Should the summary be changed accordingly?

Botond is this also an issue with geckoview?

Flags: needinfo?(botond)

Is this something we want to tackle together with our other viewport fixes? CC Sean.

Flags: needinfo?(svoisen)

(In reply to Liz Henry (:lizzard) (use needinfo) from comment #14)

Botond is this also an issue with geckoview?

Yes, the issue is in code shared by Fennec and GeckoView.

(In reply to Andreas Bovens [:abovens] from comment #15)

Is this something we want to tackle together with our other viewport fixes?

FWIW, this is on my list of viewport-related issues to fix in the coming months, but given the low severity, it's not near the top of the list.

Flags: needinfo?(botond)
Priority: -- → P3
Whiteboard: [geckoview]

I'll keep note of it as a lower-priority work item per comment 16.

Flags: needinfo?(svoisen)
Whiteboard: [geckoview] → [geckoview][layout:p3]
Whiteboard: [geckoview][layout:p3] → [geckoview:p3][layout:p3]
Component: General → Audio/Video
See Also: → 1540615

This is most likely a layout bug, not a video bug.

Component: Audio/Video → Layout
Product: Firefox for Android → Core
Summary: Zoom isn't restored after exiting fullscreen if user-scalable=no → Zoom isn't restored after exiting fullscreen if browser.ui.zoom.force-user-scalable = true
Version: Firefox 66 → 66 Branch

Depending on Comment 9...

This may not be about zoom at all.

The summary should probably be edited differently.

I was going to leave it up to Botond.

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.