The current captive portal state.
ConstcanonicalReturn the canonical captive-portal detection URL. Read-only.
ConstonThis notification will be emitted when the captive portal service has determined that we can connect to the internet. The service will pass either captive if there is an unlocked captive portal present, or clear if no captive portal was detected.
ConstonFired when the captive portal state changes.
Returns the time difference between NOW and the last time a request was completed in milliseconds.
Returns the current portal state, one of unknown, not_captive, unlocked_portal, locked_portal.
This API provides the ability detect the captive portal state of the users connection.
Permissions:
captivePortalNot allowed in: Content scripts, Devtools pages