Skip to content

script: Ignore http status code error in image fetching - #46892

Merged
jdm merged 2 commits into
servo:mainfrom
yodalee:issue46696_image_error_events
Jul 30, 2026
Merged

jdm merged 2 commits into
servo:mainfrom
yodalee:issue46696_image_error_events

Conversation

@yodalee

@yodalee yodalee commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

According to the issue, this PR simplified the status in HTMLImageElement.
In image fetching, the returned HTTP status code is no longer checked.
As long as the image data can be successfully decoded
an error HTML like 404 will be ignored, and set the status to Ok(())

Testing: After this change, there are two test cases in wpt that respond 404 while fetching image will become PASS.

Fixes: #46696

@yodalee
yodalee requested a review from gterzian as a code owner July 30, 2026 14:25
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 30, 2026
@yodalee

yodalee commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

This PR contain only clean commits that created with "git commit -s" without rebase. Also I remove the space inside my name. See if this time it works.
If not, I think there are some more deeper reason.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 30, 2026
@jdm

jdm commented Jul 30, 2026

Copy link
Copy Markdown
Member

There was an upstream issue in the DCO app that has now been fixed, so this should work correctly.

@jdm
jdm added this pull request to the merge queue Jul 30, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 30, 2026
Merged via the queue into servo:main with commit a2d1cfb Jul 30, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image element should only fire error events for network errors

3 participants