Bug 148283

Summary: REGRESSION (r188581): Web Inspector: Console user command isn't visible when it's expected to be
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

Description Nikita Vasilyev 2015-08-20 19:40:36 PDT
<button onclick="console.log('Clicked')">Click me</button>

Steps:
1. > 1+1
2. Click the button
3. > 1+1

Expected:
> 1+1
< 2
[Log] Clicked
> 1+1
< 2

Actual:
> 1+1
< 2
[Log] Clicked
< 2

"> 1+1" before the last line is missing.
Comment 1 Radar WebKit Bug Importer 2015-08-20 19:41:02 PDT
<rdar://problem/22374022>
Comment 2 Nikita Vasilyev 2015-08-20 19:45:36 PDT
Created attachment 259568 [details]
Patch
Comment 3 BJ Burg 2015-08-21 09:26:58 PDT
Comment on attachment 259568 [details]
Patch

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

> Source/WebInspectorUI/ChangeLog:7
> +

You should explain why this regressed, and why the fix is correct.

> Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js:288
> +            this._lastCommited = "";

Please rename this to _lastCommitted. It is spelled incorrectly. =)
Comment 4 Nikita Vasilyev 2015-08-21 23:16:21 PDT
Created attachment 259713 [details]
Patch
Comment 5 WebKit Commit Bot 2015-08-24 08:57:22 PDT
Comment on attachment 259713 [details]
Patch

Clearing flags on attachment: 259713

Committed r188862: <http://trac.webkit.org/changeset/188862>
Comment 6 WebKit Commit Bot 2015-08-24 08:57:26 PDT
All reviewed patches have been landed.  Closing bug.