Module assets

Module assets 

Source
Expand description

Static assets and HTML templates for driver initialization. Static assets and HTML templates for driver initialization.

This module generates the HTML page that Firefox loads on startup to establish the WebSocket connection between the browser extension and the Rust driver.

§Connection Flow

  1. Firefox opens data URI as initial page
  2. Page posts WEBDRIVER_INIT message to window
  3. Content script receives message, validates localhost URL
  4. Content script forwards to background script
  5. Background script connects to WebSocket server

Functions§

build_init_data_uri
Generates the initialization HTML page as a data URI.