Bug 1147716 - Remove offline mode observer in browser_bug435325.js. r=jimm
authorTanvi Vyas <tanvi@mozilla.com>
Thu, 26 Mar 2015 11:51:19 -0700
changeset 264814 a489d18b4df2d2beee539693e6de44c87c5ae361
parent 264679 d5a537c7c5582d7edcdf83a3705d888259c62a6e
child 264815 97d1d0f97785eea9f7dfa7a6ea70313161ad513c
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1147716, 435325
milestone39.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 1147716 - Remove offline mode observer in browser_bug435325.js. r=jimm
browser/base/content/test/general/browser_bug435325.js
--- a/browser/base/content/test/general/browser_bug435325.js
+++ b/browser/base/content/test/general/browser_bug435325.js
@@ -54,16 +54,17 @@ function checkPage() {
 
   // Re-enable the proxy so example.com is resolved to localhost, rather than
   // the actual example.com.
   Services.prefs.setIntPref("network.proxy.type", proxyPrefValue);
 
   Services.obs.addObserver(function observer(aSubject, aTopic) {
     ok(!Services.io.offline, "After clicking the Try Again button, we're back " +
                              "online.");
+    Services.obs.removeObserver(observer, "network:offline-status-changed", false);
     finish();
   }, "network:offline-status-changed", false);
   gBrowser.contentDocument.getElementById("errorTryAgain").click();
 }
 
 registerCleanupFunction(function() {
   Services.prefs.setBoolPref("browser.cache.disk.enable", true);
   Services.prefs.setBoolPref("browser.cache.memory.enable", true);