HomePhabricator

Track document visibility in reading depth schema
6b16213ac756Unpublished

Authored by Jdlrobson on Feb 6 2017, 9:55 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Track document visibility in reading depth schema

When document becomes hidden/visible calculate milliseconds paused
and subtract this from totalLength upon logging pageUnloaded

If a user opens a link in a new tab and then tabs to it,
first paint will correspond to the time the tab was switched to.
We also have some special casing for the case where DomInteractive is
available but not first paint.

Bug: T155639
Change-Id: I762ec3fc91decf3cffa869dbd783faf62f01329a

Details

Committed
phuedxFeb 21 2017, 10:41 AM
Parents
rEWMV45fdc3bc707c: Introduce the reading depth schema
Branches
Unknown
Tags
Unknown
References
refs/changes/70/336670/11
ChangeId
I762ec3fc91decf3cffa869dbd783faf62f01329a