From d2887e53e73ec2680ea0b2259766a3e104e5574f Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 27 Mar 2024 02:28:13 +0000 Subject: [PATCH] Disable PageSwapEvent's activation on cross-origin redirects Closes #10196. --- source | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/source b/source index adf55beb190..a3d13510236 100644 --- a/source +++ b/source @@ -102459,9 +102459,20 @@ location.href = '#foo';
  • Let activation be null.

  • -

    If targetEntry's document's origin is same origin with - displayedDocument's origin, then: +

    If all of the following are true:

    + + + +

    then:

    1. @@ -102503,6 +102514,11 @@ location.href = '#foo';
    + +

    This means that a cross-origin redirect during a navigation would result in a + null activation in the old document's + PageSwapEvent, unless the new document is being restored from bfcache.

  • Fire an event named