GeckoView sends the standard [simple dialogs](https://w3c.github.io/webdriver/webdriver-spec.html#user-prompts), `prompt`, `alert`, `confirm`, used by WebDriver, but it also sends additional prompt types such as `choice` and `datetime`. Some of these [additional prompt types](https://searchfox.org/mozilla-central/source/mobile/android/components/geckoview/GeckoViewPrompt.jsm#77-81,126,186,324,349,648) occur when a form field is focused. For example, entering a `select` HTML form field will cause a `choice` prompt to populate. This can cause unexpected prompts to appear in Marionette, because it isn't a simple dialog. Presently, only simple dialogs are collected for Marionette to use. An [example test](https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/selectors/focus-visible-002.html) that will cause the unexpected prompt behavior in Marionette, if all prompt types are available, is `wpt /css/selectors/focus-visible-002.html `. This test will cause a `datetime` prompt to populate. `GeckoViewPrompterParent.jsm` has an `isDialog` property that is currently used to prevent passing on these additional prompt types for Marionette to use.
Bug 1761480 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
GeckoView sends the standard [simple dialogs](https://w3c.github.io/webdriver/webdriver-spec.html#user-prompts), `prompt`, `alert`, `confirm`, used by WebDriver, but it also can send additional prompt types such as `choice` and `datetime`. Some of these [additional prompt types](https://searchfox.org/mozilla-central/source/mobile/android/components/geckoview/GeckoViewPrompt.jsm#77-81,126,186,324,349,648) occur when a form field is focused. For example, entering a `select` HTML form field will cause a `choice` prompt to populate. This can cause unexpected prompts to appear in Marionette, because it isn't a simple dialog. Presently, only simple dialogs are collected for Marionette to use. An [example test](https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/selectors/focus-visible-002.html) that will cause the unexpected prompt behavior in Marionette, if all prompt types are available, is `wpt /css/selectors/focus-visible-002.html `. This test will cause a `datetime` prompt to populate. `GeckoViewPrompterParent.jsm` has an `isDialog` property that is currently used to prevent passing on these additional prompt types for Marionette to use.