« Firefox Summit | Main | Linux »
December 5, 2006
NetworkManager, dbus and Offline Status
Anyway, now if your network link goes down, FF will automatically switch to offline mode and if the link comes back, FF will switch to online mode. If you manually change the "Work Offline" state then FF will stop switching automatically for the duration of your FF session.
Other Xulrunner apps can take advantage of this too. By default the IOService will watch for network link status changes and automatically toggle its online/offline state. But if an application wants to do things differently, it can tell the IOService to stop the automatic tracking. Then the application can listen for network link status changes via nsIObserver and modify IOService's online/offline status as desired.
We still want Mac support. Also, if you happen to be using a Linux distribution without dbus or without NetworkManager, the build will still work, you just won't get the automation.
Posted by roc at December 5, 2006 11:51 AM
Comments
To be fair, the Windows code wasn't written after you wrote the infrastructure code - I'd written the Windows code several years before, and was waiting for a review. If you hadn't landed the infrastructure code, I don't think I'd ever have gotten one. So, thanks for landing it.
Posted by: Juan at December 13, 2006 2:38 PM
Is it possible to disable the automatic switch to offline mode on Linux for FF2?
It's very annoying when I'm not connected to any networks but I'm trying to access a web page on a web server running locally.
Posted by: Eduardo at April 10, 2007 2:48 AM
I second Eduardo's comments... Network Manager is very unstable and will connect me to undesired networks and disconnect me all the time.
Sometime I am unable to get NM up and running again so I have to manually connect to the internet and then annoyingly, firefox remains in "offline" mode.
Posted by: Miguel at April 22, 2007 8:41 AM