title: Protractor, Firefox, Windows Authentication, LastPass
body: <p>I'm trying to use Protractor with a site that has windows authentication enabled.  I can use Chrome with the site by passing the credentials in the URL (<a href="http://username:password@server.url/" rel="nofollow">http://username:password@server.url/</a>), but for Firefox I run into trouble. It prompts for username and password.</p>
  
  <p>In Firefox's about:config I have set 'browser.safebrowsing.malware.enabled' to false, as per other internet searches, however I still continue to get prompted when I try to pass the credentials in the URL browser.get().  </p>
  
  <p>I had an outside the box idea of using LastPass in Firefox to AutoLogin and that does work when I now navigate to the URL.  But when I run Protractor it opens a shell like version of Firefox with no plugins.   </p>
  
  <p>Is there a way to enable plugins for Protractor when it runs Firefox?</p>
  
  <p>I also tried the following to create a profile and verified that the setting for the malware config line was false.  I still continue to get the Windows Authentication pop-up box.</p>
  
  <pre><code>var Firefox = require('..\\node_modules\\selenium-webdriver\\firefox'); 
  var getFFProfile = function() { 
      var deferred = q.defer(); 
      var ffProfile = new Firefox.Profile(); 
      ffProfile.setPreference('browser.safebrowsing.malware.enabled', false);
      ffProfile.encode().then(function(encodedProfile) { 
          var multiCapabilities = [{ 
              browserName: 'firefox', 
              firefox_profile : encodedProfile 
          }]; 
          deferred.resolve(multiCapabilities);
      }); 
      return deferred.promise; 
  }; 
  exports.config= {
      specs:['spec.js'],
      getMultiCapabilities:getFFProfile
  };
  </code></pre>