<?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>199588</bug_id>
          
          <creation_ts>2019-07-08 14:10:27 -0700</creation_ts>
          <short_desc>Web Inspector: REGRESSION: Elements: pasting in the Styles sidebar adds a text node to the DOM tree</short_desc>
          <delta_ts>2019-07-08 17:28:17 -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>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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Devin Rousso">hi</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1550955</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-07-08 14:10:27 -0700</bug_when>
    <thetext># STEPS TO REPRODUCE:
1. copy &quot;foo&quot;
2. inspect any page
3. select the inline style of any node in the Elements tab
4. start adding a new property in the inline style
5. paste
 =&gt; &quot;foo&quot; added as a sibling of the currently selected node in the DOM tree</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550958</commentid>
    <comment_count>1</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-07-08 14:13:20 -0700</bug_when>
    <thetext>(In reply to Devin Rousso from comment #0)
&gt; 1. copy &quot;foo&quot;
Actually, you need to copy something that would instead be rendered as a CSS property (or multiple): &quot;foo:&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550964</commentid>
    <comment_count>2</comment_count>
      <attachid>373664</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-07-08 14:19:21 -0700</bug_when>
    <thetext>Created attachment 373664
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550969</commentid>
    <comment_count>3</comment_count>
      <attachid>373664</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2019-07-08 14:33:47 -0700</bug_when>
    <thetext>Comment on attachment 373664
Patch

rs=me

Should this be the case for other events then? WI._copy?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550972</commentid>
    <comment_count>4</comment_count>
      <attachid>373664</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-07-08 14:35:28 -0700</bug_when>
    <thetext>Comment on attachment 373664
Patch

(In reply to Joseph Pecoraro from comment #3)
&gt; Should this be the case for other events then? WI._copy?
I&apos;d say yes, but in the interest of avoiding regressions, I&apos;d rather not.  Also, the default functionality of a &quot;copy&quot; won&apos;t modify the DOM like &quot;paste&quot; would, so there&apos;s less &quot;risk&quot; there of multiple things acting on the same &quot;copy&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551057</commentid>
    <comment_count>5</comment_count>
      <attachid>373664</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-07-08 17:27:12 -0700</bug_when>
    <thetext>Comment on attachment 373664
Patch

Clearing flags on attachment: 373664

Committed r247241: &lt;https://trac.webkit.org/changeset/247241&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551058</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-07-08 17:27:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551060</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-07-08 17:28:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/52806667&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>373664</attachid>
            <date>2019-07-08 14:19:21 -0700</date>
            <delta_ts>2019-07-08 17:27:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-199588-20190708141920.patch</filename>
            <type>text/plain</type>
            <size>1500</size>
            <attacher name="Devin Rousso">hi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCmluZGV4IDFkZjM5NTQwMzA4YzQ3NGE2NTdmZDRkOTE4Yzg5
NjgxODliMWYxYzguLjg1YTU4MjkxN2RlNWVhZDc4YWJhOTc4MjEzZGU2ZDY3ODNlZTE1ZTEgMTAw
NjQ0Ci0tLSBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dl
Ykluc3BlY3RvclVJL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE5LTA3LTA4ICBEZXZp
biBSb3Vzc28gIDxkcm91c3NvQGFwcGxlLmNvbT4KKworICAgICAgICBXZWIgSW5zcGVjdG9yOiBS
RUdSRVNTSU9OOiBFbGVtZW50czogcGFzdGluZyBpbiB0aGUgU3R5bGVzIHNpZGViYXIgYWRkcyBh
IHRleHQgbm9kZSB0byB0aGUgRE9NIHRyZWUKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v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