Closed Bug 1871458 Opened 2 years ago Closed 2 years ago

[mozrunner] On MacOS don't use "Contents/MacOS/firefox-bin" binary as default but read the executable from the Info.plist

Categories

(Testing :: Mozbase Rust, defect, P1)

All
macOS
defect
Points:
2

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [webdriver:m10])

Attachments

(1 file)

Originally reported as: https://github.com/mozilla/geckodriver/issues/2144

There is a regression in Firefox 121 (see bug 1871447) which doesn't allow Selenium and other clients to start Firefox anymore for a default installation of Firefox. While we need fixes in Firefox and also for Selenium we should make sure that geckodriver doesn't default to this binary as well:

https://searchfox.org/mozilla-central/rev/b580e3f77470b2337bc8ae032b58a85c11e66aba/testing/mozbase/rust/mozrunner/src/runner.rs#409-433

Also we probably have to check if some WebDriver client actually specified firefox-bin as binary capability, and refuse or update it.

This currently blocks a couple of CI jobs running via Selenium.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P1
Blocks: 1824713
Summary: On MacOS don't use "Contents/MacOS/firefox-bin" binary as default but just "firefox" → On MacOS don't use "Contents/MacOS/firefox-bin" binary as default but read the executable from the Info.plist
Points: --- → 2
Component: geckodriver → Mozbase Rust
Summary: On MacOS don't use "Contents/MacOS/firefox-bin" binary as default but read the executable from the Info.plist → [mozrunner] On MacOS don't use "Contents/MacOS/firefox-bin" binary as default but read the executable from the Info.plist
Whiteboard: [webdriver:m9]

The problem here with Selenium will happen when test suites and other automation clients consuming Selenium as API are using the old Firefox binary helper classes to find the default installation. With the new Selenium Manager this problem does not exist because it's using the right firefox binary.

Whiteboard: [webdriver:m9] → [webdriver:m10]
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/450a8c4d7913 [mozrunner-rust] Don't default to "firefox-bin" but use executable from application bundle. r=glandium
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: