Bug 1373198 - Part 12: Disable RCWN for the devtools mochitest. r=rickychien
authorJunior Hsu <juhsu@mozilla.com>
Wed, 26 Jul 2017 04:18:00 -0400
changeset 420101 79b945191deaac02726bf44faafe14edd98feaa7
parent 420100 48ca21aa3f8a3f831cdc6e05aa2393258c6457fa
child 420102 9a388409e4a977b4f47be0d741883e4107db0076
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrickychien
bugs1373198
milestone56.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 1373198 - Part 12: Disable RCWN for the devtools mochitest. r=rickychien
devtools/client/webconsole/net/test/mochitest/browser_net_headers.js
--- a/devtools/client/webconsole/net/test/mochitest/browser_net_headers.js
+++ b/devtools/client/webconsole/net/test/mochitest/browser_net_headers.js
@@ -9,16 +9,19 @@ const TEST_PAGE_URL = URL_ROOT + "page_b
 const JSON_XHR_URL = URL_ROOT + "test.json";
 
 /**
  * This test generates XHR requests in the page, expands
  * networks details in the Console panel and checks that
  * HTTP headers are there.
  */
 add_task(function* () {
+  // Disable rcwn to make cache behavior deterministic.
+  yield pushPref("network.http.rcwn.enabled", false);
+
   info("Test XHR Spy headers started");
 
   let {hud} = yield addTestTab(TEST_PAGE_URL);
 
   let netInfoBody = yield executeAndInspectXhr(hud, {
     method: "GET",
     url: JSON_XHR_URL
   });