nsICaptivePortalDetector

Methods

checkCaptivePortal(ifname, callback)

Perform captive portal detection on specific network interface.

Parameters

ifname The name of network interface, exception will be thrwon if the same interface has unfinished request.
callback Callbacks when detection procedure starts and finishes.

abort(ifname)

Abort captive portal detection for specific network interface
due to system failure, callback will not be invoked.

Parameters

ifname The name of network interface.

cancelLogin(eventId)

Cancel captive portal login procedure by user, callback will be invoked.

Parameters

eventId Login event id provided in |captive-portal-login| event.

finishPreparation(ifname)

Notify prepare phase is finished, routing and dns must be ready for sending
out XMLHttpRequest. this is callback for CaptivePortalDetector API user.

Parameters

ifname The name of network interface, must be unique.