From 3922f56e9deefa5cef0b126cf4ec3b39b102b82d Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 9 Feb 2024 13:48:40 +0000 Subject: [PATCH 1/9] Rewrite the user prompt handler configuration to allow overrides The idea is that for BiDi we'll accept objects like: { "alert": "dismiss", "beforeUnload": "ignore" } to allow different handling per prompt type, whilst falling back to the appropiate defaults to maintain the current behaviour for implementations that don't support BiDi. --- index.html | 372 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 259 insertions(+), 113 deletions(-) diff --git a/index.html b/index.html index 7dbea643..8e377df3 100644 --- a/index.html +++ b/index.html @@ -1569,7 +1569,7 @@

Capabilities

"unhandledPromptBehavior" string Describes the session's user prompt handler. - Defaults to the dismiss and notify state. + Defaults to "dismiss and notify". @@ -2132,6 +2132,11 @@

Processing capabilities

used. The intent is that if this is not possible a new session will not be established. +
"userPromptHandler" +

If check user prompt handler matches + with value is false, return success with + data null. +

Otherwise