SVG as image in HTML page served with HTTP status > 400 is not displayed
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: marek.raida, Unassigned)
Details
(Keywords: regressionwindow-wanted)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
Open HTML page with <img> element.
Image on source is not found and server is serving HTTP Status 404 with image/svg+xml content type and valid SVG document in a body.
Open the same link in empty tab/window (directly, without HTML IMG scope).
Example URL: https://toolbox.ic.cz/ha.htm
Two 404 images are served, one returning bitmap and one returning SVG
Actual results:
Bitmap response body is displayed as expected.
Vector (SVG) response body is not displayed and default broken image icon is rendered instead.
Opening standalone SVG document with HTTP status 404 is displaying it properly.
Expected results:
Serving SVG document with 404 status code should render it in IMG element in HTML document, the same way it is displaying it standalone or as bitmap image.
It worked in elder versions of Firefox (before Servo, for sure).
Other browsers (Chromium based) are displaying it as expected.
Updated•6 years ago
|
Updated•6 years ago
|
![]() |
||
Comment 1•6 years ago
|
||
Maybe duplication of bug 1150993
Reporter | ||
Comment 2•6 years ago
|
||
Yes, it is basically the same, with fresh information, that it IS working in all Chromium browsers now, and Firefox differs, and that, I'm pretty sure about it, I saw it working in Firefox somewhere between versions 50-60...
Updated•6 years ago
|
Description
•