Tuesday 5 December 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.
Comments
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.
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.