Skip to content

Commit

Permalink
User prompt handler capabilities (#1791)
Browse files Browse the repository at this point in the history
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.

We also allow the possibility of multiple user prompts

The specifications allow one prompt per event loop, so instead of
assuming a single current user prompt, allow getting the user
prompt for the active browsing context's event loop.

---------

Co-authored-by: Henrik Skupin <mail@hskupin.info>
  • Loading branch information
jgraham and whimboo authored Apr 3, 2024
1 parent 6c86972 commit 43903d0
Showing 1 changed file with 286 additions and 115 deletions.
Loading

0 comments on commit 43903d0

Please sign in to comment.