Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Unified Diff: LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype.html

Issue 579673002: Check that an img element with src set to a data URI with an invalid mediatype renders Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and addressed #3 Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype.html
diff --git a/LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype.html b/LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype.html
new file mode 100644
index 0000000000000000000000000000000000000000..59a1a5b4557a26d2e1c147369c9eb3c23afca61b
--- /dev/null
+++ b/LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<!--
+ Check that we accept an invalid data URI such as one with an incomplete
+ mediatype (only top-level type without a slash and subtype) or one
+ including illegal character (e.g. backshlash) for backward compatibility.
+ -->
+<img src="data:image;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==">
+<img src="data:image\png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==">
+<script>
+if (window.testRunner)
+ testRunner.dumpAsTextWithPixelResults();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/images/image-from-data-uri-with-invalid-mediatype-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698