Skip to content

Commit 6b42c10

Browse files
committed
remove all references to firefox-bin
1 parent 7784bbd commit 6b42c10

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

java/src/org/openqa/selenium/firefox/FirefoxBinary.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,9 @@ private static Stream<Executable> locateFirefoxBinariesFromPlatform() {
240240
if (Files.isSymbolicLink(firefoxPath)) {
241241
try {
242242
Path realPath = firefoxPath.toRealPath();
243-
File attempt1 = realPath.getParent().resolve("firefox").toFile();
244-
if (attempt1.exists()) {
245-
executables.add(new Executable(attempt1));
246-
} else {
247-
File attempt2 = realPath.getParent().resolve("firefox-bin").toFile();
248-
if (attempt2.exists()) {
249-
executables.add(new Executable(attempt2));
250-
}
243+
File file = realPath.getParent().resolve("firefox").toFile();
244+
if (file.exists()) {
245+
executables.add(new Executable(file));
251246
}
252247
} catch (IOException e) {
253248
// ignore this path

javascript/node/selenium-webdriver/firefox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ Channel.RELEASE = new Channel(
796796
* @see <https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly>
797797
*/
798798
Channel.NIGHTLY = new Channel(
799-
'/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin',
799+
'/Applications/Firefox Nightly.app/Contents/MacOS/firefox',
800800
'Nightly\\firefox.exe'
801801
)
802802

py/selenium/webdriver/firefox/firefox_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _get_firefox_start_cmd(self):
162162
start_cmd = self.which(ffname)
163163
# use hardcoded path if nothing else was found by which()
164164
if not start_cmd:
165-
start_cmd = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
165+
start_cmd = "/Applications/Firefox.app/Contents/MacOS/firefox"
166166
# fallback to homebrew installation for mac users
167167
if not os.path.exists(start_cmd):
168168
start_cmd = os.path.expanduser("~") + start_cmd

0 commit comments

Comments
 (0)