whatwg / whatwg/html

Disallow XHRs after unload

Open
#3,333 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs implementer interest topic: fetch topic: navigation
Dominant language
HTML
Stars
9.4k
Forks
3.2k
PR merge metrics
PR metrics pending

Description

We ran into an edge case where calling XHR from within onabort handler of another XHR while navigating away -- causes a crash:
https://bugs.chromium.org/p/chromium/issues/detail?id=797675
https://chromium-review.googlesource.com/c/chromium/src/+/851113

Would we nice if the spec explicitly allows ignoring XHRs that are queued late in "end of life" -- such as after unload has fired.
Thoughts?

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.

Research direction

Start by reviewing Chromium issue 797675 and Chromium change 851113, then locate the HTML Standard sections covering XHR and unload behavior. The issue needs a decided specification change defining whether late XHRs may be ignored after unload; completion would require agreement on and documenting that behavior in the standard.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.