WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
89147
Web Inspector: Support 'Restart frame' in protocol and backend
https://bugs.webkit.org/show_bug.cgi?id=89147
Summary
Web Inspector: Support 'Restart frame' in protocol and backend
Peter Rybin
Reported
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.
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
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Peter Rybin
Comment 1
2012-06-14 19:04:12 PDT
Created
attachment 147708
[details]
Patch
WebKit Review Bot
Comment 2
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.
Gustavo Noronha (kov)
Comment 3
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
Early Warning System Bot
Comment 4
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
Build Bot
Comment 5
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
Early Warning System Bot
Comment 6
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
Gyuyoung Kim
Comment 7
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
Build Bot
Comment 8
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
Early Warning System Bot
Comment 9
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
Pavel Feldman
Comment 10
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.
Pavel Feldman
Comment 11
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".
Peter Rybin
Comment 12
2012-06-16 16:54:59 PDT
Created
attachment 147994
[details]
Patch
WebKit Review Bot
Comment 13
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.
Peter Rybin
Comment 14
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.
Build Bot
Comment 15
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
WebKit Review Bot
Comment 16
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
Peter Rybin
Comment 17
2012-06-16 17:51:09 PDT
Created
attachment 147996
[details]
Patch
WebKit Review Bot
Comment 18
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.
WebKit Review Bot
Comment 19
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
Build Bot
Comment 20
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
Peter Rybin
Comment 21
2012-06-17 20:05:58 PDT
Created
attachment 148040
[details]
Patch
WebKit Review Bot
Comment 22
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.
Yury Semikhatsky
Comment 23
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.
Peter Rybin
Comment 24
2012-06-18 05:05:34 PDT
Created
attachment 148085
[details]
Patch
WebKit Review Bot
Comment 25
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.
WebKit Review Bot
Comment 26
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
>
WebKit Review Bot
Comment 27
2012-06-18 06:55:09 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 28
2012-06-18 10:00:40 PDT
Re-opened since this is blocked by 89357
Peter Rybin
Comment 29
2012-06-18 10:28:21 PDT
Created
attachment 148123
[details]
Fix win build
WebKit Review Bot
Comment 30
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.
Andrey Adaikin
Comment 31
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
Yury Semikhatsky
Comment 32
2012-06-19 01:31:23 PDT
Comment on
attachment 148123
[details]
Fix win build Please fix the closure compiler warning prior to landing.
Peter Rybin
Comment 33
2012-06-19 05:43:06 PDT
Created
attachment 148317
[details]
Patch
WebKit Review Bot
Comment 34
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.
WebKit Review Bot
Comment 35
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
>
WebKit Review Bot
Comment 36
2012-06-19 07:04:17 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug