Closed Bug 1964905 Opened 11 months ago Closed 3 months ago

Events for user prompts opened or closed within an iframe do not reference the iframe's context ID

Categories

(Remote Protocol :: WebDriver BiDi, defect, P3)

defect
Points:
3

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m18][webdriver:relnote])

Attachments

(3 files, 1 obsolete file)

The tests were updated on bug 1963047. We should fix this bug.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf71f38a0f8a [wdspec] Update meta data for user prompt tests within an iframe. r=webdriver-reviewers,Sasha

My patch only updated the manifest file for the correct bug id. I'm not working on a fix right now.

For a fix it would be good to know if there is any property on the prompt which would allow us to retrieve the origin window which opened it.

Assignee: hskupin → nobody
Status: ASSIGNED → NEW
Keywords: leave-open
Severity: -- → S3
Points: --- → 2
Priority: -- → P3
Whiteboard: [webdriver:m16]
Whiteboard: [webdriver:m16] → [webdriver:m17]

We need to check if the reference to the frame's window is already accessible or not. Let me check that next week.

Flags: needinfo?(hskupin)

I did some investigation here, and I don't think we have at the moment any information about the window/browsing context which opened this prompt in the notification we listened to or prompt object which we receive or can find in the target browser. But I think we can add this information in https://searchfox.org/firefox-main/source/toolkit/components/prompts/src/CommonDialog.sys.mjs#228 for desktop, because this.args contains owningBrowsingContext property which is the browsing context which opened the prompt. For GeckoView there seems to be info about browsing context here: https://searchfox.org/firefox-main/source/mobile/shared/components/geckoview/GeckoViewPrompter.sys.mjs#29, but it also has to be passed down to the right place. Additionally, we will have to refactor https://searchfox.org/firefox-main/source/remote/shared/listeners/PromptListener.sys.mjs#139-214 to work with it, but it can probably be simplified in the end.
So overall I think it should be possible to implement, but we should probably bump it to 5 points.

Flags: needinfo?(hskupin)
Points: 2 → 5
Whiteboard: [webdriver:m17] → [webdriver:m18]
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Attachment #9533600 - Attachment description: Bug 1964905 - Add "owningBrowsingContext" to "DOMModalDialogClosed" event details and to "common-dialog-loaded" notification. → Bug 1964905 - Add "owningBrowsingContext" to "DOMModalDialogClosed" event details.
Blocks: 2007385

The Android part is moved to bug 2007385.

Points: 5 → 3

Comment on attachment 9533601 [details]
Bug 1964905 - [geckoview] Add "owningBrowsingContext" to "DOMModalDialogClosed" event details and to "geckoview-prompt-show" notification.

Revision D276820 was moved to bug 2007385. Setting attachment 9533601 [details] to obsolete.

Attachment #9533601 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Whiteboard: [webdriver:m18] → [webdriver:m18][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: