Bug 89147 - Web Inspector: Support 'Restart frame' in protocol and backend
Summary: Web Inspector: Support 'Restart frame' in protocol and backend
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: Nobody
URL:
Keywords:
Depends on: 89357
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-14 18:27 PDT by Peter Rybin
Modified: 2012-06-19 07:04 PDT (History)
19 users (show)

See Also:


Attachments
Patch (15.78 KB, patch)
2012-06-14 19:04 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Patch (17.15 KB, patch)
2012-06-16 16:54 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Patch (16.31 KB, patch)
2012-06-16 17:51 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Patch (17.73 KB, patch)
2012-06-17 20:05 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Patch (17.65 KB, patch)
2012-06-18 05:05 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Fix win build (17.61 KB, patch)
2012-06-18 10:28 PDT, Peter Rybin
no flags Details | Formatted Diff | Diff
Patch (18.14 KB, patch)
2012-06-19 05:43 PDT, Peter Rybin
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 2012-06-14 18:27:14 PDT
'Restart frame' is a debugger action that starts selected function (stack frame) from the beginning and drops completely all stack frames above it.
Add its support to remote debugging protocol and implement it in Inspector backend.
Comment 1 Peter Rybin 2012-06-14 19:04:12 PDT
Created attachment 147708 [details]
Patch
Comment 2 WebKit Review Bot 2012-06-14 19:09:20 PDT
Attachment 147708 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Gustavo Noronha (kov) 2012-06-14 19:17:32 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/12952769
Comment 4 Early Warning System Bot 2012-06-14 19:33:37 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/12950882
Comment 5 Build Bot 2012-06-14 19:40:06 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/12957533
Comment 6 Early Warning System Bot 2012-06-14 19:43:18 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/12953757
Comment 7 Gyuyoung Kim 2012-06-14 19:50:19 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/12966219
Comment 8 Build Bot 2012-06-14 19:52:02 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12960435
Comment 9 Early Warning System Bot 2012-06-14 20:35:08 PDT
Comment on attachment 147708 [details]
Patch

Attachment 147708 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/12954596
Comment 10 Pavel Feldman 2012-06-15 09:30:17 PDT
Comment on attachment 147708 [details]
Patch

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

