| Index: third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html b/third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html
|
| index 47204ce9a177791475a74538126b9297fa8f291d..caeb532d967baf2be67d8d81027e6a7ea5d7e8cc 100644
|
| --- a/third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html
|
| +++ b/third_party/WebKit/LayoutTests/css3/images/invalid-image-url-crash.html
|
| @@ -1,13 +1,22 @@
|
| <!DOCTYPE html>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| +<style>
|
| +#target {
|
| + background-image: url("chrome://");
|
| +}
|
| +#target:after {
|
| + content: url("filesystem://");
|
| +}
|
| +</style>
|
| <div id="target"></div>
|
| <script>
|
| test(() => {
|
| - target.style.backgroundImage = 'url(filesystem://invalid_url.png)';
|
| - // Force multiple style recalcs so that the image gets cached and reused.
|
| + // Force a second style recalc so that the image gets cached and reused.
|
| getComputedStyle(target).backgroundImage;
|
| + getComputedStyle(target, 'after').content;
|
| target.style.color = 'green';
|
| getComputedStyle(target).backgroundImage;
|
| + getComputedStyle(target, 'after').content;
|
| }, "Don't crash when using cached CSS images with invalid URLs");
|
| </script>
|
|
|