This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26182 - Add a console.* API that invokes the HTML "report the error" algorithm (which calls window.onerror)
Summary: Add a console.* API that invokes the HTML "report the error" algorithm (which...
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Unwelcome (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Michael[tm] Smith
QA Contact: sideshowbarker+unwelcome
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 18:48 UTC by contributor
Modified: 2016-04-04 13:39 UTC (History)
9 users (show)

See Also:


Attachments

Description contributor 2014-06-23 18:48:25 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html
Multipage: http://www.whatwg.org/C#report-the-error
Complete: http://www.whatwg.org/c#report-the-error
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Introduce a method that invokes this algorithm

Posted from: 178.83.154.60 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0
Comment 1 Anne 2014-06-23 18:49:05 UTC
That way it's easier for people to experiment with new platform APIs. See e.g. http://lists.w3.org/Archives/Public/public-web-perf/2014Jun/0036.html for an implementer requesting this.
Comment 2 Anne 2014-06-23 18:58:31 UTC
See also http://esdiscuss.org/topic/a-way-of-explicitly-reporting-exceptions where bz suggests adding this to ECMAScript.
Comment 3 Ian 'Hixie' Hickson 2014-06-23 20:37:13 UTC
Interesting idea.

Is there multiple vendor interest?
Comment 4 Anne 2014-06-24 07:35:23 UTC
It seems so. On es-discuss arv suggested putting it on the console API.
Comment 5 Ian 'Hixie' Hickson 2014-08-29 20:40:30 UTC
Ok well I'm happy to spec something, but if it's in the console API then I need something to hook into, unless I'm just going to spec the whole console API. Does it have a spec or anything?
Comment 6 Anne 2014-08-31 12:32:31 UTC
I don't think window.console has a workable specification at the moment. There's http://sideshowbarker.github.io/console-spec/ though.
Comment 7 Ian 'Hixie' Hickson 2014-09-02 17:08:51 UTC
So what should I do? Spec console.*? Pretend a spec exists and use partial? Reassign the bug to Mike?
Comment 8 brian kardell 2014-09-02 19:38:23 UTC
We've done some upfront on this with collaborators from n vendors/firebug.

https://github.com/DeveloperToolsWG/console-object

It's also been discussed that this might belong in ecma standard library as console is not limited to the browser.
Comment 9 Ian 'Hixie' Hickson 2014-09-18 17:33:22 UTC
brian, that page says that adding new features is a non-goal. Do you have any proposals for where we should put new features?
Comment 10 brian kardell 2014-09-18 18:43:40 UTC
(In reply to Ian 'Hixie' Hickson from comment #9)
> brian, that page says that adding new features is a non-goal. Do you have
> any proposals for where we should put new features?

Not really, the purpose of that statement is simply to say that we wanted to focus first on codifying the intersection of what is de-facto truth, or at least has enough agreement to qualify as that, not be distracted initially by feature requests and bikeshedding.  The aim was to do it in such a way that it would be approvable regardless of which body it landed in (living specs are still pretty unique to WHATWG and standards bodies are typically considerably better at 'last mile agreement' efforts than invention).

I'm happy to help with this, my availability for things is significantly changed recently.
Comment 11 Ian 'Hixie' Hickson 2014-09-19 23:45:22 UTC
Since this is going to end up in the console API spec rather than HTML, I'm moving this to the Unwelcome bucket. I encourage whoever wants to spec the console API to take up this bug. Thanks!
Comment 12 Terin Stock 2014-09-19 23:57:08 UTC
I'm starting to put together a "Console Spec" at https://github.com/terinjokes/console-spec

It's still in the very early stages, but I welcome feedback and discussion in the GitHub issues.
Comment 13 Boris Zbarsky 2014-09-20 01:16:21 UTC
It's worth taking a look at the IDL browsers already have for console, fwiw.

I would also suggest a discussion forum more amenable to participation by multiple people and with better archiving, linkability, and especially searchability than github issues...  A mailing list, say.