title: chrome xml download warning
body: <p>precondition : disable below options from crome settings 
  safe browsing &amp; Ask where to save each file before downloading </p>
  
  <p>if I try to generate xml file from my rest service i get waning message "</p>
  
  <blockquote>
    <p>This type of file may harm your computer. Do you want to keep
    .xml anyway ?</p>
  </blockquote>
  
  <p>"</p>
  
  <p>surprisingly warning comes only with xml if i change file type (i.e. var fileName) to any other like .txt or .pdf even .foo it doesnot give waning.</p>
  
  <p>Is there any way to disable this warning programmatically rather than manual change in chrome settings.</p>
  
  <p>javascript code </p>
  
  <pre><code>var aFileParts = ['&lt;a id="a"&gt;&lt;b id="b"&gt;hey!&lt;/b&gt;&lt;/a&gt;'];
  var blob = new Blob(aFileParts, {type : 'text/html'}); 
  var fileName = 'text.xml';
  var urlCreator = window.webkitURL;
  var url = urlCreator.createObjectURL(blob);
  var link = document.createElement("a");
  document.body.appendChild(link);
  link.setAttribute("style", "display:none");
  link.setAttribute("href", url);
  link.setAttribute("download", fileName);
  link.click();
  urlCreator.revokeObjectURL(url);
  </code></pre>