From 1db528db1a0580b1105b64834c04f34695ae79f7 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 17 Jul 2024 18:35:55 +0900 Subject: [PATCH] Allow window.close() to work in prerendering navigables It turns out this only requires deleting text, as everything already works. For example, prerendering navigables always have a single-entry session history, so they are always script-closeable. --- prerendering.bs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/prerendering.bs b/prerendering.bs index b583f85..bb24ab7 100644 --- a/prerendering.bs +++ b/prerendering.bs @@ -676,19 +676,6 @@ To get the supported loading modes for a [=response=] |respons 1. Return a [=list=] containing all elements of |slmHeader| that are [=structured header/tokens=]. -

Preventing nonsensical behaviors

- -Some behaviors might make sense in most [=navigables=], but do not make sense in [=prerendering navigables=]. This section enumerates specification patches to enforce such restrictions. - -

APIs for creating and navigating browsing contexts by name

- -Modify the definition of script-closable to prevent window closing while in a [=prerendering navigable=]: - -A [=navigable=] is script-closable if either of the following is true: - -* it is an [=auxiliary browsing context=] that was created by script (as opposed to by an action of the user); or -* it is a [=top-level traversable=] that is not a [=prerendering traversable=] and whose [=traversable navigable/session history entries=]'s [=list/size=] is 1. -

Preventing intrusive behaviors

Various behaviors are disallowed in [=prerendering navigables=] because they would be intrusive to the user, since the prerendered content is not being actively interacted with.