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:
Родитель
e98aceb981
Коммит
e8419f85b6
|
@ -1,2 +1,2 @@
|
|||
1216
|
||||
Changed: lushnikov@chromium.org Mon 30 Nov 2020 09:59:07 AM PST
|
||||
1217
|
||||
Changed: dgozman@gmail.com Mon Nov 30 18:45:31 PST 2020
|
||||
|
|
|
@ -773,9 +773,13 @@ class Dialog {
|
|||
const type = prompt.args.promptType;
|
||||
switch (type) {
|
||||
case 'alert':
|
||||
case 'alertCheck':
|
||||
return new Dialog(prompt, 'alert');
|
||||
case 'prompt':
|
||||
return new Dialog(prompt, 'prompt');
|
||||
case 'confirm':
|
||||
return new Dialog(prompt, type);
|
||||
case 'confirmCheck':
|
||||
return new Dialog(prompt, 'confirm');
|
||||
case 'confirmEx':
|
||||
return new Dialog(prompt, 'beforeunload');
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче