[wpt-sync] Sync PR 46441 - [WebDriver BiDi] Fix test for window.prompt opened
Categories
(Remote Protocol :: WebDriver BiDi, task, P4)
Tracking
(firefox128 fixed)
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 46441 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/46441
Details from upstream follow.
Nikolay Vitkov <nvitkov@chromium.org> wrote:
[WebDriver BiDi] Fix test for window.prompt opened
In the HTML IDL - https://html.spec.whatwg.org/#the-window-object the function is defined as:
prompt(optional DOMString message = "", optional DOMString default = "");
This means that if no value is passed it get empty string.
I also observed that all values passed to the second parameter gettoString
(ed) (I think this is the algorithm that does it https://webidl.spec.whatwg.org/#js-DOMString),
Verified this behavior for Chrome, Firefox and Safari.
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 1•11 months ago
|
||
Assignee | ||
Comment 2•11 months ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 10 subtests
Status Summary
Firefox
OK
: 1
PASS
: 7
FAIL
: 3
Chrome
OK
: 1
PASS
: 7
FAIL
: 3
Safari
OK
: 1
ERROR
: 10
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /webdriver/tests/bidi/browsing_context/user_prompt_opened/user_prompt_opened.py [wpt.fyi]
- test_prompt_type[prompt]:
FAIL
(Chrome:FAIL
, Safari:ERROR
) - test_prompt_default_value[undefined]:
FAIL
(Chrome:FAIL
, Safari:ERROR
) - test_prompt_default_value[empty string]:
FAIL
(Chrome:FAIL
, Safari:ERROR
)
- test_prompt_type[prompt]:
Comment 4•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5582e885b91d
https://hg.mozilla.org/mozilla-central/rev/a73ef30d5b5b
Description
•