browser(firefox): support alertCheck and confirmCheck dialogs (#4553)

These are shown with "prevent this page from showing more dialogs" checkbox.
This commit is contained in:
Dmitry Gozman 2020-11-30 20:05:15 -08:00 committed by GitHub
parent e98aceb981
commit e8419f85b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -1,2 +1,2 @@
1216 1217
Changed: lushnikov@chromium.org Mon 30 Nov 2020 09:59:07 AM PST Changed: dgozman@gmail.com Mon Nov 30 18:45:31 PST 2020

View File

@ -773,9 +773,13 @@ class Dialog {
const type = prompt.args.promptType; const type = prompt.args.promptType;
switch (type) { switch (type) {
case 'alert': case 'alert':
case 'alertCheck':
return new Dialog(prompt, 'alert');
case 'prompt': case 'prompt':
return new Dialog(prompt, 'prompt');
case 'confirm': case 'confirm':
return new Dialog(prompt, type); case 'confirmCheck':
return new Dialog(prompt, 'confirm');
case 'confirmEx': case 'confirmEx':
return new Dialog(prompt, 'beforeunload'); return new Dialog(prompt, 'beforeunload');
default: default: