Forum Discussion
Frazerus
Mar 09, 2023Copper Contributor
Headless mode opens PopUp when downloading file with potentially dangerous file-ending
Hi,
while currently updating our testing infrastructure and the corresponding edge versions we test, we found problems using the "headless=new" argument.
While edge was running in headless mode, when downloading an xml file, a popup still occurred, asking whether to keep the potentially malicious file. This seems to be unwanted behavior for a "headless" environment.
This was tested using Edge v109.0.1518.52 as well as some 110 versions.
Trying to solve the problem using several different profile preferences in selenium did not work:
- Dowload.prompt_for_download -> false
- download.extensions_to_open -> application/xml
- download.set_download_behaviour -> allow
- safebrowsing.enabled -> true
- safebrowsing.disable_download_protection -> true
Are we doing anything wrong here? Should this popup still occur? Are there options to turn this off that we didn't try yet?
Thanks in advance.