[Webkit-unassigned] [Bug 9686] [Drosera] Need the ability to break into Drosera on Javascript exceptions

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Jul 12 14:29:08 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9686





------- Comment #2 from opendarwin.org at bdash.net.nz  2006-07-12 14:29 PDT -------
Created an attachment (id=9418)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=9418&action=view)
Work-in-progress patch

This work in progress patch is almost fully-functional.  I'm quite certain that
the code in JSCore hooks in to the wrong place in the execution to catch
exceptions, but I couldn't find a better bottleneck.  The downside of having
debugExceptionIfNeeded called from the KJS_CHECKEXCEPTION macro is that it is
called for each stack frame the exception propogates out of.  I've hacked
around that by stashing a property on the object to indicate it has been dealt
with.  Needless to say, that isn't a good solution.  I'm looking for pointers
as to a better place to hook into exceptions being raised that can avoid the
need for this type of state to be kept.

The Drosera part of the patch adds the bare minimal behaviour.  It is probably
desirable to log exceptions to the console window, but I think that should be
dealt with in a separate patch.


-- 
Configure bugmail: http://bugzilla.opendarwin.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