WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
68760
REGRESSION (
r95502
): Assertion failure in CSSPrimitiveValue::computeLengthDouble() when media query specifies unit-less length
https://bugs.webkit.org/show_bug.cgi?id=68760
Summary
REGRESSION (r95502): Assertion failure in CSSPrimitiveValue::computeLengthDou...
mitz
Reported
2011-09-24 11:35:45 PDT
To reproduce, visit the URL, or try <style> @media all and (min-width:0) { body { } } </style> Result: SHOULD NEVER BE REACHED WebCore/css/CSSPrimitiveValue.cpp(404) : double WebCore::CSSPrimitiveValue::computeLengthDouble(WebCore::RenderStyle *, WebCore::RenderStyle *, double, bool) the primitiveType() is CSS_NUMBER, which is not expected in the switch() statement.
Attachments
Make length-comparison media queries accept only length values
(7.39 KB, patch)
2011-10-01 21:22 PDT
,
mitz
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2011-09-24 12:08:27 PDT
Not sure what’s the right place to fix this. Perhaps the MediaQueryExp constructor, which already does a validity check, should also do feature-specific checks, similar to the CSS parser (using something like CSSParser::validUnit()).
mitz
Comment 2
2011-10-01 16:26:14 PDT
The assertion was added in <
http://trac.webkit.org/r95502
>, uncovering a preexisting bug.
mitz
Comment 3
2011-10-01 21:22:40 PDT
Created
attachment 109416
[details]
Make length-comparison media queries accept only length values
Antti Koivisto
Comment 4
2011-10-02 00:59:26 PDT
Comment on
attachment 109416
[details]
Make length-comparison media queries accept only length values r=me
mitz
Comment 5
2011-10-02 01:24:46 PDT
Fixed in <
http://trac.webkit.org/r96471
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug