Closed Bug 1898353 Opened 11 months ago Closed 11 months ago

[wpt-sync] Sync PR 46441 - [WebDriver BiDi] Fix test for window.prompt opened

Categories

(Remote Protocol :: WebDriver BiDi, task, P4)

task

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
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 get toString(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.

Component: web-platform-tests → WebDriver BiDi
Product: Testing → Remote Protocol

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

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5582e885b91d [wpt PR 46441] - [WebDriver BiDi] Fix test for window.prompt opened, a=testonly https://hg.mozilla.org/integration/autoland/rev/a73ef30d5b5b [wpt PR 46441] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.