stylo: route CSS parsing errors to the developer tools console

NEW
Assigned to

Status

()

Core
CSS Parsing and Computation
P1
normal
2 months ago
a month ago

People

(Reporter: heycam, Assigned: jdm)

Tracking

(Blocks: 3 bugs)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 months ago
Like nsCSSParser and mozilla::css::ErrorReporter, we need to send CSS parsing errors to a page's developer tools console or the browser console.
These mochitest failures are for this: https://dxr.mozilla.org/mozilla-central/rev/00a166a8640dffa2e0f48650f966d75ca3c1836e/layout/style/test/stylo-failures.md#82-84
Blocks: 1321197
Priority: -- → P2
Priority: P2 → P1
(Assignee)

Comment 2

a month ago
I'm giving this a shot. I'll unassign myself if I'm not making progress.
Assignee: nobody → josh
Awesome, thanks jdm!
Blocks: 1322657
(Assignee)

Comment 4

a month ago
Created attachment 8859633 [details] [diff] [review]
WIP

I made a bunch of progress during a 14 hour plane ride! CSS parsing errors are now appearing in the console for operations like "element.style = 'foopy'"; I'm going to look into the automated tests next, as well as sort out how to get the stylesheet URL from stylo into the error reporter.
You need to log in before you can comment on or make changes to this bug.