8000 Potential error in connection between "Document destroy" and "Document abort" algorithms · Issue #9148 · whatwg/html · GitHub
[go: up one dir, main page]

Skip to content

Potential error in connection between "Document destroy" and "Document abort" algorithms #9148

@kalenikaliaksandr

Description

@kalenikaliaksandr

Seems like there is an issue in https://html.spec.whatwg.org/multipage/document-lifecycle.html#destroy-a-document that "document destroy" algorithm can call "document abort" on navigables with already nulled active documents of descendant navigables:

  1. Destroy the active documents of each of document's descendant navigables.

after recursive destroy on step 1 all descendant navigables will have document=null in active session history because of step 7:

  1. Set document's node navigable's active session history entry's document state's document to null.

and then on step four of initial destroy call

  1. Abort document.

abort will fail to access active document for a child navigable here because it was nulled before on step 7 in destroy steps:

  1. Abort the active documents of each of document's descendant navigables

Questions:
Is null check for active document assumed here? If so maybe it worth to mention null check explicitly.
if this supposed to work without null check on active document then there might be param whether abort should go recursively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0