GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(plugins): broaden SVG plain-geometry boundary and log rejected icons in dev builds by Hona · Pull Request #261 · anomalyco/opencode-rune Conversation
Member
Fixes the Boundary Audit (
|
| Icon | Before (feat(plugins): contract 1.6 with hardened plugin-declared SVG icons #251) | After |
|---|---|---|
plugins/goal/icons/active.svg |
pass | pass |
plugins/goal/icons/complete.svg |
pass | pass |
plugins/goal/icons/paused.svg |
pass | pass |
plugins/pairing/icons/dialog-close.svg |
pass | pass |
plugins/pairing/icons/pair.svg |
pass | pass |
plugins/wsl/icons/chevron.svg |
pass | pass |
plugins/wsl/icons/download.svg |
pass | pass |
plugins/wsl/icons/warning.svg (clip-rule="evenodd") |
FAIL | pass |
Upstream Figma browser/assets/{viewport-device-chevron,viewport-rotate}.svg (overflow="visible", style="display: block;") |
FAIL | pass |
dialog-wsl vs proof/reference/captures/local/ warning icon box:
[620..660, 320..360]): 0 diff px (>2), maxDelta = 0, filled triangle 520/520 px.[620..660, 320..360]): 0 diff px (>2), maxDelta = 1, filled triangle 520/520 px.[930..990, 480..540]): 0 diff px (>2), maxDelta = 1, filled triangle 1200/1200 px.[930..990, 480..540]): 0 diff px (>2), maxDelta = 0, filled triangle 1200/1200 px.use-bomb, filter-dos, huge-paths-20k, deep-2000, script-tag, foreign-obj, external-href, clip-path-attr, mask-attr, bad-clip-rule, bad-fill-rule, bad-style-css, tiny-dash-dos, zero-vb, malformed.scripts/guardrails.ps1 (5/5), cargo check --workspace, and scripts/web.ps1 -Check green.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ons in dev builds
- Allow Figma and common plain-geometry SVG attributes with strict value validation in crates/opencode-plugin-runtime/src/svg/{mod,validate}.rs: clip-rule and fill-rule (nonzero|evenodd only), stroke-dasharray (<= 32 finite entries, sum >= 0.5 to block tiny-dash DoS), stroke-dashoffset, paint-order, shape-rendering, vector-effect (none|non-scaling-stroke), visibility, display (none emitted; block/inline/initial dropped), color, rgb()/rgba()/inherit paints, root overflow/version/xml:space/preserveAspectRatio/percentage dims (when viewBox is present), and validated style declarations (refusing arbitrary CSS properties).
- Keep all security boundaries intact: refuse <script>, <foreignObject>, <style>, <image>, <use>, <filter>, <defs>, <mask>, <clipPath>, on* handlers, href/xlink:href/src/filter/clip-path/mask/marker-*, external URLs/data URIs/url(...), arbitrary CSS, and size/depth/element/shape/path/dash limits.
- Return structured error strings naming the offending element, attribute, or CSS property, and emit a dev-build stderr diagnostic (`plugin <id>: icons/<name>.svg rejected: <reason>`) in icons::replace_plugin and icons::intern_svg so rejected icons are never silent during development.
- Fixes the dialog-wsl warning icon regression introduced by #251 (plugins/wsl/icons/warning.svg uses clip-rule="evenodd").
There was an error while loading. Please reload this page.
|
PR test build retired — merged into |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ing (#266) - Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257, #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296) into docs/upstream-sync/ledger.{json,md} - Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to BROWSER-UI - Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.