From 1e6e44cb6740b839fa93863107e76d232c1fd3e5 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Mon, 23 Mar 2026 14:10:49 +0100 Subject: [PATCH] Pass `targetSnapshotParams` to evaluate a `javascript:` URL Fixes #12563. Co-Authored-By: Claude Opus 5.5 --- source | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/source b/source index 1ad6fe46243..92c8ca015c6 100644 --- a/source +++ b/source @@ -108745,9 +108745,9 @@ location.href = '#foo';
  • Queue a global task on the navigation and traversal task source given navigable's active window to navigate to a javascript: URL given navigable, - request, historyHandling, initiatorOriginSnapshot, - userInvolvement, cspNavigationType, initialInsertion, and - navigationId.

  • + request, historyHandling, targetSnapshotParams, + initiatorOriginSnapshot, userInvolvement, cspNavigationType, + initialInsertion, and navigationId.

  • Return.

  • @@ -109140,10 +109140,11 @@ location.href = '#foo';

    To navigate to a javascript: URL, given a navigable targetNavigable, a request request, a - history handling behavior historyHandling, an origin - initiatorOrigin, a user navigation involvement userInvolvement, - a string cspNavigationType, a boolean initialInsertion, and a - navigation ID navigationId:

    + history handling behavior historyHandling, a target snapshot + params targetSnapshotParams, an origin initiatorOrigin, + a user navigation involvement userInvolvement, a string + cspNavigationType, a boolean initialInsertion, and a navigation + ID navigationId:

    1. Assert: historyHandling is "

    2. Let newDocument be the result of evaluating a javascript: URL given targetNavigable, - request's URL, initiatorOrigin, - userInvolvement, and navigationId.

    3. + request's URL, + targetSnapshotParams, initiatorOrigin, userInvolvement, and + navigationId.

    4. If newDocument is null:

      @@ -109284,7 +109286,8 @@ location.href = '#foo';

      To evaluate a javascript: URL given a navigable - targetNavigable, a URL url, an origin + targetNavigable, a URL url, a target snapshot + params targetSnapshotParams, an origin newDocumentOrigin, a user navigation involvement userInvolvement, and a navigation ID navigationId: