AFAIK, and in alignment with Schien, there is no way to detect a captive portal from outside and before an actual connection to the physical network. And this is good because no one wants a mobile device to be connecting and disconnecting for all the available WIFI listed (public ssid). There are implications here too: which is the right captive, the first you enter? and perhaps security implications too.
So, for the case where an user selects the desired WIFI, it seems fine for a browser OS to look for the HTTP/HTML login or other login approaches. I looked at the bugzilla link and found nsICaptivePortalDetector. @Schien, do you have more links to this implementation and the background for this code? I wonder which is the approach Mozilla is using to work out this detection. Will the code attempt a connection to an external site? And perhaps it's also good for us to bring to this discussion on other ways to login in WIFI — what are the possibilities and challenges there. m On Wed, Dec 12, 2012 at 5:36 AM, Shih-Chiang Chien <[email protected]>wrote: > Hi Sriram, > > I am the Gecko dev for Captive portal on Firefox OS. The information of > "network requires captive portal login" is only available after user > connects to that wifi network. > I've provide a GAIA prototype that can receiving the notification about > the existence of captive portal and delegate to Browser app for displaying > login page. > You can take a look at the modification in https://bugzilla.mozilla.org/** > show_bug.cgi?id=780793<https://bugzilla.mozilla.org/show_bug.cgi?id=780793>. > > > On Wed 12 Dec 2012 03:04:48 PM CST, Sriram Krishnan wrote: > >> Hi , >> >> I am the GAIA dev for Captive portal , i have a few questions on how to >> proceed , >> >> >> As an initial step i would like to have wireless networks show up (on my >> B2G desktop), i would also like to know how to differentiate between normal >> wireless networks and networks that require captive portal to signin >> >> >> I have looked into the exiting gaia code at apps/settings/js/wifi.js >> >> var req = gWifiManager.getNetworks(); // line-285 >> >> Is there mock data that could use to get a list of the networks on the >> UI ? if so where do i get them and how do i use them ? >> i see this call in the JS , i need to know what it returns and what is >> the data that it returns and identify the networks that require opening a >> authentication window on the browser . Is there any attribute i should be >> looking for ? >> Also , will the url to post authentication username/password be available >> in the same call ?(I will ask more questions on what data would be returned >> after success/failure after this) >> >> Thanks >> Sriram >> ______________________________**_________________ >> dev-b2g mailing list >> [email protected] >> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g> >> > > -- > Shih-Chiang Chien > Mozilla Taiwan > > ______________________________**_________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g> > -- www.telasocial.com _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
