#534: VisibilityStateEntry
Discussions
2021-01-Kronos
Rossen: David, there's a reply to your comment from the last time
David replies in https://github.com/w3ctag/design-reviews/issues/534#issuecomment-767216686
Rossen: also concerned about privacy. Pointed us to privacy section in page visibility spec. Could an author add entries that expose information that isn't currently detectable? Explainer says that this is the same information as page visibility.
David: same information, just with performance entries rather than events?
Rossen: ??? about ETW events in Windows, can be used for generic buffering of information. There's a hard requirement in that design that that they aren't used to drive any other behavior... so they might break.
... so when I read this... and hear David saying "they'd use the events for that case".... seems like they'd provide useful info to developers who want to optimize their pages, could also cause harm. On the other hand, we don't change the web platform that disruptively.
Rossen: if a window on Windows is minimized, and a user hovers and gets the preview, what does that imply about performance entries?
Rossen: seems like a good use case
David: I'm probably ok with closing this.
Rossen: throttling... other reasons for delays... not sure how it affects entry (or feature). If you have a process that's being suspended for some reason... when you're intending to navigate. E.g., on iOS, if I move from browser to different app, page load might be suspended by the OS. Then go back to Safari, and this is when they want the page visibility to fire... the intent of the proposal.
David: I think it should fire in that case... although maybe tab switching is a simpler case to think about?
OpenedJul 9, 2020
Saluton TAG!
I'm requesting a TAG review of VisibilityStateEntry.
Exposes the initial visibility state of the page plus any visibility state changes that the page goes through to the PerformanceObserver, with buffered flag support.
Further details:
We'd prefer the TAG provide feedback as (please delete all but the desired option):
💬 leave review feedback as a comment in this issue and @-notify @npm1