mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cha1latte on GitHub (May 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/419
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The CSP introduced in
f35f8a47setsscript-src 'self'without'unsafe-eval', which blocks the extension loader'snew Function(...)call and prevents any extension from loading. This worked correctly in159f5a2. Original Discord post: https://discord.com/channels/1417099416812392641/1501008256355668098Expected behavior
The MVP extension loads and prints
[MVP-Ext] Loaded successfully.to the browser console.Actual behavior
The extension fails to execute. Two errors appear in the console:
This affects all extensions — the user was able to reproduce it with a do-nothing minimum-viable extension.
Steps to reproduce
f35f8a47(confirmed broken on currentmain; last known-good commit is159f5a2).The MVP extension is just:
Environment
Logs, screenshots, or video
Console output on load:
Additional context
The extension loader appears to compile extension JS strings into functions via
new Function(...), which browsers treat asevalfor CSP purposes. The new policy doesn't include'unsafe-eval', so every extension is blocked regardless of content.A few directions for a fix, in order of effort:
'unsafe-eval'toscript-src— easiest, but undoes part of the hardening fromf35f8a47.Blob+ dynamicimport()so it runs as a real ES module; allowblob:inscript-src. More targeted than'unsafe-eval'.<script type="module">from a known directory. Strictest, but a bigger refactor to the extension install flow.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 5, 2026):
Fixed,