From c35da9aae0efc6eb79521e16948ddf05d0eaf9df Mon Sep 17 00:00:00 2001 From: Dale Curtis Date: Mon, 4 May 2026 21:33:26 +0000 Subject: [PATCH] [ImageDecoder] Ensure global promises are marked as handled There's no reason to spam the global error handler when these promises are unhandled, they are for convienence only. Fixes #934 --- index.src.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/index.src.html b/index.src.html index 6f5282dc..bc259f69 100644 --- a/index.src.html +++ b/index.src.html @@ -5441,16 +5441,18 @@ initialized as follows: 1. Assign a new [=list=] to {{ImageTrackList/[[track list]]}}. 2. Assign `-1` to {{ImageTrackList/[[selected index]]}}. + 3. Assign a new promise to {{ImageTrackList/[[ready promise]]}} and [=mark as handled|mark it as handled=]. 9. Assign {{ImageDecoderInit/type}} to {{ImageDecoder/[[type]]}}. 10. Assign `null` to {{ImageDecoder/[[codec implementation]]}}. 11. If `init.preferAnimation` [=map/exists=], assign `init.preferAnimation` to the {{ImageDecoder/[[prefer animation]]}} internal slot. Otherwise, assign 'null' to {{ImageDecoder/[[prefer animation]]}} internal slot. - 12. Assign a new [=list=] to {{ImageDecoder/[[pending decode promises]]}}. - 13. Assign `-1` to {{ImageDecoder/[[internal selected track index]]}}. - 14. Assign `false` to {{ImageDecoder/[[tracks established]]}}. - 15. Assign `false` to {{ImageDecoder/[[closed]]}}. - 16. Assign a new [=map=] to {{ImageDecoder/[[progressive frame + 12. Assign a new promise to {{ImageDecoder/[[completed promise]]}} and [=mark as handled|mark it as handled=]. + 13. Assign a new [=list=] to {{ImageDecoder/[[pending decode promises]]}}. + 14. Assign `-1` to {{ImageDecoder/[[internal selected track index]]}}. + 15. Assign `false` to {{ImageDecoder/[[tracks established]]}}. + 16. Assign `false` to {{ImageDecoder/[[closed]]}}. + 17. Assign a new [=map=] to {{ImageDecoder/[[progressive frame generations]]}}. 17. If |init|'s {{ImageDecoderInit/data}} member is of type {{ReadableStream}}: