standalone PWAs don't fire focus/blur or visibilitychanged events

UNCONFIRMED
Unassigned

Status

()

Firefox for Android
Web Apps
UNCONFIRMED
4 months ago
2 months ago

People

(Reporter: Jovan Gerodetti, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 months ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20170810180547

Steps to reproduce:

1. add a site to the homescreen in standalone mode
2. launch the PWA
2. switch to an other app or the homescreen


Actual results:

No window focus/blur or visibilitychanged events are fired when the visibility status of the activity changes. Also document.hidden is always false.


Expected results:

document.hidden should be set to true and the blur event as well as the visibilitychanged event should fire. The focus and visibilitychanged event should also fire when the activity moves back to the foreground.

Comment 1

3 months ago
Hi Ben
please help advise
Flags: needinfo?(bfrancis)
Hi, sorry all I know is that on B2G we used mozbrowservisibilitychange events on the Browser API and some of that code was recently removed in bug 1368712. I would have thought this would be different for Android though.
Flags: needinfo?(bfrancis)
You need to log in before you can comment on or make changes to this bug.