Skip to content

Need a concept for closed browsing contexts for bfcache #4428

Closed

Description

@annevk

I initially thought we needed another state only due to the work happening in #3740, but it turns out that child browsing contexts can actually be preserved when navigating. How else could you navigate back with them still being there? (Thanks Nika for pointing this out!)

They mostly need to behave identically to discarded browsing contexts, except that we cannot actually discard them. (I don't have a complete understanding of when the difference matters. It's mostly that they still need to be there.)

(To be clear, this "closed" concept is slightly different from the "is closing" concept, which is solely relevant for close(). And it's reversible in that the browsing context can be "opened" again.)

cc @mystor @bzbarsky

Activity

  1. domenic commented on Mar 4, 2022

    @domenic
    Member

    What would this state be used for? I think the fact that the documents are not fully active causes the right consequences for descendants of bfcached pages, usually.

  2. annevk commented on Mar 11, 2022

    @annevk
    MemberAuthor

    It's not so much about state, it's more that the current model doesn't support this, as far as I can tell. How are they kept around? (See also the other issue where we discussed about the owner of nested browsing contexts.)

  3. domenic commented on Mar 14, 2022

    @domenic
    Member

    Ah, I see. In that case this too is solved by #6315, since "document's browsing context" after the rewrite becomes a strong reference instead of an indirect one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions