Skip to content

Map source links open in the whole window; the sample browser tolerates frames on other sites - #292

Merged
krisnye merged 1 commit into
mainfrom
krisnye/architecture-source-links
Nov 30, 2026
Merged

krisnye merged 1 commit into
mainfrom
krisnye/architecture-source-links

Conversation

@krisnye

@krisnye krisnye commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Following a map's source link inside the sample browser threw SecurityError: … accessing a cross-origin frame and left the frame on GitHub's refusal to be framed.

  • Viewer: a pinned note's source link opens in the whole window (target="_top"). GitHub, which can't be shown in a frame, replaces the page; Back returns to the sample browser at the same address, and so to the same map view, which lives in the address. Opened alone, the map behaves the same. @adobe/ecs-architecture-viewer 0.1.2.
  • Sample browser: a frame showing another site's page, or the browser's own for one it couldn't show, isn't read: following it and listening to it skip such a frame instead of throwing, so any link out of a sample leaves the browser usable.

Tests

A site test sends a sample's frame to another site, then checks there are no page errors and another tab still opens; a note test checks the link's target. The sample browser's 21 tests and the viewer's (with CI=true) pass.

…a frame on another site alone

Co-Authored-By: OpenCode <noreply@opencode.ai>
@krisnye
krisnye merged commit 1e807eb into main Nov 30, 2026
4 checks passed
@krisnye
krisnye deleted the krisnye/architecture-source-links branch November 30, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant