[Webkit-unassigned] [Bug 8519] WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 30 17:24:27 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=8519


Charles Kendrick <charles.kendrick at smartclient.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charles.kendrick at smartclien
                   |                            |t.com




--- Comment #44 from Charles Kendrick <charles.kendrick at smartclient.com>  2010-04-30 17:24:21 PST ---
This is hugely important to Ajax frameworks.  In IE, any time an error occurs,
we are able to walk the stack and log something like this:

11:37:59.734:RDQ4:WARN:Log:Error:
   'Object doesn't support this property or method'
   in http://localhost:8080/MyStaffTrack.html
   at line 821
   [a]ImgButton.$31r(_1=>13128, _2=>Obj{name:HOURS_CLOCKED}, _3=>[ListGrid
ID:isc_OID_94], _4=>Obj, _5=>0, _6=>5)
   ListGrid.$315(_1=>13128, _2=>Obj, _3=>Obj{name:HOURS_CLOCKED}, _4=>0, _5=>5)
   ListGrid.getCellValue(_1=>Obj, _2=>0, _3=>5, _4=>[GridBody
ID:isc_OID_94_body])
   [o]GridBody.getCellValue(record=>Obj, rowNum=>0, colNum=>5,
gridBody=>[GridBody ID:isc_OID_94_body])
   GridRenderer.$22k(_1=>Obj, _2=>0, _3=>5)
   GridRenderer.getTableHTML(_1=>undef, _2=>undef, _3=>undef)
   GridRenderer.getInnerHTML(undef)
   Class.invokeSuper(_1=>null, _2=>"getInnerHTML", _3=>undef, _4=>undef,
_5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
   Class.Super(_1=>"getInnerHTML", _2=>Obj{length:1}, _3=>undef)
   GridBody.getInnerHTML(undef)

This has major benefits:

1. it appears in the flow of other logs, so we know exactly when the error
occurred relative to other happenings

2. we are adding all kinds of SmartClient/SmartGWT-specific information that a
general, Firebug-like error console can never replicate.  For example, it knows
that the anonymous function "getCellValue" is attached to a class ListGrid but
this could never be figured out by a general tool that is just looking at
JavaScript code and doesn't know about the SmartClient class system.  We are
even showing information like the prefix [o] - this means the method is an
override of the default method for the class.  Note also the thread indicator
(RDQ4) - this indicates it happens in the redraw queue thread - very important
to know.

This is so valuable for troubleshooting that right in the SmartGWT FAQ and in
all our support documents we say that whenever you encounter a JavaScript error
the first step is to leave Safari/Chrome/whatever nice fast browser you
actually like to use, and go replicate the error in Internet Explorer so we can
get good diagnostic information.. and that's just sad.

We don't care about compatibility with IE's window.onerror vs an event listener
or some other approach - just please give us a way to get the information. 
Thanks.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list