@@ -10474,13 +10474,18 @@ <h3>User Prompt Handler</h3>
10474
10474
"< code > default</ code > ", "< code > prompt</ code > "».
10475
10475
10476
10476
< p class ="note "> The "< code > default</ code > " type represents a fallback
10477
- when no specific handler is defined for a given prompt type. The
10478
- "< code > beforeUnload</ code > " prompt type does not use this default
10479
- handler, but instead falls back to the "< code > accept</ code > " handler
10480
- if no more specific handler is defined. This is because HTTP-only
10481
- sessions do not allow the "< code > beforeUnload</ code > " handler to be
10482
- customized, and enabling other protocols isn't expected to change
10483
- the user prompt handling as a side effect.
10477
+ when no specific handler is defined for a given prompt type, including
10478
+ the "< code > beforeUnload</ code > " prompt type. It can only be set if the
10479
+ unhandled prompt behavior is a < a data-cite =infra > map</ a > which
10480
+ [=map/contains=] "< code > default</ code > ". For HTTP-only sessions setting
10481
+ unhandled prompt behavior as a string value, the value will be assigned to
10482
+ the internal type "< code > fallbackDefault</ code > ". The
10483
+ "< code > fallbackDefault</ code > " value is not used for the
10484
+ "< code > beforeUnload</ code > " prompt type, instead it falls back to the
10485
+ "< code > accept</ code > " handler. This is because HTTP-only sessions do not
10486
+ allow the "< code > beforeUnload</ code > " handler to be customized, and enabling
10487
+ other protocols isn't expected to change the user prompt handling as a
10488
+ side effect.
10484
10489
10485
10490
< p > To < dfn > deserialize as an unhandled prompt behavior</ dfn > given
10486
10491
argument < var > value</ var > :
@@ -10655,7 +10660,7 @@ <h3>User Prompt Handler</h3>
10655
10660
and [=prompt handler configuration/notify=] false.
10656
10661
10657
10662
< li > < p > If < var > handlers</ var > contains "< code > fallbackDefault</ code > "
10658
- return < var > handlers</ var > ["< code > default </ code > "].
10663
+ return < var > handlers</ var > ["< code > fallbackDefault </ code > "].
10659
10664
10660
10665
< li > < p > Return a < a > prompt handler
10661
10666
configuration</ a > with [=prompt handler
0 commit comments