From 135bcacee45cd36faa8f912a955b684faf472140 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Fri, 13 Nov 2015 11:40:10 -0800 Subject: [PATCH] Use the correct .png extension for the image placeholder. This was changed to the mozilla broken image resource without changing the filename, even though the file type changed. --- components/net/image_cache_task.rs | 2 +- resources/{rippy.jpg => rippy.png} | Bin tests/wpt/mozilla/tests/css/no-image-ref.html | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename resources/{rippy.jpg => rippy.png} (100%) diff --git a/components/net/image_cache_task.rs b/components/net/image_cache_task.rs index 9739e89ddfc..4ec3516d3b4 100644 --- a/components/net/image_cache_task.rs +++ b/components/net/image_cache_task.rs @@ -460,7 +460,7 @@ pub fn new_image_cache_task(resource_task: ResourceTask) -> ImageCacheTask { // Preload the placeholder image, used when images fail to load. let mut placeholder_path = resources_dir_path(); - placeholder_path.push("rippy.jpg"); + placeholder_path.push("rippy.png"); let mut image_data = vec![]; let result = File::open(&placeholder_path).and_then(|mut file| { diff --git a/resources/rippy.jpg b/resources/rippy.png similarity index 100% rename from resources/rippy.jpg rename to resources/rippy.png diff --git a/tests/wpt/mozilla/tests/css/no-image-ref.html b/tests/wpt/mozilla/tests/css/no-image-ref.html index 40ce07f789e..0d53ae51ac6 100644 --- a/tests/wpt/mozilla/tests/css/no-image-ref.html +++ b/tests/wpt/mozilla/tests/css/no-image-ref.html @@ -1 +1 @@ - +