Skip to content

Should "traverse a history" check Document salvagability? #6045

Description

@domenic

https://html.spec.whatwg.org/multipage/browsing-the-web.html#traverse-the-history step 1 checks

If entry no longer holds a Document object

(slightly modified in #6039). I believe this is meant to capture the "evicted from bfcache" case.

However, @rakina noticed in #6039 (comment) that there are cases where we mark a document as unsalvagable, but don't immediately discard it. Notably, "abort a Document", i.e. if the user presses the stop button, or a navigation starts while a document is still loading, or window.stop().

And as far as I know, unsalvagability is also supposed to indicate "do not bfcache".

Maybe what's supposed to happen here is that unsalvageable documents get discarded when you navigate away from them? Hmm, yes, that looks to be the case: https://html.spec.whatwg.org/multipage/browsing-the-web.html#unloading-documents:concept-document-salvageable-8 .

So maybe there is no issue here. @rakina, can you check my reasoning?

Even so, we might want to add a note clarifying this situation.

Activity

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