page-lifecycle icon indicating copy to clipboard operation
page-lifecycle copied to clipboard

On iPhone transition to "passive" does not happen on `blur` event

Open naruaway opened this issue 5 years ago • 3 comments

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 avatar Jun 16 '20 14:06 naruaway

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).

:memo: 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.

googlebot avatar Jun 16 '20 14:06 googlebot

@googlebot I signed it!

naruaway avatar Jun 16 '20 15:06 naruaway

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

googlebot avatar Jun 16 '20 15:06 googlebot