<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 6:07 PM, Siddharth Agarwal <span dir="ltr"><<a href="mailto:sid@mozillamessaging.com">sid@mozillamessaging.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    On <a href="tel:27-06-2011%2016" value="+12706201116" target="_blank">27-06-2011 16</a>:02, Bryan Clark wrote:
    <blockquote type="cite">Hey -
      <div><br>
      </div>
      <div>I've been working on a Thunderbird add-on that tries to
        detect <a href="http://en.wikipedia.org/wiki/Captive_portal" target="_blank">captive
          portals</a>.  For Thunderbird (compared to Firefox) I think
        this is a fairly straightforward problem to solve.  I wanted to
        talk a bit about my solution to the problem and what issues
        still exist. I'm not sure if this is something that could be
        merged into Thunderbird in the future but I think that's a
        conversation that makes sense to have; it also makes sense to
        have someone else write that code. ;-)</div>
    </blockquote>
    <br></div>
    I think doing something like what Microsoft does to detect captive
    portals in Windows 7 is the sanest approach to the problem. See
    <a href="http://blog.superuser.com/2011/05/16/windows-7-network-awareness/" target="_blank">http://blog.superuser.com/2011/05/16/windows-7-network-awareness/</a>
    and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=562917" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=562917</a></div></blockquote><div><br></div><div>These are about the same as I'm doing now.  First bit is getting a known static file and watching for redirects.  They claim to also examine the file to ensure it has the correct content, that is something I had tried with the hash of the file but was a bit concerned about the file possibly changing.  So far I haven't changed the file at all so it might not be a real concern, once it's in version control and I'm checking the contents with tests it's likely not an issue.</div>
<div><br></div><div>I'm not doing the DNS query which is also possible to do within an add-on but I'm relying on the the platform network connection for that information.  This piece seems like it could make sense for the future elements where we want to help people diagnose their connection issues however the previous steps already detected a captive portal so it's a bit unnecessary for solving the problem.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF" text="#000000">
    I don't think the privacy implications to this are anything beyond
    those of displaying the Thunderbird start page.<br></div></blockquote><div><br></div><div>Agreed, given the same approach I think there is nothing to worry about. </div></div>