Legacy image downloaders frequently request broad <all_urls> permissions, extract unsanitized inline <svg> markup, or crash browser tabs when transcoding 4K galleries. Here are the 4 defense-in-depth security layers engineered into PixelHarvest:
- Least-Privilege
activeTabOnly: Cannot inspect any tab in the background—activates strictly when you click the toolbar icon. - Isolated XML
<svg>XSS Sanitizer: Parses inline SVGs viaDOMParser('image/svg+xml'), stripping<script>,<foreignObject>,on*handlers, andjavascript:URIs. - Zip-Slip Filename Sanitization: Neutralizes
../traversal sequences and OS reserved names into clean indexed filenames (pixelharvest-001-hero.jpg). - 3-Worker Memory Pool: Bounds concurrent
createImageBitmap+ HTML5 Canvas jobs with deterministicbitmap.close()cleanup so 4K galleries never crash Chrome.