Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox 72.0.1 (64-bit, Windows 10) ignores options set by GeckDriver (V026.0) via Java. Used to work fine for Firefox 72.0 and older.

more options

Firefox 72.0.1 (64-bit, Windows 10, 1909) ignores options set by GeckDriver (V026.0) via Java. Used to work fine for Firefox 72.0 and older. Java version is openjdk version "1.8.0_222"

I am setting options to download files (PDFs) from a web page to a folder: profile.setPreference("browser.download.folderList", 2); File tempfile = new File(tempFolder); profile.setPreference("browser.download.dir", tempfile.getAbsolutePath()); profile.setPreference("browser.download.manager.alertOnEXEOpen", false); profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/zip,application/octet-stream,application/pdf"); profile.setPreference("browser.download.manager.showWhenStarting", false); profile.setPreference("browser.download.manager.focusWhenStarting", false); profile.setPreference("browser.download.useDownloadDir", true); profile.setPreference("browser.helperApps.alwaysAsk.force", false); profile.setPreference("browser.download.manager.alertOnEXEOpen", false); profile.setPreference("browser.download.manager.closeWhenDone", true); profile.setPreference("browser.download.manager.showAlertOnComplete", false); profile.setPreference("browser.download.manager.useWindow", false); profile.setPreference("services.sync.prefs.sync.browser.download.manager.showWhenStarting", false); profile.setPreference("pdfjs.disabled", true); profile.setPreference("browser.privatebrowsing.autostart", true); profile.setPreference("extensions.allowPrivateBrowsingByDefault", true); profile.setPreference("intl.accept_languages", "en-us,en"); profile.setPreference("javascript.enabled", true);

This worked all right before I got Firefox 72.0.1. With 72.0.1 the PDF is opened in the pdf view of FireFox. I checked the Firefox options and they are set as desired. Any ideas how to fix this?

Firefox 72.0.1 (64-bit, Windows 10, 1909) ignores options set by GeckDriver (V026.0) via Java. Used to work fine for Firefox 72.0 and older. Java version is openjdk version "1.8.0_222" I am setting options to download files (PDFs) from a web page to a folder: profile.setPreference("browser.download.folderList", 2); File tempfile = new File(tempFolder); profile.setPreference("browser.download.dir", tempfile.getAbsolutePath()); profile.setPreference("browser.download.manager.alertOnEXEOpen", false); profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/zip,application/octet-stream,application/pdf"); profile.setPreference("browser.download.manager.showWhenStarting", false); profile.setPreference("browser.download.manager.focusWhenStarting", false); profile.setPreference("browser.download.useDownloadDir", true); profile.setPreference("browser.helperApps.alwaysAsk.force", false); profile.setPreference("browser.download.manager.alertOnEXEOpen", false); profile.setPreference("browser.download.manager.closeWhenDone", true); profile.setPreference("browser.download.manager.showAlertOnComplete", false); profile.setPreference("browser.download.manager.useWindow", false); profile.setPreference("services.sync.prefs.sync.browser.download.manager.showWhenStarting", false); profile.setPreference("pdfjs.disabled", true); profile.setPreference("browser.privatebrowsing.autostart", true); profile.setPreference("extensions.allowPrivateBrowsingByDefault", true); profile.setPreference("intl.accept_languages", "en-us,en"); profile.setPreference("javascript.enabled", true); This worked all right before I got Firefox 72.0.1. With 72.0.1 the PDF is opened in the pdf view of FireFox. I checked the Firefox options and they are set as desired. Any ideas how to fix this?

All Replies (2)

more options

Are you using Selenium here as well and if so, which version? It's possible that could be the issue.

Can you confirm that "pdfjs.disabled" is indeed being set to "true" once the browser is up and running by going to "about:config" and typing "pdfjs.disabled" into the search box?

That being said, you may be able to get quicker, more effective support on this from the folks on the geckodriver and selenium teams by opening issues on their respective GitHub repos:

https://github.com/mozilla/geckodriver/issues https://github.com/SeleniumHQ/selenium/issues

Modified by d.mattera

more options

Selenium version is 3.141.59. "pdfjs.disabled" is false in about:config.