<?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>7543</bug_id>
          
          <creation_ts>2006-03-01 18:27:28 -0800</creation_ts>
          <short_desc>Computed style object presents duplicate properties when using &quot;for..in&quot;</short_desc>
          <delta_ts>2006-07-16 21:44:46 -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>CSS</component>
          <version>417.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9950</dup_id>
          
          <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="Peter Flynn">ytpete</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34689</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Flynn">ytpete</who>
    <bug_when>2006-03-01 18:27:28 -0800</bug_when>
    <thetext>1. Open testcase
2. Click the button to list all the properties of a computedStyle object
3. Click the button again

Expected result:
The list is the same in both cases

Actual result:
The second time, the list contains several duplicated items.  This should NEVER happen when iterating the keys of a JavaScript object using &quot;for ... in&quot;.

The duplicated items are:
getPropertyValue, getPropertyCSSValue, removeProperty, getPropertyPriority, setProperty, item

Clicking additional times gives the same results as the 2nd click.  No further duplicates are added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34690</commentid>
    <comment_count>1</comment_count>
      <attachid>6798</attachid>
    <who name="Peter Flynn">ytpete</who>
    <bug_when>2006-03-01 18:28:18 -0800</bug_when>
    <thetext>Created attachment 6798
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40848</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-02 06:12:40 -0700</bug_when>
    <thetext>See also: bug 6639 (duplicate?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40868</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Flynn">ytpete</who>
    <bug_when>2006-05-02 10:02:52 -0700</bug_when>
    <thetext>(In reply to comment #2)

However, the problem here does not occur the very first time the properties are enumerated.  Could it be that process drops some new copies of the properties in question into the prototype chain?  If so, then this would be a dupe...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50133</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-16 21:44:46 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 9950 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6798</attachid>
            <date>2006-03-01 18:28:18 -0800</date>
            <delta_ts>2006-03-01 18:28:18 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>multiple computedstyle.html</filename>
            <type>text/html</type>
            <size>437</size>
            <attacher name="Peter Flynn">ytpete</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMC8vRU4iPg0KPGh0bWw+
PGhlYWQ+DQoNCjxzY3JpcHQ+DQpmdW5jdGlvbiBmKGlkKSB7DQoJdmFyIGRpdiA9IGRvY3VtZW50
LmdldEVsZW1lbnRCeUlkKCJmb28iKTsNCgl2YXIgY29tcFN0eWxlID0gZG9jdW1lbnQuZGVmYXVs
dFZpZXcuZ2V0Q29tcHV0ZWRTdHlsZShkaXYsICIiKTsNCg0KCXZhciBzdHIgPSAiIjsNCglmb3Io
dmFyIGsgaW4gY29tcFN0eWxlKSB7DQoJCXN0ciArPSBrICsgIjogIiArIGNvbXBTdHlsZVtrXSAr
ICJcbiI7DQoJfQ0KCWFsZXJ0KHN0cik7DQp9DQo8L3NjcmlwdD4NCg0KPC9oZWFkPjxib2R5Pg0K
DQo8YnV0dG9uIG9uY2xpY2s9J2YoKSc+Q2xpY2sgbWUgdHdpY2U8L2J1dHRvbj48YnI+DQoNCjxk
aXYgaWQ9ImZvbyI+PC9kaXY+DQoNCjwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>