Bug 1379899 - disable rcwn to make cache behavior deterministic in test, r=kanru
authorJunior Hsu <juhsu@mozilla.com>
Wed, 19 Jul 2017 04:24:00 +0200
changeset 370582 1476b84d8f878a3db499fb9cb67222cf36e13f6e
parent 370581 c1b154630587a9e91b67a6ab40890a382aebec54
child 370583 3c35ec94f3ed32031f6d953a54dd90c9f7c1d0e8
push id32228
push userkwierso@gmail.com
push dateTue, 25 Jul 2017 01:06:49 +0000
treeherdermozilla-central@dcfb58fcb6dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskanru
bugs1379899
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 1379899 - disable rcwn to make cache behavior deterministic in test, r=kanru
dom/browser-element/mochitest/browserElement_ExposableURI.js
--- a/dom/browser-element/mochitest/browserElement_ExposableURI.js
+++ b/dom/browser-element/mochitest/browserElement_ExposableURI.js
@@ -41,15 +41,17 @@ function testWyciwyg() {
   }
 
   // file_wyciwyg.html calls document.write() to create a wyciwyg channel.
   iframe.src = 'file_wyciwyg.html';
   iframe.addEventListener('mozbrowserlocationchange', locationchange);
 }
 
 function runTest() {
-  iframe = document.createElement('iframe');
-  iframe.setAttribute('mozbrowser', 'true');
-  document.body.appendChild(iframe);
-  testWyciwyg();
+  SpecialPowers.pushPrefEnv({set: [["network.http.rcwn.enabled", false]]}, _=>{
+    iframe = document.createElement('iframe');
+    iframe.setAttribute('mozbrowser', 'true');
+    document.body.appendChild(iframe);
+    testWyciwyg();
+  });
 }
 
 addEventListener('testready', runTest);