Bug 777145 - Part 2: Make sure we are online when runing marionette. r=jgriffin
authorHubert Figuière <hfiguiere@mozilla.com>
Wed, 19 Sep 2012 13:31:03 -0700
changeset 107605 2c8cb9b79705e0c4aa3edd26e8131b0f25f2f35f
parent 107604 2e21fddbc007e68699c2978fa0d061e21d93c247
child 107606 da306dc448b9caec0c86835068bfaa00c95e8278
push id23498
push userryanvm@gmail.com
push dateFri, 21 Sep 2012 01:27:06 +0000
treeherdermozilla-central@488beb32bca5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs777145
milestone18.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 777145 - Part 2: Make sure we are online when runing marionette. r=jgriffin
testing/marionette/marionette-listener.js
--- a/testing/marionette/marionette-listener.js
+++ b/testing/marionette/marionette-listener.js
@@ -52,16 +52,18 @@ let asyncTestCommandId;
 let asyncTestTimeoutId;
 
 /**
  * Called when listener is first started up. 
  * The listener sends its unique window ID and its current URI to the actor.
  * If the actor returns an ID, we start the listeners. Otherwise, nothing happens.
  */
 function registerSelf() {
+  Services.io.manageOfflineStatus = false;
+  Services.io.offline = false;
   let register = sendSyncMessage("Marionette:register", {value: winUtil.outerWindowID, href: content.location.href});
   
   if (register[0]) {
     listenerId = register[0];
     startListeners();
   }
 }