Automatic connection switching

Clayton Williams <[email protected]> Wed, 15 Jun 2005 13:36:58 -0400
Newsgroups gmane.comp.mozilla.devel.small-devices
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Right now the docShell doesn't have any windows CE specific content. 
winEmbed manages minimo's connection, and it causes problems if the 
established connection dies during program execution. For example, if 
you're using a cradle pass-through connection and then disconnect the 
cradle, minimo won't make an attempt to connect with GPRS if you click 
an http link, it will just give a server not found error. As a 
workaround, the connection manager code seems to get called again 
whenever the go button is pressed, which makes it possible to 
reestablish a connection, but regular click events don't get caught at 
this stage and pass down to the docShell. It's also a pain if you want 
to browse local content without a connection, because minimo will still 
try to connect.

This doesn't seem like the kind of thing the UI should be managing, but 
I'm not sure where the code would go otherwise. Where is the connection 
handled normally?

Thanks,
-Clay