Implement Page Visibility
Opened this issue · 0 comments
gterzian commented
Spec: https://html.spec.whatwg.org/multipage/interaction.html#page-visibility
There are at least two places where we could run the update-the-visibility-state
steps:
When the document loads:
servo/components/script/dom/document.rs
Line 695 in 10ec856
Which would match: https://html.spec.whatwg.org/multipage/browsing-the-web.html#updating-the-document:update-the-visibility-state
And when the document unloads:
servo/components/script/dom/document.rs
Line 2221 in 10ec856
which would match: https://html.spec.whatwg.org/multipage/document-lifecycle.html#unloading-documents:update-the-visibility-state