[GH-ISSUE #4319] [Feature]: Support explicitly trusted full-page External Extensions #2339

Closed
opened 2026-10-21 05:47:25 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4319

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Legacy Marinara browser extensions such as WeatherTweaker v2.1.0 rely on the host page DOM, browser storage, and page lifecycle APIs. Marinara can import these packages, but the capability-restricted Worker sandbox intentionally prevents them from functioning.

Proposed solution

Keep the capability-restricted sandbox as the default. Add a separate full_page_access permission for externally imported legacy Browser Extensions that:

  • remains unavailable unless both External Extension gates are enabled;
  • requires explicit approval of the exact SHA-256 revision;
  • displays an unmistakable warning that the extension runs in Marinara's page and can read or modify visible page data, use browser storage and network APIs, and call same-origin APIs;
  • never applies to Professor Mari-authored drafts;
  • stops and requires reapproval whenever its executable content or permission set changes.

Recognize legacy marinara.extension v1 imports without a capability declaration as full-page extensions so existing WeatherTweaker packages receive the appropriate review flow instead of silently failing in the safe sandbox.

Alternatives considered

  • Expanding the safe Worker API until WeatherTweaker runs: not practical because the extension traverses Marinara's DOM and React internals and renders directly into the host page.
  • Running every external extension with page access: rejected because capability-based sandboxing should remain the least-privilege default.
  • Silently restoring unrestricted execution: rejected because users must understand and approve this materially broader authority.

Additional context

Implementation owner: @SpicyMarinara

WeatherTweaker v2.1.0 was inspected statically; its release asset is a legacy Marinara extension package and was not executed during triage.

Template check

The requested problem, proposed solution, alternatives, and context are provided above.

Originally created by @SpicyMarinara on GitHub (Jul 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4319 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Legacy Marinara browser extensions such as [WeatherTweaker v2.1.0](https://github.com/Mitaska/WeatherTweaker/releases/tag/v2.1.0) rely on the host page DOM, browser storage, and page lifecycle APIs. Marinara can import these packages, but the capability-restricted Worker sandbox intentionally prevents them from functioning. ## Proposed solution Keep the capability-restricted sandbox as the default. Add a separate `full_page_access` permission for externally imported legacy Browser Extensions that: - remains unavailable unless both External Extension gates are enabled; - requires explicit approval of the exact SHA-256 revision; - displays an unmistakable warning that the extension runs in Marinara's page and can read or modify visible page data, use browser storage and network APIs, and call same-origin APIs; - never applies to Professor Mari-authored drafts; - stops and requires reapproval whenever its executable content or permission set changes. Recognize legacy `marinara.extension` v1 imports without a capability declaration as full-page extensions so existing WeatherTweaker packages receive the appropriate review flow instead of silently failing in the safe sandbox. ## Alternatives considered - Expanding the safe Worker API until WeatherTweaker runs: not practical because the extension traverses Marinara's DOM and React internals and renders directly into the host page. - Running every external extension with page access: rejected because capability-based sandboxing should remain the least-privilege default. - Silently restoring unrestricted execution: rejected because users must understand and approve this materially broader authority. ## Additional context Implementation owner: @SpicyMarinara WeatherTweaker v2.1.0 was inspected statically; its release asset is a legacy Marinara extension package and was not executed during triage. ## Template check The requested problem, proposed solution, alternatives, and context are provided above.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 30, 2026):

Implemented and merged into staging via #4320. Full-page compatibility remains opt-in, external-only, exact-hash approved, and separately disclosed; the sandbox remains the default for ordinary Browser Extensions. The docs translation follow-up remains tracked in #4321.

<!-- gh-comment-id:5137454143 --> @SpicyMarinara commented on GitHub (Jul 30, 2026): Implemented and merged into `staging` via #4320. Full-page compatibility remains opt-in, external-only, exact-hash approved, and separately disclosed; the sandbox remains the default for ordinary Browser Extensions. The docs translation follow-up remains tracked in #4321.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2339
No description provided.