WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100695
Web Inspector: Output code evaluated in the console the same as console.log
https://bugs.webkit.org/show_bug.cgi?id=100695
Summary
Web Inspector: Output code evaluated in the console the same as console.log
Nikita Vasilyev
Reported
2012-10-29 13:47:35 PDT
console.log shows a nice summary of an object:
> obj = {x: 1} > console.log(obj)
Object {x: 1} Just typing a variable name in the console shows it the old uninformative way:
> obj
Object I expect it to work the same as console.log
Attachments
Patch
(26.26 KB, patch)
2012-10-30 00:39 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(37.70 KB, patch)
2012-10-31 08:45 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(39.63 KB, patch)
2012-10-31 08:48 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(40.50 KB, patch)
2012-11-01 01:29 PDT
,
Yury Semikhatsky
pfeldman
: review+
pfeldman
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-10-30 00:39:38 PDT
Created
attachment 171382
[details]
Patch
WebKit Review Bot
Comment 2
2012-10-30 00:42:06 PDT
Attachment 171382
[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:64: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:86: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.h:71: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InspectorDebuggerAgent.h:110: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:61: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:79: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 7 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 3
2012-10-30 02:41:05 PDT
Comment on
attachment 171382
[details]
Patch
Attachment 171382
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14632417
New failing tests: inspector/console/console-eval-global.html inspector/debugger/event-listener-breakpoints.html inspector/debugger/eval-on-pause-blocked.html inspector/debugger/debugger-eval-while-paused.html inspector/debugger/debugger-no-nested-pause.html inspector/console/command-line-api-inspect.html http/tests/inspector/network/network-initiator-from-console.html inspector/console/console-api-on-call-frame.html inspector/console/console-format.html http/tests/inspector/console-cd-completions.html inspector/debugger/debugger-eval-on-call-frame.html inspector/console/command-line-api.html inspector/console/console-eval-undefined-override.html inspector/debugger/debugger-suspend-active-dom-objects.html
Build Bot
Comment 4
2012-10-30 03:53:28 PDT
Comment on
attachment 171382
[details]
Patch
Attachment 171382
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14625529
New failing tests: inspector/console/console-eval-global.html inspector/console/console-api-on-call-frame.html inspector/debugger/eval-on-pause-blocked.html inspector/debugger/debugger-no-nested-pause.html inspector/console/command-line-api-inspect.html inspector/debugger/disable-script.html http/tests/inspector/network/network-initiator-from-console.html inspector/debugger/debugger-eval-while-paused.html inspector/console/console-format.html inspector/debugger/function-details.html inspector/console/console-eval-undefined-override.html inspector/debugger/debugger-eval-on-call-frame.html inspector/console/command-line-api.html inspector/debugger/debugger-suspend-active-dom-objects.html
Pavel Feldman
Comment 5
2012-10-31 05:11:05 PDT
Comment on
attachment 171382
[details]
Patch You probably want to rebaseline some tests.
Yury Semikhatsky
Comment 6
2012-10-31 08:45:50 PDT
Created
attachment 171666
[details]
Patch
WebKit Review Bot
Comment 7
2012-10-31 08:47:38 PDT
Attachment 171666
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/inspector/console/command-line..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:64: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:86: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.h:71: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:61: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:79: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InspectorDebuggerAgent.h:110: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 7 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 8
2012-10-31 08:48:48 PDT
Created
attachment 171668
[details]
Patch
Yury Semikhatsky
Comment 9
2012-10-31 08:49:26 PDT
(In reply to
comment #5
)
> (From update of
attachment 171382
[details]
) > You probably want to rebaseline some tests.
Indeed. Updated expectations to include object preview for evaluation results.
WebKit Review Bot
Comment 10
2012-10-31 08:50:59 PDT
Attachment 171668
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/insp..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:64: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:86: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.h:71: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:61: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:79: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InspectorDebuggerAgent.h:110: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 7 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 11
2012-10-31 12:01:18 PDT
Comment on
attachment 171668
[details]
Patch
Attachment 171668
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14656247
New failing tests: http/tests/inspector/network/network-initiator-from-console.html
Yury Semikhatsky
Comment 12
2012-11-01 01:29:58 PDT
Created
attachment 171792
[details]
Patch
WebKit Review Bot
Comment 13
2012-11-01 01:33:19 PDT
Attachment 171792
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/http..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:64: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:86: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.h:71: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:61: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InjectedScript.h:79: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/inspector/InspectorDebuggerAgent.h:110: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 7 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Pavel Feldman
Comment 14
2012-11-01 04:10:46 PDT
Comment on
attachment 171792
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171792&action=review
> Source/WebCore/inspector/front-end/ConsoleMessage.js:358 > + useArrayPreviewInFormatter: function(array)
Please annotate this method.
Yury Semikhatsky
Comment 15
2012-11-01 05:16:20 PDT
(In reply to
comment #14
)
> (From update of
attachment 171792
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=171792&action=review
> > > Source/WebCore/inspector/front-end/ConsoleMessage.js:358 > > + useArrayPreviewInFormatter: function(array) > > Please annotate this method.
Done.
Yury Semikhatsky
Comment 16
2012-11-01 05:17:26 PDT
Committed
r133150
: <
http://trac.webkit.org/changeset/133150
>
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