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)
Firefox
General
Tracking
()
NEW
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!
| Reporter | ||
Updated•12 years ago
|
Component: Developer Tools: Console → General
OS: Mac OS X → All
Hardware: x86 → All
Comment 1•12 years ago
|
||
If you list all the calls you meant by "etc.", I'll take this on.
| Reporter | ||
Comment 2•12 years ago
|
||
Cu/Components.utils.reportError()
Services.console.logStringMessage()
...logMessage()
I bet there are a bunch more but this should get you started.
Comment 3•12 years ago
|
||
We probably need bug 851695 for this, maybe also something to add console.jsm to JS component scopes
Depends on: 851695
Comment 4•12 years ago
|
||
What's the benefit? Don't Cu.reportError calls already show up in the browser console?
Comment 5•12 years ago
|
||
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?).
Updated•3 years ago
|
Severity: normal → S3
Comment 6•3 years ago
|
||
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.
Updated•3 years ago
|
Alias: remove-cu-reportError
Updated•3 years ago
|
See Also: → https://github.com/mozilla/firefox-translations/issues/614,
https://github.com/mozilla-extensions/china-newtab/issues/34,
https://github.com/mozilla-extensions/dnssec-interference/issues/52,
https://github.com/mozilla-extensions/cehomepage/issues/5,
https://github.com/mozilla-extensions/cpmanager/issues/8
You need to log in
before you can comment on or make changes to this bug.
Description
•