<?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>143539</bug_id>
          
          <creation_ts>2015-04-08 16:15:48 -0700</creation_ts>
          <short_desc>Web Inspector: Regression: Showing of color swatches no longer works in Details Sidebar</short_desc>
          <delta_ts>2015-04-08 18:03:19 -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="Tobias Reiss">tobi+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>jonowells</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>1083766</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias Reiss">tobi+webkit</who>
    <bug_when>2015-04-08 16:15:48 -0700</bug_when>
    <thetext>I introduced a regression by trying to fix an ESLint issue. The ESLint report was correct but the fix was wrong.

Commit that introduced the regression:
http://svn.webkit.org/repository/webkit/trunk@182142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://github.com/WebKit/webkit/commit/b18ef637e495d9f64bca6e431d7ec71df8bc062d#diff-97910c4c4acd4a860a96c6592a3ab666L1013</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083767</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-04-08 16:16:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/20474687&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083768</commentid>
    <comment_count>2</comment_count>
      <attachid>250393</attachid>
    <who name="Tobias Reiss">tobi+webkit</who>
    <bug_when>2015-04-08 16:24:02 -0700</bug_when>
    <thetext>Created attachment 250393
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083769</commentid>
    <comment_count>3</comment_count>
      <attachid>250393</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-04-08 16:34:03 -0700</bug_when>
    <thetext>Comment on attachment 250393
patch

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

&gt; Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:396
&gt; +                this._codeMirror.setUniqueBookmark(codeMirrorTextMarker.find().from, swatchElement);

I think codeMirrorTextMarker.find() can return null/undefined. Maybe this need a null check and early return?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083770</commentid>
    <comment_count>4</comment_count>
      <attachid>250393</attachid>
    <who name="Tobias Reiss">tobi+webkit</who>
    <bug_when>2015-04-08 16:52:47 -0700</bug_when>
    <thetext>Comment on attachment 250393
patch

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

&gt;&gt; Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:396
&gt;&gt; +                this._codeMirror.setUniqueBookmark(codeMirrorTextMarker.find().from, swatchElement);
&gt; 
&gt; I think codeMirrorTextMarker.find() can return null/undefined. Maybe this need a null check and early return?

Nit: If that&apos;s the case I would rather create a new bug because I just re-enabled the code that was here before I removed it. Just without the variable declaration that initially triggered the ESLint report. I can investigate into the missing null check afterwards, if that&apos;s okay for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083776</commentid>
    <comment_count>5</comment_count>
      <attachid>250393</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-04-08 17:14:56 -0700</bug_when>
    <thetext>Comment on attachment 250393
patch

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

&gt;&gt;&gt; Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:396
&gt;&gt;&gt; +                this._codeMirror.setUniqueBookmark(codeMirrorTextMarker.find().from, swatchElement);
&gt;&gt; 
&gt;&gt; I think codeMirrorTextMarker.find() can return null/undefined. Maybe this need a null check and early return?
&gt; 
&gt; Nit: If that&apos;s the case I would rather create a new bug because I just re-enabled the code that was here before I removed it. Just without the variable declaration that initially triggered the ESLint report. I can investigate into the missing null check afterwards, if that&apos;s okay for you?

Fair enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083797</commentid>
    <comment_count>6</comment_count>
      <attachid>250393</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-04-08 18:03:11 -0700</bug_when>
    <thetext>Comment on attachment 250393
patch

Clearing flags on attachment: 250393

Committed r182576: &lt;http://trac.webkit.org/changeset/182576&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083798</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-04-08 18:03:19 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>250393</attachid>
            <date>2015-04-08 16:24:02 -0700</date>
            <delta_ts>2015-04-08 18:03:11 -0700</delta_ts>
            <desc>patch</desc>
            <filename>bug-143539-20150409012311.patch</filename>
            <type>text/plain</type>
            <size>1940</size>
            <attacher name="Tobias Reiss">tobi+webkit</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTgyNTc0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViSW5zcGVj
dG9yVUkvQ2hhbmdlTG9nIGIvU291cmNlL1dlYkluc3BlY3RvclVJL0NoYW5nZUxvZwppbmRleCBm
MWFjNTZkZmI5ZDFiMTI2ZDE4NzkzNjJkOTc2ZDg5Yjk2MzJlNmQ4Li4xZmEyZjEyZTQ0MzU3NmNk
ZmY1MzczYzU0NGJkZmVmYTliOGQ1NWNlIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViSW5zcGVjdG9y
VUkvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNyBAQAorMjAxNS0wNC0wOCAgVG9iaWFzIFJlaXNzICA8dG9iaSt3ZWJraXRAYmFzZWNv
ZGUuZGU+CisKKyAgICAgICAgV2ViIEluc3BlY3RvcjogUmVncmVzc2lvbjogU2hvd2luZyBvZiBj
b2xvciBzd2F0Y2hlcyBubyBsb25nZXIgd29ya3MgaW4gRGV0YWlscyBTaWRlYmFyCisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDM1MzkKKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBGaXggYSByZWdyZXNzaW9u
IHdoZXJlIGR1ZSB0byBhbiBFU0xpbnQgZXJyb3IgdGhlIHdob2xlIGxpbmUgaW5zdGVhZCBvZiBq
dXN0CisgICAgICAgIHRoZSB2YXJpYWJsZSBkZWNsYXJhdGlvbiB3YXMgcmVtb3ZlZC4KKworICAg
ICAgICAqIFVzZXJJbnRlcmZhY2UvVmlld3MvQ1NTU3R5bGVEZWNsYXJhdGlvblRleHRFZGl0b3Iu
anM6CisgICAgICAgIChXZWJJbnN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