title: Save As Dialog not showing in Chrome Extension
body: <p>I'm developing chrome extension for my coworkers and myself. The goal is to download single image by clicking a button at behance.net.</p>
  <p>The problem is that some of my coworkers using &quot;Ask where to save each file before downloading&quot; option, so the code doesn't work for them. I don't use this option, so download is successfull for me.</p>
  <p>I've tried to set different options for chrome.downloads.download(), but I got nothing. Save As dialog not showing.</p>
  <p><strong>Manifest</strong></p>
  <pre><code>{
  &quot;name&quot;: &quot;Begrab&quot;,
  &quot;description&quot;: &quot;Download pics right from Behance&quot;,
  &quot;version&quot;: &quot;1.0&quot;,
  &quot;manifest_version&quot;: 3,
  &quot;background&quot;: {
      &quot;service_worker&quot;: &quot;background.js&quot;
    },
  &quot;permissions&quot;: [&quot;activeTab&quot;, &quot;downloads&quot;,&quot;tabs&quot;, &quot;background&quot;],
  
  &quot;content_scripts&quot;: [
    {
      &quot;matches&quot;: [&quot;https://*.behance.net/*&quot;],
      &quot;run_at&quot;: &quot;document_end&quot;,
      &quot;css&quot;: [&quot;content.css&quot;],
      &quot;js&quot;: [&quot;content.js&quot;]
    }
  ]}
  </code></pre>
  <p><strong>content.js</strong></p>
  <pre><code>window.setTimeout(()=&gt; {
      codeRun();
  }, 1000)
  
  let projectLinks = document.querySelectorAll('.ProjectCoverNeue-coverLink-102') 
  
  Array.from(projectLinks).forEach(projectLink =&gt; {
      projectLink.addEventListener('click', function(){
          window.setTimeout(()=&gt; {
              codeRun();
          }, 4000)
          
      })
  })
  
  function codeRun() {
      let imageParents = document.querySelectorAll('.js-project-lightbox-link');
  
      Array.from(imageParents).forEach(imageParent =&gt; {
          let button = document.createElement('a'),
              buttonCopy = document.createElement('a'),
              buttonsWrap = document.createElement('div'),
              img = imageParent.querySelector('img'),
              controls = imageParent.querySelector('.project-module__actions');
  
              if(img) {
                  button.innerText = &quot;Download&quot;;
                  button.className = &quot;begrab__btn&quot;;
                  buttonsWrap.className = &quot;begrab__wrap&quot;;
  
                  buttonsWrap.appendChild(button);
                  imageParent.appendChild(buttonsWrap)
  
                  button.addEventListener('click', (e) =&gt; {
                      let param = {src: img.src,
                      fileName: window.location.href};
                      e.stopPropagation()
  
                      chrome.runtime.sendMessage(param);
                  });
              }
      });
  }
  
  </code></pre>
  <p><strong>background.js</strong></p>
  <pre><code>chrome.runtime.onMessage.addListener(
    function(arg, sender, sendResponse) {
  
    if(arg.src){
      
      chrome.downloads.download({
        url: arg.src,
        conflictAction: &quot;prompt&quot;
        }, function (downloadId) {
          console.log(downloadId);
      });
    }
    
  });
  </code></pre>
  <p>Did anyone face the same problem? Hope that somebody would help me. Thanks!</p>