WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 201737
202399
iOS 13: Page Visibility API visibilitychange notification incorrectly called with incorrect state with standalone safari apps
https://bugs.webkit.org/show_bug.cgi?id=202399
Summary
iOS 13: Page Visibility API visibilitychange notification incorrectly called ...
djonesuk
Reported
2019-10-01 04:29:48 PDT
BACKGROUND: The visibilitychange javascript notification allows a web developer to know if the user has stopped viewing a site and then returned to it. It allows script to run when the user returns to the site. BUG: On iOS 13, If you save multiple sites to your home screen, opening one will fire the visibilitychange notification as visible on all others that are still in the App Switcher (Previously opened) even though they are in the Hidden state. This results in any previously opened web app to fire it's visibilitychange code thinking it is Visible even though the visibility of that page has not actually changed at all and it is Hidden. HOW TO REPRODUCE: I have created 2 web pages to demo this:
http://venderbase.com/vischange.html
A simple website that subscribes to the visibilitychange notification and updates the display to show that visibility had changed with the state and time.
http://venderbase.com/nojs.html
Doesn't do anything. It has no Javascript code whatsoever. Navigate to the above 2 websites and add them to the Home Screen from the Share menu. From the home screen, open the vischange website. From the home screen, open the nojs website. Go back to home screen and reopen nojs. Go back to home screen and reopen nojs. Repeat opening and closing nojs a few times. Open vischange again and you will see that it's visibilitychange notification had been fired for every time you opened nojs even though visibility hadn't changed for vischange. This sounds very similar to an iOS 11 bug that was reported and then fixed in iOS 12
Bug 180523
I've reported this to Apple Feedback Assistant but not had any recognition of it yet. It's a complete app breaker for me since iOS 13.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2019-10-02 13:44:06 PDT
> I've reported this to Apple Feedback Assistant but not had any recognition of it yet. It's a complete app breaker for me since iOS 13.
Could you please post the feedback number here?
Radar WebKit Bug Importer
Comment 2
2019-10-02 13:44:19 PDT
<
rdar://problem/55922693
>
djonesuk
Comment 3
2019-10-02 14:07:07 PDT
Apple feedback FB7144365 & FB7007530
Brent Fulgham
Comment 4
2022-02-12 21:09:44 PST
*** This bug has been marked as a duplicate of
bug 201737
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug