Open Bug 877389 (remove-cu-reportError) Opened 12 years ago Updated 1 year ago

[meta] Replace calls to Cu.reportError, etc. from browser code, replace with console.error, etc.

Categories

(Firefox :: General, defect, P3)

defect

Tracking

()

People

(Reporter: rcampbell, Unassigned)

References

(Depends on 3 open bugs)

Details

(Keywords: meta)

No reason to cling to the past. Let's make things pretty!
Component: Developer Tools: Console → General
OS: Mac OS X → All
Hardware: x86 → All
If you list all the calls you meant by "etc.", I'll take this on.
Cu/Components.utils.reportError() Services.console.logStringMessage() ...logMessage() I bet there are a bunch more but this should get you started.
We probably need bug 851695 for this, maybe also something to add console.jsm to JS component scopes
Depends on: 851695
What's the benefit? Don't Cu.reportError calls already show up in the browser console?
Depends on: 861338
I think I spawned this on Twitter, but I what I was really asking for is for a better replacement for nsIConsoleMessage. Right now JS is basically limited to logging a simple string, and you have to mess with this old (and often unscriptable) XPCOM goop to do something like log a warning instead of an error. It would be super awesome if this was well integrated with a log4moz replacement (or dare I dream of better nspr logging?).
Severity: normal → S3
Depends on: 1800247

Turning this into a meta as we're going to start migrating across.

Keywords: meta
Priority: -- → P3
Summary: Replace calls to Cu.reportError, etc. from browser code, replace with console.error, etc. → [meta] Replace calls to Cu.reportError, etc. from browser code, replace with console.error, etc.
Depends on: 1801091
Depends on: 1801092
Alias: remove-cu-reportError
Depends on: 1801808
Depends on: 1801809
Depends on: 1802347
Depends on: 1802490
Depends on: 1803340
Depends on: 1803341
Depends on: 1803342
Depends on: 1803756
Depends on: 1803757
Depends on: 1803758
Depends on: 1803776
Depends on: 1803911
Depends on: 1803914
Depends on: 1804337
Depends on: 1805728
Depends on: 1806503
Depends on: 1806500
Depends on: 1806723
Depends on: 1808400
Depends on: 1808117
Depends on: 1808500
Depends on: 1810877
Depends on: 1811334
Depends on: 1811796
Depends on: 1813485
Depends on: 1822488
Depends on: 1838155
Depends on: 1938388
You need to log in before you can comment on or make changes to this bug.