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

Unified Diff: LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html

Issue 355043002: Fix loading of data: URI images wrt loadsImagesAutomatically setting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now correctly Created 6 years, 6 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/loader/data-uri-images-load-when-loading-images-automatically-disabled-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html
diff --git a/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html b/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html
new file mode 100644
index 0000000000000000000000000000000000000000..e5dec7376c8959118ec1fc9a46181d7b180f0ed0
--- /dev/null
+++ b/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<body>
+data:uri images should load if loadsImagesAutomatically is disabled<br/>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ if (window.internals)
+ internals.settings.setLoadsImagesAutomatically(false);
+</script>
+ This test verifies that data: uri images are loaded regardless of loadsImagesAutomatically setting value.
+ On success, the image must be loaded, and &quot;PASS&quot; message printed.
+ FAIL
+ <img onload="document.write('PASS')" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII=">
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698