Open Bug 1902265 Opened 5 months ago Updated 2 months ago

Fullscreen PWAs are not shown in immersive mode

Categories

(Fenix :: Tabs, defect, P3)

All
Android
defect

Tracking

(firefox127 affected, firefox128 affected, firefox129 affected)

Tracking Status
firefox127 --- affected
firefox128 --- affected
firefox129 --- affected

People

(Reporter: petru, Unassigned)

References

Details

Attachments

(1 file)

Attached image PWAFullscreenIssues.gif

Issue seen in https://bugzilla.mozilla.org/show_bug.cgi?id=1889356#c7

2 issues:

  • fullscreen PWAs are not shown in immersive mode - system insets are still showing.
  • we show the "Entering full screen mode" when the PWA is tapped even if it is already in fullscreen

I think this is related to an issue I've been having with a PWA I make. In my manifest file I have "display": "fullscreen", and I've installed the PWA on Firefox, Chrome and Edge. In Chrome and Edge, when I cold launch the PWA, the system navigation and status bars fade out to create a fullscreen experience. On the Firefox PWA, they remain visible at all times. If I then leave Firefox PWA - either by returning to the homescreen or switching apps - and open it again, it fades out the system navigation and statues bars like Chrome and Edge do. This remains the case if I then leave and open the Firefox PWA again, or any of the other browsers'. Once I restart the Firefox PWA, it resets and goes back to not hiding the system UI until I leave and open again.

https://photos.app.goo.gl/oZQkzWUNzQrfPJuw8 - screenrecording showing these issues. I never get the unwanted "Entering full screen mode" toast though, unless I specifically call requestFullscreen

Upon further testing: if you've exited and re-opened the PWA so that the UI is hidden, if you then go fullscreen via requestFullscreen (what the fullscreen button in my screenrecording does), it doesn't do anything other than show the fullscreen toast. But if you then perform the Android back gesture on it, it reverts to the initial view of not hiding the system the UI. If you haven't done requestFullscreen though, and you go back when the app is in fullscreen, it just exits it which I think would be the expected behaviour

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: