<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>151280</bug_id>
          
          <creation_ts>2015-11-13 16:12:11 -0800</creation_ts>
          <short_desc>Web Inspector: Dashboard log message count doesn&apos;t include console.time messages</short_desc>
          <delta_ts>2016-01-10 12:24:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix, GoodFirstBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>graouts</cc>
    
    <cc>jj</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1141972</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2015-11-13 16:12:11 -0800</bug_when>
    <thetext>* SUMMARY
Dashboard log message count doesn&apos;t include console.time messages. The Console log filter shows console.time messages when &quot;Logs&quot; is selected, so they should be included in the total.

* STEPS TO REPRODUCE
1. Inspector -&gt; Console tab
2. Type &quot;console.log(1)&quot;
3. Dashboard log count is 1.
4. Type &quot;console.time(&apos;foo&apos;)&quot;
5. Type &quot;console.timeEnd(&apos;foo&apos;)&quot;
  =&gt; Log count is 1. Expected 2.

Filtering the Console log by &quot;Errors&quot; hides the time marker. Filtering by &quot;Logs&quot; shows the time marker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141973</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-11-13 16:12:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/23543063&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154162</commentid>
    <comment_count>2</comment_count>
    <who name="Johan K. Jensen">jj</who>
    <bug_when>2016-01-09 13:00:11 -0800</bug_when>
    <thetext>The problem is in `_incrementConsoleMessageType` in `Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js`, where it only increments log/issue/error-count if the ConsoleMessage has the levels log, warning, or error respectively.
As there also exists MessageLevels info and debug, those are not included in the log-count.
Adding two fallthrough cases for info and debug to also increment the log-count would solve the problem.
This would make `console.timeEnd()`, `console.debug()`, and `console.info()` increment the log-count in the dashboard.

If that sounds like an okay solution, I’d like to submit a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154202</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-01-09 23:01:58 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; The problem is in `_incrementConsoleMessageType` in
&gt; `Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js`, where it
&gt; only increments log/issue/error-count if the ConsoleMessage has the levels
&gt; log, warning, or error respectively.
&gt; As there also exists MessageLevels info and debug, those are not included in
&gt; the log-count.

The Chrome console API reference states that console.info and console.debug are identical to console.log, so it works for me!

&gt; Adding two fallthrough cases for info and debug to also increment the
&gt; log-count would solve the problem.
&gt; This would make `console.timeEnd()`, `console.debug()`, and `console.info()`
&gt; increment the log-count in the dashboard.
&gt; 
&gt; If that sounds like an okay solution, I’d like to submit a patch.

Sounds good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154206</commentid>
    <comment_count>4</comment_count>
      <attachid>268643</attachid>
    <who name="Johan K. Jensen">jj</who>
    <bug_when>2016-01-10 03:42:55 -0800</bug_when>
    <thetext>Created attachment 268643
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154245</commentid>
    <comment_count>5</comment_count>
      <attachid>268643</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-01-10 11:36:56 -0800</bug_when>
    <thetext>Comment on attachment 268643
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154251</commentid>
    <comment_count>6</comment_count>
      <attachid>268643</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-10 12:24:43 -0800</bug_when>
    <thetext>Comment on attachment 268643
Patch

Clearing flags on attachment: 268643

Committed r194828: &lt;http://trac.webkit.org/changeset/194828&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154252</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-10 12:24:48 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268643</attachid>
            <date>2016-01-10 03:42:55 -0800</date>
            <delta_ts>2016-01-10 12:24:43 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-151280-20160110124223.patch</filename>
            <type>text/plain</type>
            <size>1696</size>
            <attacher name="Johan K. Jensen">jj</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0ODI1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViSW5zcGVj
dG9yVUkvQ2hhbmdlTG9nIGIvU291cmNlL1dlYkluc3BlY3RvclVJL0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