Index: third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js b/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
index 3e5bc9fb9ee86362540a099f60164cdba59249dc..90b869a404b3f219a2b3e349f5f8476888a1555e 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
@@ -21,17 +21,11 @@ |
} else { |
// Right now there is a bug that srcset does not properly deal with dynamic changes to the scale factor, |
// so to work around that, we must reload the page to get the new image. |
- // |
- // At the time of the Document load event, there might be other |
- // ongoing tasks that can cause new images to be loaded. To evict |
- // those images, we delay evictAllResources() call a little. |
- setTimeout(function() { |
- sessionStorage.pageReloaded = true; |
- if (window.internals) { |
- internals.evictAllResources(); |
- } |
- document.location.reload(true); |
- }, 300); |
+ sessionStorage.pageReloaded = true; |
+ if (window.internals) { |
+ internals.evictAllResources(); |
+ } |
+ document.location.reload(true); |
} |
} |