<?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>51390</bug_id>
          
          <creation_ts>2010-12-21 06:11:11 -0800</creation_ts>
          <short_desc>Web Inspector: After scrolling new property value and cancelling, removed property remains active in page style</short_desc>
          <delta_ts>2010-12-23 03:12:33 -0800</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>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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Pavlov (apavlov)">apavlov</reporter>
          <assigned_to name="Alexander Pavlov (apavlov)">apavlov</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>commit-queue</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324974</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-21 06:11:11 -0800</bug_when>
    <thetext>1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324977</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-21 06:14:19 -0800</bug_when>
    <thetext>Somehow the blank report got committed.

1. In any page, add a numeric property, say, &quot;height&quot; for the &quot;body&quot; element
2. Type in 20% and press Up or Down to have the value inc/decremented.
3. Hit Esc to cancel the property addition

Observe that the effect of the property (e.g. height: 21%) remains active in the page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325023</commentid>
    <comment_count>2</comment_count>
      <attachid>77119</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-21 08:38:59 -0800</bug_when>
    <thetext>Created attachment 77119
[PATCH] Suggested fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325060</commentid>
    <comment_count>3</comment_count>
      <attachid>77119</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-21 10:27:57 -0800</bug_when>
    <thetext>Comment on attachment 77119
[PATCH] Suggested fix

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

