Bug 1467755 - Disable background tabs network de-prioritization and response throttling on Android, we don't know the active tab id. r=valentin, a=RyanVM
authorHonza Bambas <honzab.moz@firemni.cz>
Wed, 20 Jun 2018 10:17:37 -0400
changeset 473779 ea048f6200995a2ba9f35751c0e0e1503d72643d
parent 473778 865f9ac1818a4e970448a3878855c2b7c61a088b
child 473780 f5ea361ceb75d5cdb9c44112ae6d37117b05e626
push id1731
push userryanvm@gmail.com
push dateWed, 20 Jun 2018 14:21:08 +0000
treeherdermozilla-release@f5ea361ceb75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin, RyanVM
bugs1467755
milestone61.0
Bug 1467755 - Disable background tabs network de-prioritization and response throttling on Android, we don't know the active tab id. r=valentin, a=RyanVM
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1760,17 +1760,22 @@ pref("network.http.rcwn.min_wait_before_
 pref("network.http.rcwn.max_wait_before_racing_ms", 500);
 
 // The ratio of the transaction count for the focused window and the count of
 // all available active connections.
 pref("network.http.focused_window_transaction_ratio", "0.9");
 
 // Whether or not we give more priority to active tab.
 // Note that this requires restart for changes to take effect.
+#ifdef ANDROID
+// disabled because of bug 1382274
+pref("network.http.active_tab_priority", false);
+#else
 pref("network.http.active_tab_priority", true);
+#endif
 
 // default values for FTP
 // in a DSCP environment this should be 40 (0x28, or AF11), per RFC-4594,
 // Section 4.8 "High-Throughput Data Service Class", and 80 (0x50, or AF22)
 // per Section 4.7 "Low-Latency Data Service Class".
 pref("network.ftp.data.qos", 0);
 pref("network.ftp.control.qos", 0);
 pref("network.ftp.enabled", true);
@@ -2103,17 +2108,22 @@ pref("network.generic-ntlm-auth.workstat
 // credentials, those will be sent automatically in Private Browsing windows.
 //
 // This preference has no effect when the browser is set to "Never Remember History",
 // in that case default credentials will always be used.
 pref("network.auth.private-browsing-sso", false);
 
 // Control how throttling of http responses works - number of ms that each
 // suspend and resume period lasts (prefs named appropriately)
+#ifdef ANDROID
+// disabled because of bug 1382274
+pref("network.http.throttle.enable", false);
+#else
 pref("network.http.throttle.enable", true);
+#endif
 pref("network.http.throttle.version", 2);
 
 // V1 prefs
 pref("network.http.throttle.suspend-for", 900);
 pref("network.http.throttle.resume-for", 100);
 
 // V2 prefs
 pref("network.http.throttle.read-limit-bytes", 8000);