Skip to content

snapshot: resolve and redact the out-of-process frame URL, count <frame>/<object> too #27

Description

@nibzard

Follow-up to #19. For a frame absent from the DOM snapshot (out of process), the Iframe node carries properties.url, which is the raw src attribute:

  • not resolved against the document base URL (DOMSnapshot already has documentURL/baseURL per document), so a sandboxed same-origin src="/render?..." is handed over unopenable;
  • not passed through credential redaction, so ?client_secret=... style embeds land in model context;
  • the check is tagName === 'IFRAME' on a non-ignored visit, so <frame>/<object>/<embed> documents and aria-hidden iframes are neither counted nor offered a URL, and case is not normalised the way untrusted.ts does.

Where: src/core/snapshot.ts (visit, the out-of-process branch), src/core/untrusted.ts.

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