Open
Bug 158612
Opened 23 years ago
Updated 2 years ago
The CSS parser should only print parser errors _once_
Categories
(Core :: CSS Parsing and Computation, enhancement, P4)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: roland.mainz, Unassigned)
References
()
Details
2002-07-18-08-trunk on Solaris/SPARC.
Problem:
1. Go to http://www.bild.de/
2. The CSS parser starts to spam the console with
-- snip --
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
CSS Error (http://static.bild.de/ticker/live/ticker.html :1.5): Error in parsing
value for property 'left'. Declaration dropped.
[and so on...]
-- snip --
Suggested fix:
The CSS parser should only print parser errors _once_.
![]() |
||
Comment 1•23 years ago
|
||
Hmm... This is an interesting question.... Should we somehow disable error
reporting for dynamic inline style changes until we have a way of handling this
gracefully?
I'd say wontfix. We could change the console error reporting to be chrome-only,
though.
(By console reporting, I mean the |#ifdef DEBUG| fprintf, not the reporting to
the error console.)
Reporter | ||
Comment 4•23 years ago
|
||
David Baron wrote:
> I'd say wontfix.
... which means that debug-builds will close to be unuseable in such cases - the
CSS parser error messages consume much CPU time (xterm/dtterm+Xserver) ... ;-(
So I think the solution to your problem is only to fprintf the warnings to the
console for chrome URIs, or something else that determines whether something is
for chrome or content (although we do want to print for the UA stylesheets).
However, that's not what the subject of the bug says, and I think the subject of
the bug should be wontfix.
Reporter | ||
Comment 6•23 years ago
|
||
David Baron wrote:
> So I think the solution to your problem is only to fprintf the warnings to the
> console for chrome URIs, or something else that determines whether something
> is for chrome or content (although we do want to print for the UA
> stylesheets).
What about making this a feature which can be enabled via two pref (one for
chrome, one for content) - and/or replace the |fprintf()| with |PR_LOG()|
statements... ?
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.2alpha
Updated•22 years ago
|
Whiteboard: [dev notes]
Updated•22 years ago
|
Whiteboard: [dev notes] → [whitebox]
![]() |
||
Comment 7•21 years ago
|
||
We need a solution to this problem in general, though, if we ever plan to enable
CSS error reporting in non-debug builds... Otherwise the JS console will be
quickly overwhelmed.
Perhaps we should hack something in specifically for inline style?
Updated•20 years ago
|
Status: ASSIGNED → NEW
Summary: RFE: The CSS parser should only print parser errors _once_ → The CSS parser should only print parser errors _once_
Assignee: dbaron → nobody
QA Contact: ian → style-system
Comment 8•14 years ago
|
||
Is this still a meaningful bug? The error console certainly does get flooded with junk CSS error messages a lot...
Priority: P2 → P4
Whiteboard: [whitebox]
Target Milestone: mozilla1.2alpha → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•