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
subject
argument is a wrapped value and as such requires us to use.wrappedJSObject
. Otherwise the retrieved promptid
isundefined
. -
When iterating through the open windows we find prompts but using
item.id
is 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•4 months ago
|
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 1•3 months ago
|
||
Assignee | ||
Comment 2•3 months ago
|
||
Assignee | ||
Comment 3•3 months ago
|
||
Comment 6•3 months 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 month ago
|
Description
•