Closed Bug 1452916 Opened 7 years ago Closed 7 years ago

Some error reporting cleanups.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

I'm looking into where the devtools code lives for this, but for now let's do this. We'll need to add more state here than the pref, but that'll come.
Comment on attachment 8966550 [details] Bug 1452916: Expose the error reporting pref. https://reviewboard.mozilla.org/r/235266/#review241064 ::: layout/style/ErrorReporter.cpp:166 (Diff revision 1) > } > > void > ErrorReporter::OutputError() > { > + MOZ_RELEASE_ASSERT(NS_IsMainThread()); Given that OutputError is currently hot, I think we probably don't want to add a TLS lookup here in release builds. Switch to a MOZ_ASSERT? ::: layout/style/ServoBindings.cpp:2688 (Diff revision 1) > { > - MOZ_ASSERT(NS_IsMainThread()); > + if (!reporter->ShouldReportErrors()) { > + return; > + } > + > + MOZ_RELEASE_ASSERT(NS_IsMainThread()); Same here.
Attachment #8966550 - Flags: review?(bobbyholley) → review+
Comment on attachment 8966551 [details] Bug 1452916: Remove dead error reporting code. https://reviewboard.mozilla.org/r/235268/#review241066 Nice. Though why do we still have nsCSSScanner at all?
Attachment #8966551 - Flags: review?(bobbyholley) → review+
(In reply to Bobby Holley (:bholley) from comment #4) > Nice. Though why do we still have nsCSSScanner at all? It's currently still used by DevTools. I am aiming to replace those usages with Stylo code in bug 1410184.
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/81fd385c9197 Expose the error reporting pref. r=bholley https://hg.mozilla.org/integration/autoland/rev/f6e323494896 Remove dead error reporting code. r=bholley
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: