Closed
Bug 1907935
Opened 3 months ago
Closed 3 months ago
Ensure the "unhandledPromptBehavior" capability is not WebDriver classic only
Categories
(Remote Protocol :: WebDriver BiDi, task, P2)
Remote Protocol
WebDriver BiDi
Tracking
(firefox129 fixed, firefox130 fixed)
RESOLVED
FIXED
130 Branch
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [webdriver:m12][webdriver:relnote])
Attachments
(2 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
Originally noticed at: https://github.com/puppeteer/puppeteer/pull/12744
When running the session.new
command for a bidi-only session the specified custom prompt behavior is not used but our BiDi implementation always falls back to the default value:
2024-07-12T13:23:11.960Z puppeteer:webDriverBiDi:SEND ► [
'{"id":1,"method":"session.new","params":{"capabilities":{"alwaysMatch":{"acceptInsecureCerts":false,"unhandledPromptBehavior":"ignore","webSocketUrl":true}}}}'
]
2024-07-12T13:23:12.845Z puppeteer:webDriverBiDi:RECV ◀ [
'{"type":"success","id":1,"result":{"sessionId":"b3f64299-5759-4902-a15e-19bafe933ce5","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"130.0a1","platformName":"linux","unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0","moz:buildID":"20240711215213","moz:headless":true,"moz:platformVersion":"6.6.15-2rodete2-amd64","moz:processID":1867689,"moz:profile":"/tmp/puppeteer_dev_firefox_profile-XXXXXXmfZUzr","moz:shutdownTimeout":60000,"proxy":{}}}}'
]
Assignee | ||
Comment 1•3 months ago
|
||
The problem here is actually that unhandledPromptBehavior
is still listed as WebDriver classic only:
https://searchfox.org/mozilla-central/rev/54a5c4f14f3eb514a29e0cebcb5a095144bcd450/remote/shared/webdriver/Capabilities.sys.mjs#50
We should get this removed and a bidi-only test added.
Assignee | ||
Updated•3 months ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Summary: Custom values for the "unsupportedPromptBehavior" capability are not respected in the "session.new" command → Ensure the "unsupportedPromptBehavior" capability is not WebDriver classic only
Assignee | ||
Comment 2•3 months ago
|
||
Assignee | ||
Updated•3 months ago
|
Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m12]
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/002cacfd4d24
[remote] Make "unhandledPromptBehavior" capability not WebDriver classic only. r=webdriver-reviewers,jdescottes
Comment 4•3 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox130:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Assignee | ||
Comment 5•3 months ago
|
||
The relevant upstream PR for Puppeteer is at: https://github.com/puppeteer/puppeteer/pull/12755
Assignee | ||
Comment 6•3 months ago
|
||
Assignee | ||
Comment 7•3 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D216642
Updated•3 months ago
|
Attachment #9412918 -
Flags: approval-mozilla-beta?
Updated•3 months ago
|
Attachment #9412917 -
Attachment is obsolete: true
Comment 8•3 months ago
|
||
beta Uplift Approval Request
- User impact if declined: Puppeteer tests utilizing custom user prompt behaviors will fail
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: None
- Risk associated with taking this patch: Low
- Explanation of risk level: Only allows
unhandledPromptBehavior
to be usd in BiDi-only mode, which is tested well in classic mode - String changes made/needed: No
- Is Android affected?: no
Updated•3 months ago
|
Attachment #9412918 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•3 months ago
|
status-firefox129:
--- → fixed
Assignee | ||
Updated•2 months ago
|
Summary: Ensure the "unsupportedPromptBehavior" capability is not WebDriver classic only → Ensure the "unhandledPromptBehavior" capability is not WebDriver classic only
Whiteboard: [webdriver:m12] → [webdriver:m12][webdriver:relnote]
You need to log in
before you can comment on or make changes to this bug.
Description
•