Closed Bug 1902264 Opened 4 months ago Closed 3 months ago

The PromptListener wrongly selects prompts on Android when receiving a `geckoview-prompt-show` notification

Categories

(Remote Protocol :: Agent, defect, P2)

defect
Points:
3

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
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:

  1. The subject argument is a wrapped value and as such requires us to use .wrappedJSObject. Otherwise the retrieved prompt id is undefined.

  2. When iterating through the open windows we find prompts but using item.id is as well undefined. 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?

Severity: -- → S3
Points: --- → 3
Priority: -- → P2
Whiteboard: [webdriver:m12]
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
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
Whiteboard: [webdriver:m12] → [webdriver:m12], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m12], [wptsync upstream] → [webdriver:m12][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: