The PromptListener wrongly selects prompts on Android when receiving a `geckoview-prompt-show` notification
Categories
(Remote Protocol :: Agent, defect, P2)
Tracking
(firefox130 fixed)
| Tracking | Status | |
|---|---|---|
| firefox130 | --- | fixed |
People
(Reporter: whimboo, Assigned: Sasha)
References
Details
(Whiteboard: [webdriver:m12][wptsync upstream][webdriver:relnote])
Attachments
(3 files)
Just noticed this problem when trying to add support for the beforeunload prompt type in WebDriver BiDi. There are two issues:
-
The
subjectargument is a wrapped value and as such requires us to use.wrappedJSObject. Otherwise the retrieved promptidisundefined. -
When iterating through the open windows we find prompts but using
item.idis as wellundefined. Comparing it with the prompt id that we are looking for is equal and as such results in a found prompt, which is not necessarily the one that we need.
Given that this is Android we may want to have a look at this bug in the next milestone?
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/15f652637235
https://hg.mozilla.org/mozilla-central/rev/4ecda0d095a8
https://hg.mozilla.org/mozilla-central/rev/f13eef0bb6c6
| Reporter | ||
Updated•1 year ago
|
Description
•