From 2c5a41b73c4b8d2f3dbf176bb880a7e67443be30 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 10 Apr 2025 11:08:29 +0900 Subject: [PATCH] Fix document access in shared history push/replace steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #11199. As discussed there, there are deeper issues around whether a History object is associated with a Window vs. History object, and how that intersects with #3267 around Window object reuse. However, in the meantime, this makes the traversal from History → Document consistent with the rest of the specification, and stops using the undefined concept of "history's associated Document". --- source | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source b/source index 17ac4d82005..bd365640f77 100644 --- a/source +++ b/source @@ -93756,7 +93756,8 @@ interface History { url, and a history handling behavior historyHandling, are:

    -
  1. Let document be history's associated Document.

  2. +
  3. Let document be history's relevant global object's + associated Document.

  4. If document is not fully active, then throw a "SecurityError" DOMException.