Skip to content

spec C22: host-owned traces are still written by WebViews and Electron renderers #128

Closed

Description

@krassx

The JavaScript platform spec (https://github.com/bugsee/specs/blob/main/sdk/reporting/platforms/javascript.md, 'Host-owned traces in WebViews and Electron renderers', C22, P1): a trace name must have one writer per session, so a launch must not write a name its host already writes.

As built: only displays and capture are excluded (@bugsee/electron renderer passes hostOwnedTraces: ['displays','capture']; @bugsee/webview passes ['displays']). Target per the spec's per-host table: a native WebView drops battery, charging, battery_*_time_s, orientation, app_state, connection, fps, view, ram_system_advertised, displays, capture; an Electron renderer drops displays, capture and ram_js_heap_* (main writes those for its own V8 heap). @bugsee/webview still builds the full browser producer list.

The host-owned lists now use the TraceName registry constants, so the change is a list edit plus tests.

Activity

  1. krassx commented on Oct 27, 2026

    @krassx
    ContributorAuthor

    Addressed by #132 (host-owned trace suppression driven by the session handshake). #131's guard now scans every product file for wire-name literals, so #132's trace-suppression.ts must use the TraceName constants.

  2. krassx commented on Oct 29, 2026

    @krassx
    ContributorAuthor

    Closing: addressed by #132 (host-owned trace suppression for WebViews and Electron renderers).

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