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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 data:uri images should load if loadsImagesAutomatically is disabled<br/>
5 <script>
6 if (window.testRunner) {
7 testRunner.waitUntilDone();
eseidel 2014/06/26 16:24:35 You shouldn't have to wait until done? onload won
mnaganov (inactive) 2014/06/26 16:42:40 Thanks for the tip! Indeed, this isn't needed.
8 testRunner.dumpAsText();
9 }
10 if (window.internals)
11 internals.settings.setLoadsImagesAutomatically(false);
12 function imageLoaded() {
13 document.write("PASS");
14 if (window.testRunner)
15 testRunner.notifyDone();
16 }
17 function timeout() {
18 document.write("FAIL");
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }
22 setTimeout(timeout, 15000);
eseidel 2014/06/26 16:24:35 You souldn't need this. content_shell knows how t
mnaganov (inactive) 2014/06/26 16:42:40 Removed the timeout. I can't use onerror because l
23 </script>
24 <img onload="imageLoaded()" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA GQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBz wciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsW bIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS 5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII=">
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698