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)

task
Points:
2

Tracking

(firefox129 fixed, firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox129 --- fixed
firefox130 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 2 open bugs, )

Details

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

Attachments

(2 files, 1 obsolete file)

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":{}}}}'
]

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: 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
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
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Attachment #9412918 - Flags: approval-mozilla-beta?
Attachment #9412917 - Attachment is obsolete: true

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
Attachment #9412918 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
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.

Attachment

General

Created:
Updated:
Size: