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 419288 1476b84d8f878a3db499fb9cb67222cf36e13f6e
parent 419287 c1b154630587a9e91b67a6ab40890a382aebec54
child 419289 3c35ec94f3ed32031f6d953a54dd90c9f7c1d0e8
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)
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);