> Source/WebCore/bindings/v8/DebuggerScript.js:261
> +    function restart() {

Please move { to the next line.

> Source/WebCore/bindings/v8/ScriptFunctionCall.cpp:136
> +        V8RecursionScope innerScope(getScriptExecutionContext());

why did this change?

> Source/WebCore/inspector/JavaScriptCallFrame.idl:42
> +        [Custom] InspectorObject restart();

No need for Custom here.
Comment 11 Pavel Feldman 2012-06-15 09:38:15 PDT
Comment on attachment 147708 [details]
Patch

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

> Source/WebCore/bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp:49
> +v8::Handle<v8::Value> V8JavaScriptCallFrame::restartCallback(const v8::Arguments& args)

You don't need this.

> Source/WebCore/inspector/Inspector.json:2439
> +                "name": "restartFrame",

"hidden": true

> Source/WebCore/inspector/Inspector.json:2444
> +                    { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace." },

Should not be optional.

> Source/WebCore/inspector/Inspector.json:2445
> +                    { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true }

Should not be optional. Nuke the "changes applied part".
Comment 12 Peter Rybin 2012-06-16 16:54:59 PDT
Created attachment 147994 [details]
Patch
Comment 13 WebKit Review Bot 2012-06-16 16:58:07 PDT
Attachment 147994 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 14 Peter Rybin 2012-06-16 17:00:32 PDT
(In reply to comment #10)
> (From update of attachment 147708 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=147708&action=review
> 
> > Source/WebCore/bindings/v8/DebuggerScript.js:261
> > +    function restart() {
> 
> Please move { to the next line.
Done

> > Source/WebCore/bindings/v8/ScriptFunctionCall.cpp:136
> > +        V8RecursionScope innerScope(getScriptExecutionContext());
> why did this change?

Rename variable that shadows another variable with the same name in this function.

> > Source/WebCore/inspector/JavaScriptCallFrame.idl:42
> > +        [Custom] InspectorObject restart();
> No need for Custom here.

Custom is kept, binding scripts otherwise won't let return V8 Value.
Comment 15 Build Bot 2012-06-16 17:19:01 PDT
Comment on attachment 147994 [details]
Patch

Attachment 147994 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12974067
Comment 16 WebKit Review Bot 2012-06-16 17:26:43 PDT
Comment on attachment 147994 [details]
Patch

Attachment 147994 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12965821
Comment 17 Peter Rybin 2012-06-16 17:51:09 PDT
Created attachment 147996 [details]
Patch
Comment 18 WebKit Review Bot 2012-06-16 17:54:07 PDT
Attachment 147996 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 WebKit Review Bot 2012-06-16 18:20:22 PDT
Comment on attachment 147996 [details]
Patch

Attachment 147996 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12970325
Comment 20 Build Bot 2012-06-16 18:29:29 PDT
Comment on attachment 147996 [details]
Patch

Attachment 147996 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12959999
Comment 21 Peter Rybin 2012-06-17 20:05:58 PDT
Created attachment 148040 [details]
Patch
Comment 22 WebKit Review Bot 2012-06-17 20:08:38 PDT
Attachment 148040 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 23 Yury Semikhatsky 2012-06-18 00:22:27 PDT
Comment on attachment 148040 [details]
Patch

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

> Source/WebCore/bindings/v8/ScriptDebugServer.cpp:260
> +    // Call stack may have changed after if the edited function was on the stack.

after -> after script editing, I think making currentCallFrame() public would also be fine.
Comment 24 Peter Rybin 2012-06-18 05:05:34 PDT
Created attachment 148085 [details]
Patch
Comment 25 WebKit Review Bot 2012-06-18 05:07:21 PDT
Attachment 148085 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 26 WebKit Review Bot 2012-06-18 06:54:59 PDT
Comment on attachment 148085 [details]
Patch

Clearing flags on attachment: 148085

Committed r120592: <http://trac.webkit.org/changeset/120592>
Comment 27 WebKit Review Bot 2012-06-18 06:55:09 PDT
All reviewed patches have been landed.  Closing bug.
Comment 28 WebKit Review Bot 2012-06-18 10:00:40 PDT
Re-opened since this is blocked by 89357
Comment 29 Peter Rybin 2012-06-18 10:28:21 PDT
Created attachment 148123 [details]
Fix win build
Comment 30 WebKit Review Bot 2012-06-18 10:30:26 PDT
Attachment 148123 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 31 Andrey Adaikin 2012-06-18 15:39:41 PDT
FYI

> Source/WebCore/inspector/compile-front-end.py
0 error(s), 0 warning(s), 77.6% typed
Compiling InjectedScriptSource.js...
Source/WebCore/inspector/InjectedScriptSourceTmp.js:381: WARNING - Property restart never defined on callFrame
        var result = callFrame.restart();
                     ^

0 error(s), 1 warning(s), 66.0% typed
Comment 32 Yury Semikhatsky 2012-06-19 01:31:23 PDT
Comment on attachment 148123 [details]
Fix win build

Please fix the closure compiler warning prior to landing.
Comment 33 Peter Rybin 2012-06-19 05:43:06 PDT
Created attachment 148317 [details]
Patch
Comment 34 WebKit Review Bot 2012-06-19 05:44:50 PDT
Attachment 148317 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/inspector/InjectedScript.cpp:98:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Source/WebCore/inspector/InjectedScript.h:84:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]
Total errors found: 2 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 35 WebKit Review Bot 2012-06-19 07:04:08 PDT
Comment on attachment 148317 [details]
Patch

Clearing flags on attachment: 148317

Committed r120709: <http://trac.webkit.org/changeset/120709>
Comment 36 WebKit Review Bot 2012-06-19 07:04:17 PDT
All reviewed patches have been landed.  Closing bug.