[Webkit-unassigned] [Bug 8519] WebCore doesn't fire window.onerror event.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 13 09:43:17 PDT 2007


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





------- Comment #4 from dhtmlkitchen at gmail.com  2007-05-13 09:43 PDT -------
comment #2. 

window.onerror sucks. JScript thinks it's an Event. Poor API design copied
during browser wars. 

Should we copy this legacy approach?

Event onerror callback signature should be single argument: an object. 

This could be either of type: either Error or ErrorEvent.

Example:

errorCaught = function errorCaught( ev ) {
  var stack = ev.stack;
  log( stack );
  ev.preventDefault();
};

window.addEventListener( "error", errorCaught, false );


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



More information about the webkit-unassigned mailing list