Bug 58996 - Web Inspector: [protocol] Paused event should expose exception value that caused it
Summary: Web Inspector: [protocol] Paused event should expose exception value that cau...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on:
Blocks: 59591
  Show dependency treegraph
 
Reported: 2011-04-20 08:47 PDT by Peter Rybin
Modified: 2011-04-27 02:53 PDT (History)
14 users (show)

See Also:


Attachments
Patch (30.32 KB, patch)
2011-04-26 07:35 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (32.83 KB, patch)
2011-04-26 08:41 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (33.62 KB, patch)
2011-04-26 08:44 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (33.59 KB, patch)
2011-04-27 00:39 PDT, Yury Semikhatsky
pfeldman: review+
Details | Formatted Diff | Diff
Patch for landing (31.86 KB, patch)
2011-04-27 01:42 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Rybin 2011-04-20 08:47:56 PDT
The protocol allows "pause on exception" mode. When this is enabled, JavaScript VM pauses on exception being thrown and WebKit sends "Paused" event.

However there is no information about exception being thrown.

The protocol should give full access to the exception value (with its properties, type etc).
Comment 1 Yury Semikhatsky 2011-04-26 07:35:25 PDT
Created attachment 91102 [details]
Patch
Comment 2 Build Bot 2011-04-26 07:56:23 PDT
Attachment 91102 [details] did not build on win:
Build output: http://queues.webkit.org/results/8510611
Comment 3 Yury Semikhatsky 2011-04-26 08:41:52 PDT
Created attachment 91112 [details]
Patch
Comment 4 Yury Semikhatsky 2011-04-26 08:44:35 PDT
Created attachment 91113 [details]
Patch
Comment 5 Build Bot 2011-04-26 09:20:55 PDT
Attachment 91113 [details] did not build on win:
Build output: http://queues.webkit.org/results/8509671
Comment 6 Yury Semikhatsky 2011-04-27 00:39:49 PDT
Created attachment 91246 [details]
Patch
Comment 7 Pavel Feldman 2011-04-27 01:28:33 PDT
Comment on attachment 91246 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=91246&action=review

> Source/WebCore/bindings/v8/ScriptDebugServer.cpp:221
> +        contextScope.set(new v8::Context::Scope(v8::Debug::GetDebugContext()));

Poor merge?

> Source/WebCore/bindings/v8/ScriptDebugServer.cpp:341
> +                if (!exceptionGetterValue.IsEmpty() && exceptionGetterValue->IsFunction()) {

Could you put ASSERT here?
Comment 8 Yury Semikhatsky 2011-04-27 01:42:46 PDT
Created attachment 91255 [details]
Patch for landing

All comments have been addressed.
Comment 9 Yury Semikhatsky 2011-04-27 01:55:42 PDT
Committed r85035: <http://trac.webkit.org/changeset/85035>
Comment 10 WebKit Review Bot 2011-04-27 02:25:26 PDT
http://trac.webkit.org/changeset/85035 might have broken Chromium Linux Release