freeze-dry icon indicating copy to clipboard operation
freeze-dry copied to clipboard

Handle 404s and mismatching resource types

Open Treora opened this issue 6 years ago • 1 comments

For example, we currently happily inline an html 404 page as if it was the desired resource, producing e.g. <img src="data:text/html;base64,......">. We could consider alternatives, such as replacing such URLs with about:invalid.

Treora avatar Aug 07 '18 12:08 Treora

I just noticed that when fetching a stylesheet results in an html error page, styles declared inside that page (inside a <style> tag) may actually be interpreted and applied by the browser (observed in Firefox and Chromium). Reminds of #17 (even though this does not corrupt the HTML itself, it does corrupt the applied styles).

This needs fixing.

Treora avatar Jun 26 '19 12:06 Treora