Open
Bug 1372266
Opened 8 years ago
Updated 3 years ago
stylo: consider returning 'InvalidValue' error while parsing invalid values
Categories
(Core :: CSS Parsing and Computation, enhancement, P4)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: chenpighead, Unassigned)
References
Details
Currently, we return StyleParseError::UnspecifiedError [1] for invalid values in many places. However, the actual error is that we're parsing invalid values. Xidorn suggests maybe we could use something like PropertyDeclarationParseError::InvalidValue instead.
[1] http://searchfox.org/mozilla-central/rev/d840ebd5858a61dbc1622487c1fab74ecf235e03/servo/components/style/properties/longhand/font.mako.rs#1563
Reporter | ||
Comment 1•8 years ago
|
||
Hi Josh, since you're the author of these changes, we'd like to have your feedback before going any further.
Flags: needinfo?(josh)
Updated•8 years ago
|
Priority: -- → P2
Comment 2•8 years ago
|
||
UnspecifiedError is intended as a placeholder for code that could benefit from returning more specific errors indicating what actually went wrong. I do not think that returning StyleParseError::PropertyValue(PropertyValueParseError::InvalidValue) will be a meaningful improvement at the moment, however.
Flags: needinfo?(josh)
Reporter | ||
Comment 3•8 years ago
|
||
Lower the priority and un-assign myself according to comment 2.
Assignee: jeremychen → nobody
Status: ASSIGNED → NEW
Priority: P2 → P4
Updated•8 years ago
|
status-firefox57:
--- → wontfix
status-firefox58:
--- → fix-optional
Comment 4•7 years ago
|
||
status-firefox59:
--- → ?
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•