Class: DevToolsAuth

DevToolsAuth

new DevToolsAuth()

DevToolsAuth displays a prompt asking the user to scan a QR code as part of pairing the device with a machine running Firefox desktop.

DevToolsAuth displays a prompt asking the user to scan a QR code as part of pairing the device with a machine running Firefox desktop. This takes place when debugging via WiFi to exchange keys.

Source:
Requires:
  • module:DevToolsAuthDialog
  • module:ScreenManager

Requires

  • module:DevToolsAuthDialog
  • module:ScreenManager

Methods

_checkImage(url)

Dispatches an event to check a possible pairing candidate image.

Dispatches an event to check a possible pairing candidate image.

Parameters:
Name Type Description
url String

Object URL of the image to check

Source:

abort()

User chose to abort the auth process.

User chose to abort the auth process.

Source:

capture()

Capture another image and send to DevTools.

Capture another image and send to DevTools.

Source:

handleEvent(evt)

General event handler interface.

General event handler interface. Displays the pair dialog when needed.

Parameters:
Name Type Description
evt DOMEvent

The event.

Source:

onHide()

Dialog is now hidden, perform cleanup.

Dialog is now hidden, perform cleanup.

Source:

start()

Begin capturing images that DevTools will attempt to find a QR code in for authentication.

Begin capturing images that DevTools will attempt to find a QR code in for authentication.

Source:

stop()

An image was successfully decoded, so further capture can stop.

An image was successfully decoded, so further capture can stop.

Source: