Bug Description
image.getSizeAsync() never resolves when running a plugin in Figma on Windows + Chromium-based browsers (Chrome, Edge). The Promise hangs indefinitely with no error thrown.
The same code works perfectly on:
- macOS Chrome
- macOS Safari / Firefox
- Figma Desktop App (all platforms)
Steps to Reproduce
- Open Figma in Chrome on Windows
- Select a frame/rectangle with an image fill
- Run a plugin that calls:
const image = figma.getImageByHash(imageFill.imageHash);
const size = await image.getSizeAsync(); // ← hangs forever, no error
Expected Behavior
getSizeAsync() should resolve with { width, height }.
Actual Behavior
The Promise never resolves and never rejects. No error is thrown in the console. The plugin silently stalls.
Additional Notes
figma.getImageByHash()returns a valid Image object (not null)image.getBytesAsync()on the same image works fine- Only
getSizeAsync()hangs - Confirmed across multiple files and image types
- Confirmed working on: Figma Desktop App (both macOS and Windows), Chrome and Safari on macOS, and non-Chromium browsers (Firefox) on Windows. The issue is isolated to Chromium-based browsers on Windows only.
