Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Conversation

@naruaway
Copy link

On iPhone (tested in iOS simulator 12.2), document.hasFocus() returns true even during onblur handler.
Because of this, active -> passive transition is not happening when going to "list of tabs" view.

This fix is overriding document.hasFocus() while handling onblur so that it will be always treated as "transitioning to passive"

naruaway added 2 commits June 16, 2020 22:04
On iPhone, `document.hasFocus()` returns `true` on `blur` event when
switching to "list of tabs" view
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@naruaway
Copy link
Author

@googlebot I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@naruaway naruaway changed the title On iPhone, passive transition does not happen on blur event On iPhone transition to "passive" does not happen on blur event Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants