Chromium Code Reviews
DescriptionLet AutoplayUmaHelper listen to visibilitychange instead of unload
Using window unload listeners is both unreliable and slowing natigating
away. This CL switches the AutoplayUmaHelper to use the page visibility
API instead of listening to window unload event.
BUG=653473
Committed: https://crrev.com/a93cc968201804405f261ece6fee30b660255ec2
Cr-Commit-Position: refs/heads/master@{#434272}
Patch Set 1 #
Total comments: 2
Patch Set 2 : nit #Patch Set 3 : added test #Patch Set 4 : ContextLifecycleObserver #
Total comments: 2
Patch Set 5 : nit #
Messages
Total messages: 22 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||