From 0b91cd96afa39cd3ca18f5ece05e0a945834269f Mon Sep 17 00:00:00 2001 From: Anna Sato Date: Thu, 9 Apr 2026 10:29:17 +0000 Subject: [PATCH 1/2] Introduce WebSocket context cleanup steps --- source | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source b/source index 2d02b12fa7a..b871c596d4d 100644 --- a/source +++ b/source @@ -113126,11 +113126,12 @@ new PaymentRequest(…); // Allowed to use
  • For each WebSocket object webSocket whose relevant global - object is window, make disappear webSocket.

    - -

    If this affected any WebSocket objects, then make document - unsalvageable given document and "websocket".

    + object is window:

    +
      +
    1. If document's salvageable + state is true, then fail the websocket connection given webSocket.

    2. +
    3. Otherwise, make disappear webSocket.

    4. +
  • For each WebTransport object transport whose relevant global From a4d2ee06f23d15f9c4704973657d6d3d45a6ab8a Mon Sep 17 00:00:00 2001 From: Anna Sato Date: Mon, 13 Apr 2026 15:05:45 +0000 Subject: [PATCH 2/2] run the cleanup steps instead of failing the connection --- source | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source b/source index b871c596d4d..5fd56053450 100644 --- a/source +++ b/source @@ -4738,6 +4738,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

    @@ -113129,7 +113130,8 @@ new PaymentRequest(…); // Allowed to use object is window:

    1. If document's salvageable - state is true, then fail the websocket connection given webSocket.

    2. + state is true, then run the context cleanup + steps given webSocket.

    3. Otherwise, make disappear webSocket.