mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5025] [Feature]: Remove the 1 MiB JavaScript cap from Personal Extensions #2778
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#2778
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 @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5025
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Personal Extensions currently reject Browser JavaScript (
js) and Server JavaScript (serverJs) once either field exceeds 1,048,576 UTF-8 bytes. The same hard cap applies regardless of source, so an extension authored locally by the user—or created as a disabled draft for them—can be rejected even though the user explicitly owns and reviews that code.A fixed 1 MiB source ceiling is too restrictive for bundled or otherwise substantial extensions. It also makes local authoring, import, editing, backup/restore, and re-import behavior unnecessarily fragile.
Proposed solution
Remove the hard-coded 1 MiB validation cap from Personal Extension JavaScript source.
jsand ServerserverJslarger than 1 MiB to be created, saved, imported, restored, and re-imported without rejection solely because of this per-field cap.Alternatives considered
Raising the cap to another fixed value would only move the same failure point. A configurable cap would still surprise locally authoring users and create inconsistent portability between installations. Boundary-specific transport and decompression guards are preferable to rejecting an otherwise valid extension solely because its source crossed 1 MiB.
Additional context
The current limit is
MAX_EXTENSION_JS_BYTES = 1024 * 1024inpackages/shared/src/schemas/personal-extension.schema.ts, applied to bothjsandserverJsin the shared create/update payload schema.This is separate from the approximately 1 MB private extension-storage quota, the CSS limit, and sandbox protocol limits; those should not be removed accidentally as part of this work. Closed issue #2947 is adjacent historical context about limits, but it does not request this change.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: