From e91668d7f969bef6e88ee1a4fee881a40e6819b3 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Thu, 13 Jun 2019 18:09:44 -0700 Subject: [PATCH] Restore override URL concept for javascript: URLs This concept was deleted in 6440ccae73 along with "overridden overload", but it was discovered in #3989 that correct handling for javascript: URLs still depend on this concept. The spec around this area has changed quite a bit since then due to intermediate cleanups such as e13762fb62, so this is not a simple revert. Also, fix ungrammatical "append URL URL list" that was accidentally introduced in e13762fb62. Addresses some concern raised in #3989. --- source | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/source b/source index f3320584f81..ddf42d413cb 100644 --- a/source +++ b/source @@ -83493,9 +83493,11 @@ interface Location { // but see also Append the browsingContext's active - document's URL URL list.

+
  • Let address be browsingContext's active document's + URL.

  • + +
  • Append address to request's + URL list.

  • Let settings be browsingContext's active document's relevant settings object.

  • @@ -83527,6 +83529,9 @@ interface Location { // but see also
    response body is not yet specified, pending further investigation into user agent behavior. See issue #1129.

    + +

    When it comes time to initialize the Document object, use + address as the override URL.

    @@ -83582,9 +83587,17 @@ interface Location { // but see also

    If request is non-null, then set - document's URL to request's - current URL.

    +
  • +

    If an override URL is set for this navigation, then set document's + URL to the override URL.

    + +

    An override URL is set when executing a javascript: URL request.

    +
  • + +
  • Otherwise, if request is non-null, then set document's URL to request's current URL.

  • Otherwise, set document's URL to response's URL.