mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
resolve decode promise in abort_request when request is CompletelyAvailable
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
d6b7b706e2
commit
1526af19f2
1 changed files with 2 additions and 0 deletions
|
@ -535,6 +535,8 @@ impl HTMLImageElement {
|
|||
|
||||
if matches!(state, State::Broken) {
|
||||
self.reject_image_decode_promises();
|
||||
} else if matches!(state, State::CompletelyAvailable) {
|
||||
self.resolve_image_decode_promises();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue