title: Auto download PDF in Firefox
body: <p>I want Firefox to directly download the PDF files instead of showing them in browser. I used following settings</p>
  
  <pre><code>FirefoxProfile firefoxProfile = new FirefoxProfile();
  firefoxProfile.setPreference("browser.download.folderList", 2);
  firefoxProfile.setPreference("browser.download.manager.showWhenStarting", false);
  firefoxProfile.setPreference("browser.download.dir", "c:\\tmp");
  firefoxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/pdf");
  WebDriver driver = new FirefoxDriver(firefoxProfile);
  // Its just a sample URL 
  driver.get("http://www.energy.umich.edu/sites/default/files/pdf-sample.pdf");
  </code></pre>
  
  <p>On <code>about:config</code> page I can see that this setting are successfully reflected also the response type is <code>application/pdf</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/YLc56.jpg" alt="enter image description here"></p>
  
  <p>When Webdriver launches Firefox I can see following option.</p>
  
  <p><img src="https://i.stack.imgur.com/YmzcJ.jpg" alt="enter image description here"></p>
  
  <p>It should be "Save File".  </p>
  
  <p>Still Firefox is showing PDF in browser. I am using Firefox 29.0.1, does the preference values have changed? </p>