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)
Tracking
(firefox148 fixed)
| 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.
| Reporter | ||
Comment 1•11 months ago
|
||
Updated•11 months ago
|
| Reporter | ||
Comment 3•10 months ago
|
||
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.
Comment 4•10 months ago
|
||
| bugherder | ||
| Reporter | ||
Updated•10 months ago
|
Updated•9 months ago
|
| Reporter | ||
Comment 5•9 months ago
|
||
We need to check if the reference to the frame's window is already accessible or not. Let me check that next week.
| Assignee | ||
Comment 6•6 months ago
|
||
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.
| Assignee | ||
Updated•6 months ago
|
| Reporter | ||
Updated•6 months ago
|
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 7•3 months ago
|
||
| Assignee | ||
Comment 8•3 months ago
|
||
| Assignee | ||
Comment 9•3 months ago
|
||
Updated•3 months ago
|
Comment 11•3 months ago
|
||
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.
Comment 12•3 months ago
|
||
Comment 13•3 months ago
|
||
| bugherder | ||
| Reporter | ||
Updated•3 months ago
|
| Reporter | ||
Updated•1 month ago
|
Description
•