From fd5b0bb84c6774e41216f5a68af0dcf427ae5187 Mon Sep 17 00:00:00 2001 From: Max Vujovic Date: Fri, 3 Oct 2014 10:06:07 -0700 Subject: [PATCH] Bug 913990 - Test 'feed:' filter URL as crashtest instead of computed style test. r=dbaron --- layout/style/test/property_database.js | 8 +++----- layout/style/test/test_value_computation.html | 5 ----- layout/svg/crashtests/913990.html | 5 +++++ layout/svg/crashtests/crashtests.list | 1 + 4 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 layout/svg/crashtests/913990.html diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 2ebc61a48af..f75ac71c3fe 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -4651,11 +4651,9 @@ if (SpecialPowers.getBoolPref("layout.css.filters.enabled")) { "grayscale(1) url(#my-filter-1)", "url(#my-filter-1) brightness(50%) contrast(0.9)", - // The CSS parser will accept these weird URLs. However, we'll fail - // to resolve them when computing style, so we'll fall back to the - // initial value ("none"). - "url('feed:javascript:5')", - "blur(3px) url('feed:javascript:5') grayscale(50%)", + // Bad URLs + "url('badscheme:badurl')", + "blur(3px) url('badscheme:badurl') grayscale(50%)", "blur(0)", "blur(0px)", diff --git a/layout/style/test/test_value_computation.html b/layout/style/test/test_value_computation.html index a11d67f116c..c0240e53f22 100644 --- a/layout/style/test/test_value_computation.html +++ b/layout/style/test/test_value_computation.html @@ -41,11 +41,6 @@ /** Test for computation of values in property database **/ var gBadComputed = { - // The CSS parser will accept these weird URLs. However, we'll fail to - // resolve them when computing style, so we'll fall back to the initial - // value ("none"). - "filter": [ "url('feed:javascript:5')", "blur(3px) url('feed:javascript:5') grayscale(50%)" ], - // These values are treated as auto. "page-break-after": [ "avoid" ], "page-break-before": [ "avoid" ], diff --git a/layout/svg/crashtests/913990.html b/layout/svg/crashtests/913990.html new file mode 100644 index 00000000000..21d8ef3cc3b --- /dev/null +++ b/layout/svg/crashtests/913990.html @@ -0,0 +1,5 @@ + + + + + diff --git a/layout/svg/crashtests/crashtests.list b/layout/svg/crashtests/crashtests.list index 356a90d5e55..f66e0aed63f 100644 --- a/layout/svg/crashtests/crashtests.list +++ b/layout/svg/crashtests/crashtests.list @@ -176,6 +176,7 @@ load 895311-1.svg load 897342-1.svg load 898909-1.svg load 898951-1.svg +load 913990.html load 919371-1.xhtml load 952270-1.svg load 963086-1.svg