Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Garrison <erik@laptop.org>2008-06-10 18:29:17 (GMT)
committer Erik Garrison <erik@laptop.org>2008-06-10 18:29:17 (GMT)
commit9e3c4d01dc2b368ef0636cce598dd655446fb883 (patch)
treeb620889f459367d7b246ea5798d9fd9f02dd1df8
parentf045a05113e7fa966e9d8530ddd562bd86d00a5c (diff)
To resolve trac 6250, we disable browser detection of offline mode using xpcom.
-rw-r--r--browser.py5
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)