Bug 913990 - Test 'feed:' filter URL as crashtest instead of computed style test. r=dbaron

This commit is contained in:
Max Vujovic 2014-10-03 10:06:07 -07:00
parent 5cb90493f6
commit fd5b0bb84c
4 changed files with 9 additions and 10 deletions

View File

@ -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)",

View File

@ -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" ],

View File

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html>
<body style="filter: url('feed:javascript:5');">
</body>
</html>

View File

@ -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