diff --git a/source b/source index 8d94ff454c8..0863c32b107 100644 --- a/source +++ b/source @@ -86412,8 +86412,8 @@ interface History { methods that are invoked on a timer, or from event listeners that are not triggered in response to a clear user action, or that are invoked in rapid succession.)

-
  • Let serializedData be ? - StructuredSerializeForStorage(data).

  • +
  • Let serializedData be + StructuredSerializeForStorage(data). Rethrow any exceptions.

  • Let newURL be document's URL.

  • @@ -88602,7 +88602,7 @@ interface BeforeUnloadEvent : Event { state.

  • serialized state, which is serialized - state or null, initially null.

  • + state, initially StructuredSerializeForStorage(null).

  • scroll restoration mode, a scroll restoration mode, initially "

    document state
    documentState
    - -
    serialized state
    -
    StructuredSerializeForStorage(null)

    For the URL, we do not use @@ -90186,9 +90183,6 @@ location.href = '#foo';

    navigable's active session history entry's document state
    -
    serialized state
    -
    StructuredSerializeForStorage(null)
    -
    scroll restoration mode
    navigable's active session history entry's scroll restoration mode
    @@ -91537,7 +91531,7 @@ location.href = '#foo';
  • Assert: locationURL is a URL.

  • Set entry's serialized state to - null.

  • + StructuredSerializeForStorage(null).

  • Let oldDocState be entry's document state.

  • @@ -92111,7 +92105,7 @@ location.href = '#foo';

    If targetEntry's document's origin is not oldOrigin, then set targetEntry's serialized state to - null.

    + StructuredSerializeForStorage(null).

    This clears history state when the origin changed vs a previous load of targetEntry without a redirect occuring. This can happen due to a change in CSP @@ -92696,12 +92690,9 @@ location.href = '#foo';

  • Let targetRealm be document's relevant realm.

  • -
  • Let state be null.

  • - -
  • If entry's serialized state is not - null, then set state to StructuredDeserialize(entry's

    Let state be StructuredDeserialize(entry's serialized state, targetRealm). If this throws - an exception, catch it and ignore the exception.

  • + an exception, catch it and let state be null.

  • Set document's history object's state to state.