From 472a85614f487ccb88850f70120a66dbf19da683 Mon Sep 17 00:00:00 2001
From: Domenic Denicola
URL, a URL
URL, a URL
+ +This doesn't necessarily
+ match the document's URL. In general, to find the "current URL" prefer using the
+ appropriate Document
's URL; a
+ session history entry's URL is only to be used for
+ session history traversal and restoration.
document, a Document
or null
Let serializedData be StructuredSerializeForStorage(data). Rethrow any exceptions.
Let newURL be the session history's current entry's - URL.
Let newURL be document's URL.
If url is not null, then:
@@ -85086,52 +85095,56 @@ interface Location { // but see also Thereplace()
method intentionally has
no security check.
- When the reload()
- method is invoked, the user agent must run the appropriate steps from the following list:
Location
object's relevant Document
is
- nullReturn.
The reload()
method
+ steps are:
Location
object's relevant Document
's origin is not same origin-domain with the
- entry settings object's originLet document be this's relevant
+ Document
.
Throw a "SecurityError
" DOMException
.
Let browsingContext be document's browsing context.
resize
event in response to the user resizing the browsing
- contextIf document is null, then return.
Repaint the browsing context and return.
If document's origin is not
+ same origin-domain with the entry settings object's origin, then throw a
+ "SecurityError
" DOMException
.
iframe
srcdoc
documentIf this's relevant agent's event loop's currently running task is the
+ dispatch of a resize
event in response to the user resizing
+ the browsing context, then repaint the browsing context and
+ return.
Reprocess the iframe
- attributes of the browsing context's container.
If document is an iframe
srcdoc
document, then reprocess the iframe
attributes of browsingContext's
+ container and return.
Navigate browsingContext to
+ browsingContext's session history's current entry's URL, with exceptionsEnabled set to true, historyHandling set to "reload
",
+ and the source browsing context set to browsingContext.
Navigate the browsing context to
- this Location
object's relevant Document
's URL, with exceptionsEnabled set to
- true, historyHandling set to "reload
", and the source browsing context set to the
- browsing context being navigated.
This is different than navigating to document's URL, due to the potential for mismatches caused by document.open()
.
When a user requests that the active document of a browsing context be reloaded through a user interface element, the user agent should navigate +
resize
event in response to the user resizing the browsing
+ contextIf document is an iframe
srcdoc
document, then reprocess the iframe
attributes of browsingContext's
- container and return.
Repaint the browsing context and return.
Navigate browsingContext to
- browsingContext's session history's current entry's URL, with exceptionsEnabled set to true, historyHandling set to "reload
",
- and the source browsing context set to browsingContext.
iframe
srcdoc
documentReprocess the iframe
+ attributes of the browsing context's container.
This is different than navigating to document's URL, due to the potential for
+ Navigate the browsing context to
+ this This is different than navigating to the current
+ session history entry's URL, due to the potential for mismatches caused by Location
object's relevant Document
's URL, with exceptionsEnabled set to
+ true, historyHandling set to "reload
", and the source browsing context set to the
+ browsing context being navigated.document.open()
.
When a user requests that the active document of a browsing context be reloaded through a user interface element, the user agent should navigate