Skip to content

Enhance sandbox support and refactor transport and error handling#101

Merged
atldays merged 11 commits into
mainfrom
develop
May 25, 2026
Merged

Enhance sandbox support and refactor transport and error handling#101
atldays merged 11 commits into
mainfrom
develop

Conversation

@atldays
Copy link
Copy Markdown
Member

@atldays atldays commented May 25, 2026

No description provided.

github-actions Bot and others added 11 commits May 19, 2026 14:07
…V2 and MV3

- Add `addSandbox`, `appendSandboxes`, and `setSandboxContentSecurityPolicy` methods
- Implement builders for sandbox pages and content security policies in MV2 and MV3
- Update tests for manifest sandbox functionality
…gistry support

- Split `TransportMessage` into `TransportSender` and `TransportReceiver`
- Add `TransportMessage` implementation combining sender and receiver
- Introduce `TransportDeclarationLayer.Sandbox` and `sandbox.d.ts` handling
- Implement `TransportBuilder` for sandbox transport initialization
- Add `destroy` method and cleanup mechanism to `RegisterTransport`
- Move `serializeError` and `restoreError` from `MessageManager` to `error.ts`
- Replace inline error handling with shared utility functions across the message layer
- Add comprehensive tests for error serialization and restoration logic
…nication support

- Add `SandboxMessage`, `SandboxHost`, `SandboxInner`, and `SandboxMemory` classes.
- Implement in-memory and iframe-based sandbox communication.
- Add `ReadyFrame` utility for iframe readiness handling.
- Extend tests to cover sandbox message system, frame initialization, and transport.
- Add typed CSP configs for view entrypoints and sandbox pages
- Merge per-entrypoint CSP options into MV2 and MV3 manifest output
- Wire page, popup, sidebar, and offscreen CSP into extension-pages CSP
- Keep sandbox CSP generation browser-aware
- Cover CSP builders and manifest merge behavior with tests
- Implement `SandboxViewFinder` extending `ViewCspFinder` to handle sandbox CSPs.
- Add `sandbox.ts` fixture to define sandbox CSP configurations.
- Update `Sandbox` to fetch CSPs using view-based methods.
- Adjust manifest to include sandbox CSPs via updated view logic.
- Add tests to validate sandbox CSP collection and integration.
@atldays atldays merged commit b9979af into main May 25, 2026
5 checks passed
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