Skip to content

Commit 47fcef3

Browse files
committed
[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
1 parent 2f46fe3 commit 47fcef3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎index.src.html‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5899,14 +5899,16 @@
58995899
1. Assign `true` to {{ImageDecoder/[[closed]]}}.
59005900
2. Clear {{ImageDecoder/[[codec implementation]]}} and release associated
59015901
[=system resources=].
5902-
3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, reject
5903-
{{ImageTrackList/[[ready promise]]}} with |exception|. Otherwise
5902+
3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, [=reject=]
5903+
{{ImageTrackList/[[ready promise]]}} with |exception| and [=mark
5904+
as handled|mark it as handled=]. Otherwise
59045905
perform these steps,
59055906
1. Remove all entries from {{ImageDecoder/[[ImageTrackList]]}}.
59065907
2. Assign `-1` to {{ImageDecoder/[[ImageTrackList]]}}'s
59075908
{{ImageTrackList/[[selected index]]}}.
5908-
4. If {{ImageDecoder/[[complete]]}} is false resolve
5909-
{{ImageDecoder/[[completed promise]]}} with |exception|.
5909+
4. If {{ImageDecoder/[[complete]]}} is false, [=reject=]
5910+
{{ImageDecoder/[[completed promise]]}} with |exception| and [=mark
5911+
as handled|mark it as handled=].
59105912

59115913
ImageDecoderInit Interface {#imagedecoderinit-interface}
59125914
--------------------------------------------------------

0 commit comments

Comments
 (0)