-
Notifications
You must be signed in to change notification settings - Fork 72
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
Page Lifecycle #87
Comments
This comment has been minimized.
This comment has been minimized.
Hey folks, @rakina is working on improving HTML's bfcache specification, and one of the things that would be good is to clarify the interaction with page lifecycle. (E.g., integrating https://wicg.github.io/page-lifecycle/#html-bfcache-dfn with some of the discussion in whatwg/html#5879 (comment).) We're wondering where Page Lifecycle sits on the WHATWG "multi-implementer interest" spectrum, given Mozilla's previous helpful reviews, but also this issue being open, and there being no non-Chrome implementations. I can imagine three end states:
Figuring out what path we're going to take here would benefit a lot from figuring out Mozilla's standards-position on Page Lifecycle, so we'd love your thoughts! |
@smaug---- and I discussed this a bit and overall this seems reasonable. Integration with HTML seems good, especially with regards to constraining the "final callback". (I skimmed the explainer, but I didn't see what would happen with the various dialogs pages can spawn and such. And there might be more APIs we want to limit during freezing/teardown, e.g., notifications.) We would like to hear from @rniwa and others at Apple as they had concerns in the past. |
Our biggest concern was "discard" event which was meant to be dispatched right before we throw away a web page. It looks like that got replaced by "freeze" event, which gets dispatched right before we "freeze" a background tab. We'd have to think about implications of that approach. Running more scripts just as we try to "freeze" a process may be problematic as well. |
@domenic, I see that you have done some housekeeping on the spec, but it otherwise hasn't moved in a few years. Is this still a going concern, or has it moved into back-forward specification work on HTML? |
This is still a going concern. Essentially Chrome on Android is exposing a few extra APIs for background-tab freezing, such as I believe other browsers might have some sort of background-tab freezing, at least on mobile, but do not expose APIs to developers for it. We're currently keeping the spec in a holding pattern, trying to do a reasonable amount of maintenance, so that if other browsers do want to expose such APIs for their functionality, we have laid out a reasonable path and can use the spec and its repo as a collaboration point. /cc @shaseley @chhamilton who are closer to the project and may be able to expand or correct me. |
+1 to what @domenic said. We'll also be looking at discarding again soon, and we'll evaluate if any additional API surface is needed, but the initial thinking is that |
Request for Mozilla Position on an Emerging Web Specification
Other information
The proposal needs still reviewing. And need to be careful whether it works well enough with bfcache (it is a Google proposal and blink doesn't have bfcache).
The text was updated successfully, but these errors were encountered: