Closed Bug 1769991 Opened 4 years ago Closed 4 years ago

Geckodriver cannot launch firefox from within snap confinement

Categories

(Testing :: geckodriver, defect, P3)

Firefox 100
Desktop
Linux
defect

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: olivier, Assigned: olivier)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Following up on bug #1766125, and per request in https://phabricator.services.mozilla.com/D146303, I'm filing this separate issue to track changing the default firefox binary path when geckodriver is used from within snap confinement.

This issue was initially discussed in https://github.com/mozilla/geckodriver/issues/2010.

Snapd refuses to execute an arbitrary executable in /snap/bin/ (even though that executable is part of the same snap) because these executables are all symlinks to /usr/bin/snap, but it does allow executing an executable which it knows for sure is contained in the same snap (under /snap/firefox/current/).

So when running under snap confinement, we need to make sure the default path to the firefox binary is specified as /snap/firefox/current/firefox.launcher.

Assignee: nobody → olivier
Blocks: snap
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3

Sorry, there was a problem with the detection of inactive users. I'm reverting the change.

Assignee: nobody → olivier
Status: NEW → ASSIGNED

Oliver, are you still interested to continue working on this bug? After James' last review an update of the patch is required. Thanks.

Flags: needinfo?(olivier)

Yes, sorry for not addressing this earlier. I have now updated the patch.

Flags: needinfo?(olivier)
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93e827afaac1 Change the default firefox binary path when geckodriver is used from within snap confinement r=webdriver-reviewers,jgraham,whimboo
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: