OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 function runTest() { |
| 6 if (window.testRunner && !testRunner.globalFlag) { |
| 7 // Setting ImagesAllowed is async. Reload to ensure it has been propagat
ed to loaders. |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.setImagesAllowed(false); |
| 10 testRunner.globalFlag = 1; |
| 11 testRunner.queueReload(); |
| 12 return; |
| 13 } |
| 14 |
| 15 var image = document.getElementsByTagName('img')[0]; |
| 16 if (image.naturalHeight != 0 || image.naturalWidth != 0) |
| 17 document.write('FAIL: images should not be loaded when images are disabl
ed'); |
| 18 else |
| 19 document.write('PASS'); |
| 20 } |
| 21 </script> |
| 22 </head> |
| 23 <body onload="runTest()"> |
| 24 Test for crbug.com/249013: data uri images should not load when images are dis
abled.<br/> |
| 25 FAIL |
| 26 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAA
AAnklEQVR42u3QMQEAAAgDILV/51nBzwci0CmuRoEsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWb
IUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5
YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWd8Wil4Bx2r6t7cAAAAASUVORK5CYI
I="> |
| 27 </body> |
| 28 </html> |
OLD | NEW |