We have a support page that explains how our captive portal detection works https://support.mozilla.org/en-US/kb/captive-portal.
If you're curious why we changed it in the first place, see our bug tracker at https://bugzilla.mozilla.org/show_bug.cgi?id=2049252.