Forum Discussion

Frazerus's avatar
Frazerus
Copper Contributor
Mar 09, 2023

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.

 

  • V1ADev's avatar
    V1ADev
    Copper Contributor
    Hi There,
    Did you happen to find a fix for this issue? I've encountered the same problem in my own solution.
    • Frazerus's avatar
      Frazerus
      Copper Contributor

      V1ADev 
      Hi,
      I sadly haven't found a fix for this yet. Happy to see that I'm not the only one struggling with this.

Resources