зеркало из https://github.com/mozilla/gecko-dev.git
5650342313
The fact that nsICaptivePortalServiceCallback.complete got called with a true argument made it difficult to be sure when the you were actually in a captive portal, and when the network timed out. Moreover, one artefact of the initial plan for the captive portal service was that we'd cancel the timer after the first request succeeded, making the backoff mechanism not run at all, and only checked for CP when instructed by nsIOService. This patch changes captivedetect.js to send back success=false when the retry count is exceeded - it's equivalent to an aborted request anyway - doesn't cancel the timeer, and changes how we set the current state of the captive portal. MozReview-Commit-ID: 4RV50KPbEdt |
||
---|---|---|
.. | ||
test/unit | ||
CaptivePortalDetectComponents.manifest | ||
captivedetect.js | ||
moz.build | ||
nsICaptivePortalDetector.idl |