&gt; WebCore/inspector/front-end/StylesSidebarPane.js:1857
&gt; +        if (!styleTextLength &amp;&amp; updateInterface &amp;&amp; this._newProperty &amp;&amp; !(&quot;originalPropertyText&quot; in this)) {

How can something be in the state where this._newProperty is true and it has &quot;originalPropertyText&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325063</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-21 10:31:47 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 77119 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=77119&amp;action=review
&gt; 
&gt; &gt; WebCore/inspector/front-end/StylesSidebarPane.js:1857
&gt; &gt; +        if (!styleTextLength &amp;&amp; updateInterface &amp;&amp; this._newProperty &amp;&amp; !(&quot;originalPropertyText&quot; in this)) {
&gt; 
&gt; How can something be in the state where this._newProperty is true and it has &quot;originalPropertyText&quot;?

It happens exactly after the steps 1-3 are executed. In this case, originalPropertyText === &quot;&quot; (it is remembered after the Up or Down keys are hit to increment/decrement the property value). Setting the property text back to &quot;&quot; effectively removes the property from the style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325105</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-21 11:32:46 -0800</bug_when>
    <thetext>I see, you explained this to me on IRC:

  • &quot;originalPropertyText&quot; 
  • Before patch: Up/Down + Esc = the property gets removed from UI (sidebar) but kept in CSSStyleDeclarations (page)
  • After patch: Up/Down + Esc = the property gets removed both from UI (sidebar) and CSSStyleDeclarations (page)

That sounds good to me.

For the sake of understanding this, moving the (&quot;originalPropertyText&quot; in this) into a
helper function under a more descriptive name. Something like:

  _hasBeenAppliedToPageViaUpDown: { return (&quot;originalPropertyText&quot; in this); }

In doing so, the reading becomes:

  if (!styleTextLength &amp;&amp; updateInterface &amp;&amp; this._newProperty &amp;&amp; !this._hasBeenAppliedToPageViaUpDown()) {
    // Delete from UI (sidebar)
  }

So the code inside this block doesn&apos;t run! Now I see what you mean when you said:

  Setting the property text back to &quot;&quot; effectively removes the property from the style.

That is the part I wasn&apos;t seeing. I think that part should be commented

  // New properties applied via up/down have an originalPropertyText and will be deleted later
  // on, if cancelled, when the empty string gets applied as their style text.

If that sounds correct then r=me. I applied the patch and it worked nicely. However, up/down
seemed broken in other ways. I think I just need to update for some recent fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325107</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-21 11:33:19 -0800</bug_when>
    <thetext>&gt;   • &quot;originalPropertyText&quot; is used with up/down only, to save the original value</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325463</commentid>
    <comment_count>7</comment_count>
      <attachid>77210</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-22 05:42:20 -0800</bug_when>
    <thetext>Created attachment 77210
[PATCH] Comments addressed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325482</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-22 06:47:07 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; I see, you explained this to me on IRC:
&gt; ...
&gt; If that sounds correct then r=me. I applied the patch and it worked nicely. However, up/down
&gt; seemed broken in other ways. I think I just need to update for some recent fixes.

Yes, all your statements are valid, I have fixed the nits in the latest patch.
Just in case, can you say how up/down is broken for you? Some changes around it are coming in the CSS value autocompletion (bug 41414).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325535</commentid>
    <comment_count>9</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-22 10:01:47 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; Just in case, can you say how up/down is broken for you? Some changes around
&gt; it are coming in the CSS value autocompletion (bug 41414).

I just tested with a fresh ToT build (and with your patch applied). Things were working
better then when I made my comment.

Dabbling with the inline style attribute I found some issues:
&lt;http://webkit.org/b/51477&gt; Web Inspector: ASSERT removing inline HTML style property
&lt;http://webkit.org/b/51478&gt; Web Inspector: Inline HTML style property out of sync with element.style in Sidebar</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325536</commentid>
    <comment_count>10</comment_count>
      <attachid>77210</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-12-22 10:03:45 -0800</bug_when>
    <thetext>Comment on attachment 77210
[PATCH] Comments addressed

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

&gt; WebCore/inspector/front-end/StylesSidebarPane.js:1854
&gt; +        // New properties applied via up/down have an originalPropertyText and will be deleted later
&gt; +        // on, if cancelled, when the empty string gets applied as their style text.

This comment would be better suited down below, in `applyStyleText`, next to the usage of
the _hasBeenAppliedToPageViaUpDown function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325619</commentid>
    <comment_count>11</comment_count>
      <attachid>77210</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-22 12:02:17 -0800</bug_when>
    <thetext>Comment on attachment 77210
[PATCH] Comments addressed

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

&gt;&gt; WebCore/inspector/front-end/StylesSidebarPane.js:1854
&gt;&gt; +        // on, if cancelled, when the empty string gets applied as their style text.
&gt; 
&gt; This comment would be better suited down below, in `applyStyleText`, next to the usage of
&gt; the _hasBeenAppliedToPageViaUpDown function.

There is a very similar comment down below (which had been there for ages, I just augmented it), so I decided to keep all things clear :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326005</commentid>
    <comment_count>12</comment_count>
      <attachid>77210</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-12-23 02:55:06 -0800</bug_when>
    <thetext>Comment on attachment 77210
[PATCH] Comments addressed

Landing as is, since there is a very similar comment in the snippet you are pointing to. Please speak up if you think both comments should be changed, and I can drive-by fix them in one of subsequent changes (you submitted a good many of bugs yesterday :))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326008</commentid>
    <comment_count>13</comment_count>
      <attachid>77210</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-23 03:12:26 -0800</bug_when>
    <thetext>Comment on attachment 77210
[PATCH] Comments addressed

Clearing flags on attachment: 77210

Committed r74548: &lt;http://trac.webkit.org/changeset/74548&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326009</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-23 03:12:33 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77119</attachid>
            <date>2010-12-21 08:38:59 -0800</date>
            <delta_ts>2010-12-22 05:42:20 -0800</delta_ts>
            <desc>[PATCH] Suggested fix</desc>
            <filename>scrollcancel.patch</filename>
            <type>text/plain</type>
            <size>1839</size>
            <attacher name="Alexander Pavlov (apavlov)">apavlov</attacher>
            
              <data encoding="base64">Y29tbWl0IDZmYjI2ZTQzNWUyMWZkM2MzYzYwMDRlNDY4ZjcwMDgyNmM4YmE3MGEKQXV0aG9yOiBB
bGV4YW5kZXIgUGF2bG92IDxhcGF2bG92QGNocm9taXVtLm9yZz4KRGF0ZTogICBUdWUgRGVjIDIx
IDE5OjMzOjE4IDIwMTAgKzAzMDAKCiAgICBSZXZlcnRQcm9wZXJ0eUFmdGVyU2Nyb2xsCgpkaWZm
IC0tZ2l0IGEvV2ViQ29yZS9DaGFuZ2VMb2cgYi9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCBkYmMz
MGJmLi41YzcyYmFlIDEwMDY0NAotLS0gYS9XZWJDb3JlL0NoYW5nZUxvZworKysgYi9XZWJDb3Jl
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDEwLTEyLTIxICBBbGV4YW5kZXIgUGF2bG92
ICA8YXBhdmxvdkBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgV2ViIEluc3BlY3RvcjogQWZ0ZXIgc2Nyb2xsaW5nIG5ldyBwcm9w
ZXJ0eSB2YWx1ZSBhbmQgY2FuY2VsbGluZywgcmVtb3ZlZCBwcm9wZXJ0eSByZW1haW5zIGFjdGl2
ZSBpbiBwYWdlIHN0eWxlCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD01MTM5MAorCisgICAgICAgICogaW5zcGVjdG9yL2Zyb250LWVuZC9TdHlsZXNTaWRl
YmFyUGFuZS5qczoKKyAgICAgICAgKFdlYkluc3BlY3Rvci5TdHlsZVByb3BlcnR5VHJlZUVsZW1l
bnQucHJvdG90eXBlKTo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AgIGlmICghc3R5bGVUZXh0TGVuZ3RoICYmIHVwZGF0ZUludGVyZmFjZSAmJiB0aGlz
Ll9uZXdQcm9wZXJ0eSAmJiAhKCJvcmlnaW5hbFByb3BlcnR5VGV4dCIgaW4gdGhpcykpIHsKKyAg
ICAgICAgICAgIC8vIFRoZSB1c2VyIGRlbGV0ZWQgZXZlcnl0aGluZyBhbmQgbmV2ZXIgYXBwbGll
ZCBhIG5ldyBwcm9wZXJ0eSB2YWx1ZSB2aWEgVXAvRG93biBzY3JvbGxpbmcsIHNvIHJlbW92ZSB0
aGUgdHJlZSBlbGVtZW50IGFuZCB1cGRhdGUuCiAgICAgICAgICAgICB0aGlzLnBhcmVudC5yZW1v
dmVDaGlsZCh0aGlzKTsKICAgICAgICAgICAgIHNlY3Rpb24uYWZ0ZXJVcGRhdGUoKTsKICAgICAg
ICAgICAgIHJldHVybjsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77210</attachid>
            <date>2010-12-22 05:42:20 -0800</date>
            <delta_ts>2010-12-23 03:12:25 -0800</delta_ts>
            <desc>[PATCH] Comments addressed</desc>
            <filename>scrollcancel.patch</filename>
            <type>text/plain</type>
            <size>2800</size>
            <attacher name="Alexander Pavlov (apavlov)">apavlov</attacher>
            
              <data encoding="base64">Y29tbWl0IGYzNmI1ZjllZjI0OTdlNWQ1MGE2NWUxYzg3NjBhYThjODMyNDZiNzEKQXV0aG9yOiBB
bGV4YW5kZXIgUGF2bG92IDxhcGF2bG92QGNocm9taXVtLm9yZz4KRGF0ZTogICBUdWUgRGVjIDIx
IDE5OjMzOjE4IDIwMTAgKzAzMDAKCiAgICBSZXZlcnRQcm9wZXJ0eUFmdGVyU2Nyb2xsCgpkaWZm
IC0tZ2l0IGEvV2ViQ29yZS9DaGFuZ2VMb2cgYi9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCA1MDJi
ZWMyLi42NzM5YzQ5IDEwMDY0NAotLS0gYS9XZWJ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