<?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>28856</bug_id>
          
          <creation_ts>2009-08-31 14:26:04 -0700</creation_ts>
          <short_desc>console log message repeat count double what it should be</short_desc>
          <delta_ts>2009-09-01 07:41:39 -0700</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 (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Mueller">pmuellr</reporter>
          <assigned_to name="Pavel Feldman">pfeldman</assigned_to>
          <cc>joepeck</cc>
    
    <cc>pfeldman</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143724</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-08-31 14:26:04 -0700</bug_when>
    <thetext>Steps:

1. Traverse to a web page in a WebKit nightly
2. Open Web Inspector
3. Open the console.
4. Enter the text &apos;console.log(&quot;message&quot;)&apos; and press Enter.

Expected: to see the unadorned message in the console.
Actual: message with a colored prefix of &quot;2&quot; indicating the message has been logged twice.

5. Enter the text &apos;console.log(&quot;message&quot;);console.log(&quot;message&quot;)&apos; and press Enter.

Expected: to see the message with a colored prefix of &quot;2&quot; indicating the message has been logged twice.
Actual: message with a colored prefix of &quot;4&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143757</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-08-31 16:59:46 -0700</bug_when>
    <thetext>WebInspector.addMessageToConsole gets called twice, which makes me think that this is coming from the C++ side of things, not JavaScript.  Nothing jumped out at me in the last few Console.cpp changes.

Also, CC&apos;ing some people on this, you can always use:
http://bugs.webkit.decenturl.com/new-web-inspector-bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143876</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-09-01 06:47:27 -0700</bug_when>
    <thetext>I was poking around ConsoleMessage.cpp and friends and noticed a &quot;sameness&quot; check for the messages in InspectorController::addConsoleMessage(), so I naively just commented out the line:

   m_previousMessage-&gt;incrementCount();

result is never seeing a repeat count in the console.  So at this point, I&apos;m guessing that this repeatCount calculation is required, and the one in addMessage() in ConsoleView.js needs tweaking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143881</commentid>
    <comment_count>3</comment_count>
      <attachid>38864</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2009-09-01 07:23:07 -0700</bug_when>
    <thetext>Created attachment 38864
fix merge (too much fuzz)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143885</commentid>
    <comment_count>4</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2009-09-01 07:41:39 -0700</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/inspector/front-end/InjectedScript.js
Committed r47933</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38864</attachid>
            <date>2009-09-01 07:23:07 -0700</date>
            <delta_ts>2009-09-01 07:31:28 -0700</delta_ts>
            <desc>fix merge (too much fuzz)</desc>
            <filename>fuzz</filename>
            <type>text/plain</type>
            <size>1236</size>
            <attacher name="Pavel Feldman">pfeldman</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
OTllNzE4YS4uMTdhYmI2ZSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAwOS0wOS0wMSAgUGF2ZWwgRmVsZG1h
biAgPHBmZWxkbWFuQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBUaW1vdGh5
IEhhdGNoZXIuCisKKyAgICAgICAgV2ViSW5zcGVjdG9yOiBjb25zb2xlIGxvZyBtZXNzYWdlIHJl
cGVhdCBjb3VudCBkb3VibGUuCisKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTI4ODU2CisKKyAgICAgICAgKiBpbnNwZWN0b3IvZnJvbnQtZW5kL0luamVj
dGVkU2NyaXB0LmpzOgorICAgICAgICAoSW5qZWN0ZWRTY3JpcHQuX2V2YWx1YXRlT24pOgorCiAy
MDA5LTA5LTAxICBKYW4gTWljaGFlbCBBbG9uem8gIDxqbWFsb256b0B3ZWJraXQub3JnPgogCiAg
ICAgICAgIFJldmlld2VkIGJ5IE1hcmsgUm93ZS4KZGlmZiAtLWdpdCBhL1dlYkNvcmUvaW5zcGVj
dG9yL2Zyb250LWVuZC9JbmplY3RlZFNjcmlwdC5qcyBiL1dlYkNvcmUvaW5zcGVjdG9yL2Zyb250
LWVuZC9JbmplY3RlZFNjcmlwdC5qcwppbmRleCAxYzAyOWMzLi5hZWU4NDBlIDEwMDY0NAotLS0g
YS9XZWJDb3JlL2luc3BlY3Rvci9mcm9udC1lbmQvSW5qZWN0ZWRTY3JpcHQuanMKKysrIGIvV2Vi
Q29yZS9pbnNwZWN0b3IvZnJvbnQtZW5kL0luamVjdGVkU2NyaXB0LmpzCkBAIC01MDUsNyArNTA1
LDYgQEAgSW5qZWN0ZWRTY3JpcHQuX2V2YWx1YXRlT24gPSBmdW5jdGlvbihldmFsRnVuY3Rpb24s
IG9iamVjdCwgZXhwcmVzc2lvbikKICAgICAgICAgdmFyIHZhbHVlID0gZXZhbEZ1bmN0aW9uLmNh
bGwob2JqZWN0LCBleHByZXNzaW9uKTsKICAgICAgICAgaWYgKHZhbHVlID09PSBudWxsKQogICAg
ICAgICAgICAgcmV0dXJuIHsgdmFsdWU6IG51bGwgfTsKLSAgICAgICAgdmFyIHZhbHVlID0gZXZh
bEZ1bmN0aW9uLmNhbGwob2JqZWN0LCBleHByZXNzaW9uKTsKICAgICAgICAgdmFyIHdyYXBwZXIg
PSBJbnNwZWN0b3JDb250cm9sbGVyLndyYXBPYmplY3QodmFsdWUpOwogICAgICAgICBpZiAodHlw
ZW9mIHdyYXBwZXIgPT09ICJvYmplY3QiICYmIHdyYXBwZXIuZXhjZXB0aW9uKSB7CiAgICAgICAg
ICAgICByZXN1bHQudmFsdWUgPSB3cmFwcGVyLmV4Y2VwdGlvbjsK
</data>
<flag name="review"
          id="19851"
          type_id="1"
          status="+"
          setter="timothy"
    />
          </attachment>
      

    </bug>

</bugzilla>