[PATCH] To resolve trac 6250, we disable browser detection of offline mode using xpcom.

Erik Garrison erik
Tue Jun 10 14:29:17 EDT 2008


---
 browser.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/browser.py b/browser.py
index f57bafa..208ff93 100644
--- a/browser.py
+++ b/browser.py
@@ -83,6 +83,11 @@ class Browser(WebView):
                 "@mozilla.org/network/io-service;1"]
         io_service = io_service_class.getService(interfaces.nsIIOService)
 
+        # Use xpcom to turn off "offline mode" detection, which disables
+        # access to localhost for no good reason.  (Trac #6250.)
+        io_service2 = io_service_class.getService(interfaces.nsIIOService2)
+        io_service2.manageOfflineStatus = False
+
         cls = components.classes['@mozilla.org/content/style-sheet-service;1']
         style_sheet_service = cls.getService(interfaces.nsIStyleSheetService)
 
-- 
1.5.4.3


--6TrnltStXW4iwmi0--



More information about the Sugar-devel mailing list