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
- Firefox opens data URI as initial page
- Page posts
WEBDRIVER_INITmessage to window - Content script receives message, validates localhost URL
- Content script forwards to background script
- Background script connects to WebSocket server
Functions§
- build_
init_ data_ uri - Generates the initialization HTML page as a data URI.