whatwg / whatwg/html

Navigables reloading does not work

Open
#9,869 4 comments 1 reaction 1 assignee View on GitHub

@domenic is already working on this.

Since Nov 1, 2023.

topic: navigation
Dominant language
HTML
Stars
9.4k
Forks
3.2k
PR merge metrics
PR metrics pending

Description

What is the issue with the HTML Standard?

There is a bug in the navigable's reload procedure.

  1. reload calls apply the history step.
  2. apply the history step attempt to populate the history entry's document on step 12.6.7
  3. 12.6.7 says that completionSteps need to do following: set to queue a global task on the navigation and traversal task source given navigable's active window to run afterDocumentPopulated.
  4. queued task to run afterDocumentPopulated is never executed because it is queued on navigable's active window which is corresponding to document that is no longer active.
    (the document is no longer active because active session history's document got replaced during population of session history entry caused by pending reloading).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.