<?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>137152</bug_id>
          
          <creation_ts>2014-09-26 10:56:49 -0700</creation_ts>
          <short_desc>Web Inspector: Type Token View shows type information on hover when it shouldn&apos;t</short_desc>
          <delta_ts>2014-09-26 14:40:31 -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</component>
          <version>528+ (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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1037518</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2014-09-26 10:56:49 -0700</bug_when>
    <thetext>TypeTokenView::_shouldShowPopover is broken:

One of its conditions reads: 
if (this._types.structures &amp;&amp; this._types.structures) { ... }

But it should be written as:
if (this._types.structures &amp;&amp; this._types.structures.length &gt; 1) { ... }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037519</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-09-26 10:57:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/18470483&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037554</commentid>
    <comment_count>2</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2014-09-26 14:16:47 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; TypeTokenView::_shouldShowPopover is broken:
&gt; 
&gt; One of its conditions reads: 
&gt; if (this._types.structures &amp;&amp; this._types.structures) { ... }
&gt; 
&gt; But it should be written as:
&gt; if (this._types.structures &amp;&amp; this._types.structures.length &gt; 1) { ... }
This should actually be:
 if (this._types.structures &amp;&amp; this._types.structures.length &gt;= 1) { ... }
because we care if there is only one object or more, not more than one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037555</commentid>
    <comment_count>3</comment_count>
      <attachid>238737</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2014-09-26 14:22:19 -0700</bug_when>
    <thetext>Created attachment 238737
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037556</commentid>
    <comment_count>4</comment_count>
      <attachid>238737</attachid>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-09-26 14:25:16 -0700</bug_when>
    <thetext>Comment on attachment 238737
patch

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

&gt; Source/WebInspectorUI/UserInterface/Views/TypeTokenView.js:135
&gt; +        if (this._types.structures &amp;&amp; this._types.structures.length &gt;= 1)

I think you can drop the &gt;= 1 here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037559</commentid>
    <comment_count>5</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2014-09-26 14:40:31 -0700</bug_when>
    <thetext>landed in: http://trac.webkit.org/changeset/174019</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>238737</attachid>
            <date>2014-09-26 14:22:19 -0700</date>
            <delta_ts>2014-09-26 14:25:16 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>1566</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL1dlYkluc3BlY3RvclVJL0NoYW5nZUxvZwkocmV2aXNpb24gMTc0MDE4KQorKysgU291cmNl
L1dlYkluc3BlY3RvclVJL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBA
CisyMDE0LTA5LTI2ICBTYWFtIEJhcmF0aSAgPHNhYW1iYXJhdGkxQGdtYWlsLmNvbT4KKworICAg
ICAgICBXZWIgSW5zcGVjdG9yOiBUeXBlIFRva2VuIFZpZXcgc2hvd3MgdHlwZSBpbmZvcm1hdGlv
biBvbiBob3ZlciB3aGVuIGl0IHNob3VsZG4ndAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0
Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTM3MTUyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgVHlwZVRva2VuVmlldyBzaG91bGQgb25seSBzaG93IHR5cGUg
aW5mb3JtYXRpb24gd2hlbiB0aGVyZSBpcyAKKyAgICAgICAgbW9yZSB0aGFuIG9uZSBwcmltaXRp
dmUgdHlwZSBvciBtb3JlIHRoYW4gemVybyBvYmplY3RzIHR5cGVzLiAKKyAgICAgICAgVGhpcyBm
aXhlcyBhIGJ1ZyBpbiBjaGVja2luZyB0aGUgbGVuZ3RoIG9mIG9iamVjdCB0eXBlcy4KKworICAg
ICAgICAqIFVzZXJJbnRlcmZhY2UvVmlld3MvVHlwZVRva2VuVmlldy5qczoKKyAgICAgICAgKFdl
Ykluc3BlY3Rvci5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name="review"
          id="263480"
          type_id="1"
          status="+"
          setter="burg"
    />
          </attachment>
      

    </bug>

</bugzilla>