Skip to content

[Feature]: Browser extension test suites and a versioned API compatibility matrix #46544

Open

Description

@chirag127

Problem or use case

I want to test every extension selected for a project inside Orca, both individually and in relevant combinations. An extension being listed as enabled does not establish that its content scripts, background worker, popup, permissions, or browser APIs work.

The goal is a repeatable extension regression and compatibility workflow, including a clear account of the extension capabilities Orca supports. “Test all” should mean running declared tests against a recorded inventory, not claiming arbitrary third-party behavior has been exhaustively verified.

Orca already exposes many extension APIs and reports load failures. The requested matrix adds versioned behavioral/conformance evidence to those existing capabilities and diagnostics.

Proposed solution

Add an extension test-session/runner that builds on Orca's browser automation and extension management:

  • Capture the selected extension inventory, versions/build identities, manifest versions, profile, browser/runtime version, and execution host for each run.
  • Run a declared smoke/regression suite for each selected extension; optionally run specified combinations to detect interactions. An extension without a suite is reported as untested, not passed.
  • Provide automation targets for supported extension surfaces: toolbar/action popup, options page, side panel, extension tabs, content scripts in relevant frames, and background/service-worker contexts. Identify context type, profile, extension ID, and current build/runtime. Preserve real popup lifecycle/user-gesture behavior and re-resolve worker targets after suspension/restart. Expose context-specific logs and lifecycle events.
  • Exercise realistic flows: install/update/startup, navigation and SPA changes, messaging, worker suspend/resume, permission grant/revoke and user-gesture-dependent behavior, storage persistence, downloads, and extension disable/uninstall cleanup.
  • Provide clean test profiles, fixture pages and test data, deterministic readiness waits, and retained artifacts: screenshots, console/worker errors, network evidence where supported, traces, and machine-readable results. Use test-owned extension IDs or an isolated installation environment so install/update/uninstall suites cannot affect normal profiles sharing an ID.
  • Publish a versioned extension capability matrix with conformance fixtures. Include manifest/runtime support, content-script injection and frames, messaging, storage, tabs/windows, action/popups, options, side panels, permissions, cookies/privacy, scripting, webRequest/DNR/proxy, downloads, context menus, commands, notifications, offscreen documents, identity flows, and native messaging where applicable.
  • Record implementation support (supported, partial, unavailable, unknown) separately from observed test outcome (pass, fail, skipped, untested) for the actual host/profile. Attribute failures to evidence: extension defects, permission state, missing native helpers, and host restrictions are different from absent browser APIs. Link concrete missing capabilities to their focused implementation issues.
  • Compare relevant results against a supported reference browser where available, recording browser/version differences rather than treating a reference result as proof of Orca compatibility.

An initial deliverable can combine declared-suite orchestration with representative content-script, actual popup/options, worker-messaging, and persistence fixtures. Expand the matrix incrementally, retaining explicit untested entries for the remaining capabilities.

Acceptance criteria

  • A run over multiple fixture extensions reports a separate result for each extension and each selected combination.
  • A content-script or worker failure causes the corresponding test to fail and identifies the extension, context, and build.
  • A missing test suite, unsupported API, unavailable target, and skipped platform are distinguishable from a passing test.
  • Tests can interact with actual supported popup/options/side-panel surfaces. Opening popup HTML in an ordinary tab does not count as verification of the real action popup.
  • The report links each claimed API capability to behavioral conformance assertions for the tested runtime/version, rather than checking only that an API function exists.
  • The same declared extension set and fixture inputs can be reproduced in an isolated profile without modifying normal browsing state.
  • A known unsupported capability and an implemented API with a failing fixture have different support/outcome records. Install/update/uninstall fixtures cannot mutate a normal profile's shared extension installation.

Alternatives or additional context

External browser test runners and manually inspecting each extension are useful today. The requested integration makes extension context targeting, compatibility coverage, and the resulting evidence available in the same Orca workflow as development and reload.

Related implementation requests: #43075 (proxy), #39914 (downloads), #35178 (desktop-rendered remote-workspace pages), #45648 (userscripts), and #46215 (iCloud Passwords). This request coordinates declared tests and capability evidence; those issues retain their individual implementation scopes. Existing groundwork includes #39578 (CLI list/manual reload) and #34756 (side panels).

Source references: existing extension API surface, known-unsupported-feature reporting, and actual popup host. Source presence is not a substitute for the requested behavioral tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions