Comment 1 for bug 586033

First of all, connman does have compat code to support NM state. It's enabled with -c switch which should be enabled when starting with the init.d script. You can manually check the status with this command:

dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager org.freedesktop.NetworkManager.state

The values are:

NM_STATE_UNKNOWN = 0
NM_STATE_ASLEEP = 1
NM_STATE_CONNECTING = 2
NM_STATE_CONNECTED = 3
NM_STATE_DISCONNECTED = 4

So you should see 3 as a reply when connected.

I tried to reproduce with connman 0.53+dfsg-0ubuntu0.10.04.1~ind1 and firefox 3.6.3+nobinonly-0ubuntu4. When I started firefox, it correctly detected the states between online and offline. But I noticed that firefox didn't notice state changes while it was running, I was had to restart it or manually change the mode from firefox. I don't have access to NetworkManager right now, so I don't know how firefox works with that one.