Bug 1370597 - Dismiss basic auth dialogue implicitly; r=ato
authorJulius Schwartzenberg <julius.schwartzenberg@gmail.com>
Tue, 06 Jun 2017 23:09:14 +0100
changeset 413246 215afe84f16e8a1d191a85ce3d9e5ceea5038bbe
parent 413245 09c76ee950d007a1f6eb7ac875d7f506edd65ae7
child 413247 9581f9e1b988c7320589effa3aefda47b51c8aca
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1370597
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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