Bug 948569 - Disable seer on Beta 27 and Aurora 28. r=mcmanus, a=lsblakk
authorNicholas Hurley <hurley@todesschaf.org>
Mon, 16 Dec 2013 09:06:41 -0800
changeset 174320 ed83e1080ed0d23e4f614442ee7dc391d0add30c
parent 174319 e0fad3b057714d6522be11f1953d7962f39a714e
child 174321 8fa1471e356b4bf0047fe7b7b58a670b24637638
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus, lsblakk
bugs948569
milestone28.0a2
Bug 948569 - Disable seer on Beta 27 and Aurora 28. r=mcmanus, a=lsblakk
modules/libpref/src/init/all.js
netwerk/test/unit/test_seer.js
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -1420,17 +1420,17 @@ pref("network.ftp.idleConnectionTimeout"
 // 3: XUL directory viewer
 // all other values are treated like 2
 pref("network.dir.format", 2);
 
 // enables the prefetch service (i.e., prefetching of <link rel="next"> URLs).
 pref("network.prefetch-next", true);
 
 // enables the predictive service
-pref("network.seer.enabled", true);
+pref("network.seer.enabled", false);
 pref("network.seer.enable-hover-on-ssl", false);
 pref("network.seer.page-degradation.day", 0);
 pref("network.seer.page-degradation.week", 5);
 pref("network.seer.page-degradation.month", 10);
 pref("network.seer.page-degradation.year", 25);
 pref("network.seer.page-degradation.max", 50);
 pref("network.seer.subresource-degradation.day", 1);
 pref("network.seer.subresource-degradation.week", 10);
--- a/netwerk/test/unit/test_seer.js
+++ b/netwerk/test/unit/test_seer.js
@@ -282,14 +282,20 @@ var tests = [
   test_pageload,
   test_redirect,
   test_startup,
   test_dns,
   test_origin
 ];
 
 function run_test() {
+  let prefs = Cc["@mozilla.org/preferences-service;1"]
+                .getService(Components.interfaces.nsIPrefBranch);
+  if (!prefs.getBoolPref("network.seer.enabled")) {
+    return;
+  }
+
   tests.forEach(add_test);
   profile = do_get_profile();
   seer = Cc["@mozilla.org/network/seer;1"].getService(Ci.nsINetworkSeer);
   do_register_cleanup(reset_seer);
   run_next_test();
 }