CSS parser isn't reporting first error after good declaration
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: tustamido, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Given the following CSS code as example:
* { color: blue; abc; def; ghi; jkl; }
CSS parser should report 4 errors, as it happens when using W3C Validator: https://jigsaw.w3.org/css-validator/
Instead, Firefox reports only 3, it skips "abc;".
Code to reproduce (just paste it on Browser Console):
docShell.cssErrorReportingEnabled = true;
let errorListener = {
observe: function (message) {
let error = message.QueryInterface(Ci.nsIScriptError);
console.log(error.errorMessage);
}
};
Services.console.registerListener(errorListener);
let styleEl = document.createElement('style');
styleEl.appendChild(document.createTextNode('* { color: blue; abc; def; ghi; jkl; }'));
document.documentElement.appendChild(styleEl);
Using mozregression, mozilla-central 2019-05-08 was good (reports all 4 erros, including "abc;"), 2019-05-09 was bad. But I can't go deeper than this as it seems inbound/autoland builds are deleted after 365 days (am I right in this?).
I think I can make an educated guess which of those caused the regression, though I didn't test.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Yeah, I can probably take it anyhow. Thanks David :)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Rather than waiting until parsing another id (successfully or
unsuccessfully).
If we error before we even get to PropertyId::parse, we'd incorrectly
associate the error with the wrong property, incorrectly omitting it
sometimes.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 6•5 years ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Description
•