Bug 48598 - WebScriptDebuggerDelegate: Cannot Tell if an Exception is Uncaught
Summary: WebScriptDebuggerDelegate: Cannot Tell if an Exception is Uncaught
Status: RESOLVED DUPLICATE of bug 52104
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 17:03 PDT by Joseph Pecoraro
Modified: 2011-01-18 13:43 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2010-10-28 17:03:12 PDT
The "hasHandler" information for exceptions is lost when notifying the WebScriptDebuggerDelegate.
It may be useful for the delegate to know if the exception was uncaught or not.

The information is available, before calling the delegate, but it is ignored (note "hasHandler"):
http://trac.webkit.org/browser/trunk/WebKit/mac/WebView/WebScriptDebugger.mm#L203

Inspector uses that information to identify an "uncaught" exception:
http://trac.webkit.org/browser/trunk/WebCore/bindings/js/ScriptDebugServer.cpp#L515
Comment 1 Joseph Pecoraro 2011-01-18 13:43:15 PST
Looks like this is being handled in:
<http://webkit.org/b/52104> Would like script debugging protocol method to differentiate between caught and uncaught exceptions

*** This bug has been marked as a duplicate of bug 52104 ***