Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:A9T9 RPA Firefox Browser Environment

From Leeroopedia
Knowledge Sources
Domains Browser_Automation, RPA
Last Updated 2026-10-22 17:48 GMT

Overview

Firefox browser running the Ui.Vision WebExtension with promise-based APIs but no debugger (CDP) support — synthetic DOM events only for trusted input.

Description

This environment provides a Firefox browser context for the Ui.Vision RPA extension. Firefox supports the WebExtension API but lacks the Chrome DevTools Protocol (CDP) debugger API entirely. As a result, the uiv.browser.* API tier (trusted CDP input via chrome.debugger) does not exist on Firefox — clicks use uiv.page.click (synthetic DOM events), typing uses uiv.page.fill, and real OS input requires uiv.desktop.* (XModule). The Firefox build is produced with BROWSER=firefox webpack flag and uses promise-based browser APIs natively.

Usage

Use this environment when running Ui.Vision macros in Firefox. The AI macro agent prompt is overlaid with a Firefox banner that replaces all uiv.browser.* references with uiv.page.* equivalents. The set_macro and create_macro tools refuse scripts that call uiv.browser.* on Firefox before the script runs.

System Requirements

Category Requirement Notes
OS Windows, macOS, or Linux Firefox runs on all three
Browser Mozilla Firefox WebExtension API; store build id is kantu@a9t9.com
Disk Minimal Extension storage uses browser IndexedDB
Hardware Standard desktop No GPU required

Dependencies

System Packages

  • Mozilla Firefox browser

Firefox-Specific API Differences

  • No chrome.debugger API — CDP trusted input unavailable
  • Promise-based browser.* API (no callback pattern needed)
  • browser.runtime.getBrowserInfo available for version detection
  • Firefox Developer Edition identified by non-store extension ID

Key NPM Dependencies

  • Same as Chromium build (shared codebase via src/common/web_extension.js adapter)

Credentials

Same as Chromium environment:

  • ANTHROPIC_API_KEY — Anthropic Claude API key
  • OCR_SPACE_API_KEY — OCR.Space cloud API key
  • OPENROUTER_API_KEY — OpenRouter API key

Quick Install

# Build the Firefox extension from source
npm install
npm run build-ff  # produces dist/ for Firefox

# Load in Firefox: about:debugging > This Firefox > Load Temporary Add-on

Code Evidence

Firefox detection from src/common/web_extension.js:126-129:

Object.assign(Ext, {
  isFirefox: () => {
    return /Firefox/.test(self.navigator.userAgent)
  }
})

Firefox prompt overlay — banner and bullet replacement from src/services/ai/macro_agent/service.ts:69-78:

export const FIREFOX_PROMPT_BANNER =
  'THIS INSTALL RUNS FIREFOX — uiv.browser.* DOES NOT EXIST HERE. Firefox gives extensions no debugger API, so uiv.browser.click / type / hover / press / down / up / move are refused by set_macro and create_macro before the script runs. ' +
  'Clicks are uiv.page.click, typing is uiv.page.fill ...'

export const applyFirefoxPromptOverlay = (prompt: string, firefox: boolean = isFirefox()): string => {
  if (!firefox) return prompt
  return FIREFOX_PROMPT_BANNER + prompt.replace(/^( {2}\* uiv\.browser\.\* — ).*$/m, FIREFOX_BROWSER_BULLET)
}

Dev/test browser detection for Firefox from src/services/mcp_bridge/detect.ts:22-32:

const byFirefoxDevBuild = new Promise<boolean>(resolve => {
  try {
    const rt: any = chrome.runtime as any
    if (typeof rt.getBrowserInfo !== 'function') return resolve(false) // not Firefox
    // Store build carries the fixed id kantu@a9t9.com; any other id is a developer build
    resolve(chrome.runtime.id !== 'kantu@a9t9.com')
  } catch (e) { resolve(false) }
})

Common Errors

Error Message Cause Solution
uiv.browser.* is refused by set_macro Firefox has no debugger API Use uiv.page.click / uiv.page.fill instead of uiv.browser.*
Firefox permission request failed <all_urls> permission not granted Call ensureAllUrlsPermission() before browser-scope commands
No such native application XModule2 not registered with Firefox Install Desktop Automation app and restart Firefox

Compatibility Notes

  • No CDP: The debugger permission and chrome.debugger.* API are unavailable. All browser-scope input uses synthetic DOM events (uiv.page.*).
  • Promise API: Firefox returns promises natively from browser.* APIs — the web_extension.js adapter handles this by using browser directly when chrome is undefined.
  • Developer Edition: Identified by extension ID != kantu@a9t9.com (the store build ID). Used for tokenless MCP bridge pairing.
  • Proxy: Firefox uses the proxy.onRequest listener API (listener_api_proxy.ts) instead of Chrome's PAC/settings API.
  • Sidebar: Firefox uses sidebarAction instead of sidePanel.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment