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•3 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Comment 1•2 months ago
|
||
Assignee | ||
Comment 2•2 months ago
|
||
Assignee | ||
Comment 3•2 months ago
|
||
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/15f652637235 Add a method to get a prompt id to GeckoView. r=geckoview-reviewers,owlish https://hg.mozilla.org/integration/autoland/rev/4ecda0d095a8 Check correctly for prompt id when receiving a "geckoview-prompt-show" on Android. r=webdriver-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/f13eef0bb6c6 [wdspec] Add test for "browsingContext.userPromptOpened" event with two prompts. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47070 for changes under testing/web-platform/tests
Comment 6•2 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
Upstream PR merged by moz-wptsync-bot
Reporter | ||
Updated•13 days ago
|
Description
•