Bug 1370597 - Dismiss basic auth dialogue implicitly; r=ato draft
authorJulius Schwartzenberg <julius.schwartzenberg@gmail.com>
Tue, 06 Jun 2017 23:09:14 +0100 (2017-06-06)
changeset 589813 197259245abcbbd6be0423dfb44404b673da5b6c
parent 589747 6cd0639e02ded96057e7fa325623a1245efd4535
child 632027 9e92df71268e70efac201f250ddec38019e01c61
push id62530
push userbmo:ato@mozilla.com
push dateTue, 06 Jun 2017 22:11:24 +0000 (2017-06-06)
reviewersato
bugs1370597
milestone55.0a1
Bug 1370597 - Dismiss basic auth dialogue implicitly; r=ato Increasing the length of the network.http.phishy-userpass-length preference will cause Firefox to not prompt when navigating to a website with a username or password in the URL. MozReview-Commit-ID: 4D20YXjl7LH
testing/geckodriver/src/prefs.rs
--- a/testing/geckodriver/src/prefs.rs
+++ b/testing/geckodriver/src/prefs.rs
@@ -1,12 +1,12 @@
 use mozprofile::preferences::Pref;
 
 lazy_static! {
-    pub static ref DEFAULT: [(&'static str, Pref); 78] = [
+    pub static ref DEFAULT: [(&'static str, Pref); 79] = [
         // Disable automatic downloading of new releases
         ("app.update.auto", Pref::new(false)),
 
         // Disable automatically upgrading Firefox
         ("app.update.enabled", Pref::new(false)),
 
         // Increase the APZ content response timeout in tests to 1
         // minute.  This is to accommodate the fact that test environments
@@ -171,16 +171,19 @@ lazy_static! {
         ("hangmonitor.timeout", Pref::new(0)),
 
         // Show chrome errors and warnings in the error console
         ("javascript.options.showInConsole", Pref::new(true)),
 
         // Make sure the disk cache does not get auto disabled
         ("network.http.bypass-cachelock-threshold", Pref::new(200000)),
 
+        // Do not prompt with long usernames or passwords in URLs
+        ("network.http.phishy-userpass-length", Pref::new(255)),
+
         // Do not prompt for temporary redirects
         ("network.http.prompt-temp-redirect", Pref::new(false)),
 
         // Disable speculative connections so they are not reported as
         // leaking when they are hanging around
         ("network.http.speculative-parallel-limit", Pref::new(0)),
 
         // Do not automatically switch between offline and online