Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Page Visibility #32062

Open
gterzian opened this issue Apr 12, 2024 · 0 comments
Open

Implement Page Visibility #32062

gterzian opened this issue Apr 12, 2024 · 0 comments
Labels
A-content/script Related to the script thread

Comments

@gterzian
Copy link
Member

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:

task!(fire_pageshow_event: move || {

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:

// TODO Step 6, document visibility steps.

which would match: https://html.spec.whatwg.org/multipage/document-lifecycle.html#unloading-documents:update-the-visibility-state

@gterzian gterzian added B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet A-content/script Related to the script thread and removed B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-content/script Related to the script thread
Projects
None yet
Development

No branches or pull requests

1 participant