From 4a20f030240e45cb8b5c1cc5d42704f1ea60d967 Mon Sep 17 00:00:00 2001 From: "neil@parkwaycc.co.uk" Date: Thu, 16 Aug 2007 16:10:46 -0700 Subject: [PATCH] Profile selector's "Work Offline" checkbox doesn't b=392145 r=bsmedberg,mscott --- toolkit/xre/nsAppRunner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 4763fbfe07d..27973569e21 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -80,7 +80,7 @@ #include "nsIExtensionManager.h" #include "nsIFastLoadService.h" // for PLATFORM_FASL_SUFFIX #include "nsIGenericFactory.h" -#include "nsIIOService.h" +#include "nsIIOService2.h" #include "nsIObserverService.h" #include "nsINativeAppSupport.h" #include "nsIProcess.h" @@ -2878,8 +2878,9 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData) { if (startOffline) { - nsCOMPtr io (do_GetService("@mozilla.org/network/io-service;1")); + nsCOMPtr io (do_GetService("@mozilla.org/network/io-service;1")); NS_ENSURE_TRUE(io, 1); + io->SetManageOfflineStatus(PR_FALSE); io->SetOffline(PR_TRUE); }