Skip to content

Fix javascript: URL evaluation origin variable#8711

Merged
domenic merged 1 commit intomainfrom
js-url-origin-var
Jan 12, 2023
Merged

Fix javascript: URL evaluation origin variable#8711
domenic merged 1 commit intomainfrom
js-url-origin-var

Conversation

@domenic
Copy link
Copy Markdown
Member

@domenic domenic commented Jan 12, 2023

Although the variable is called initiatorOrigin at the call site, inside the "evaluate a javascript: URL" algorithm the parameter is actually named newDocumentOrigin, so that's the name that the algorithm should use.

Noticed in https://github.com/whatwg/html/pull/8447/files#r1067234151.

/cc @wanderview as this will presumably cause a small merge conflict with #8447.


/browsing-the-web.html ( diff )

Although the variable is called initiatorOrigin at the call site, inside the "evaluate a javascript: URL" algorithm the parameter is actually named newDocumentOrigin, so that's the name that the algorithm should use.

Noticed in https://github.com/whatwg/html/pull/8447/files#r1067234151.
@domenic domenic merged commit c5448e9 into main Jan 12, 2023
@domenic domenic deleted the js-url-origin-var branch January 12, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants