fix(image-pipeline): skip pre-aborted source bitmap loads

This commit is contained in:
Matthias
2026-04-04 11:32:59 +02:00
parent c41dde871f
commit 77f8736579
2 changed files with 32 additions and 0 deletions

View File

@@ -90,6 +90,8 @@ export async function loadSourceBitmap(
throw new Error("ImageBitmap is not available in this environment.");
}
throwIfAborted(options.signal);
const promise = getOrCreateSourceBitmapPromise(sourceUrl);
return await awaitWithLocalAbort(promise, options.signal);
}