<?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>145294</bug_id>
          
          <creation_ts>2015-05-21 20:28:40 -0700</creation_ts>
          <short_desc>Web Inspector: Unable to get cursor in new Rule section after creating multiple New Rules</short_desc>
          <delta_ts>2015-05-22 13:32:02 -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="Joseph Pecoraro">joepeck</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>1096768</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-05-21 20:28:40 -0700</bug_when>
    <thetext>* SUMMARY
Unable to get cursor in new Rule section after creating multiple New Rules.

* STEPS TO REPRODUCE
1. Inspect &lt;body&gt; on about:blank
2. Show Styles Rules sidebar
3. Click &quot;New Rule&quot; =&gt; creates a new &quot;body&quot; section with cursor in editor
4. Click &quot;New Rule&quot; again
  =&gt; cannot focus the textfield in either new section</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096769</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-05-21 20:29:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/21070246&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096770</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-05-21 20:32:24 -0700</bug_when>
    <thetext>It appears as if the sections are &quot;readOnly&quot;. Because they are getting the readonly placeholder string and not the editable placeholder string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096774</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-05-21 20:58:25 -0700</bug_when>
    <thetext>CSSStyleDeclarationTextEditor&apos;s _resetContent sets things readonly if:

    // Only allow editing if we have a style, it is editable and we have text range in the stylesheet.
    var readOnly = !this._style || !this._style.editable || !this._style.styleSheetTextRange;

In this case, the styleSheetTextRange is null...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096777</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-05-21 21:30:24 -0700</bug_when>
    <thetext>I have a feeling this happened with the InspectorStyleSheet::styleSheetMutated changes. I&apos;m going to try allowing InspectorStyleSheet parsed data always for the inspector style sheet, since we control modifications to it. Building now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096916</commentid>
    <comment_count>5</comment_count>
      <attachid>253599</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-05-22 12:11:09 -0700</bug_when>
    <thetext>Created attachment 253599
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096937</commentid>
    <comment_count>6</comment_count>
      <attachid>253599</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-05-22 13:31:58 -0700</bug_when>
    <thetext>Comment on attachment 253599
[PATCH] Proposed Fix

Clearing flags on attachment: 253599

Committed r184792: &lt;http://trac.webkit.org/changeset/184792&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096938</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-05-22 13:32:02 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>253599</attachid>
            <date>2015-05-22 12:11:09 -0700</date>
            <delta_ts>2015-05-22 13:31:58 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>inspector-styles.patch</filename>
            <type>text/plain</type>
            <size>1458</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBkYWExMTE2Li44OWQyYmNkIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUg
QEAKKzIwMTUtMDUtMjIgIEpvc2VwaCBQZWNvcmFybyAgPHBlY29yYXJvQGFwcGxlLmNvbT4KKwor
ICAgICAgICBXZWIgSW5zcGVjdG9yOiBVbmFibGUgdG8gZ2V0IGN1cnNvciBpbiBuZXcgUnVsZSBz
ZWN0aW9uIGFmdGVyIGNyZWF0aW5nIG11bHRpcGxlIE5ldyBSdWxlcworICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTQ1Mjk0CisKKyAgICAgICAgUmV2aWV3
ZWQgY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