<?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>21235</bug_id>
          
          <creation_ts>2008-09-30 02:02:05 -0700</creation_ts>
          <short_desc>REGRESSION (r36882-r37006): accessing the red property of an RGBColor throw an exception</short_desc>
          <delta_ts>2008-10-08 13:40:31 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>21241</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benoit Marchant">marchant</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93344</commentid>
    <comment_count>0</comment_count>
    <who name="Benoit Marchant">marchant</who>
    <bug_when>2008-09-30 02:02:05 -0700</bug_when>
    <thetext>I&apos;m pretty sure it started to happen in Version 3.1.2 (5525.20.1):

	var startTypedValue = startValue.getRGBColorValue(), 
		startR = startTypedValue.red.getFloatValue(1);

startTypedValue is returned fine, but on different calls:
startTypedValue = Object-ID164
startTypedValue.red = undefined

and on a subsequent call:
startTypedValue = Object-ID168
Gianduia.js (line 7)startTypedValue.red = -1041054550
Gianduia.js (line 7)startTypedValue.red.getFloatValue = undefined

It used to work just fine, by comparison in FireFox:
startTypedValue = [object CSSRGBColor]
startTypedValue.red = [object ROCSSPrimitiveValue]
startTypedValue.red.getFloatValue = function getFloatValue() { [native code] }

and in Safari (shipping version)
startTypedValue = Object-ID4
startTypedValue.red = Object-ID5
startTypedValue.red.getFloatValue = function getFloatValue() {
    [native code]
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93365</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-09-30 07:32:17 -0700</bug_when>
    <thetext>Could you please provide a test case, or a link to a page where this problem occurs?

I cannot reproduce this problem from the above description. Also, are you saying that this happens in shipping Safari, and not a nightly build? For nightly builds, this may be related to bug 21241.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93829</commentid>
    <comment_count>2</comment_count>
      <attachid>24035</attachid>
    <who name="Benoit Marchant">marchant</who>
    <bug_when>2008-10-02 17:03:25 -0700</bug_when>
    <thetext>Created attachment 24035
test case for bug #21235</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93830</commentid>
    <comment_count>3</comment_count>
    <who name="Benoit Marchant">marchant</who>
    <bug_when>2008-10-02 17:04:29 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Could you please provide a test case, or a link to a page where this problem
&gt; occurs?
&gt; 
&gt; I cannot reproduce this problem from the above description. Also, are you
&gt; saying that this happens in shipping Safari, and not a nightly build? For
&gt; nightly builds, this may be related to bug 21241.
&gt; 

I just uploaded a test file showing the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93854</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-10-02 23:24:11 -0700</bug_when>
    <thetext>You didn&apos;t say whether you see this problem with a nightly build, or with shipping Safari/WebKit 3.1.2. I can not reproduce it with shipping Safari/WebKit, so it is probably the same as bug 21241.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93855</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-10-02 23:28:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/6267010&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93890</commentid>
    <comment_count>6</comment_count>
    <who name="Benoit Marchant">marchant</who>
    <bug_when>2008-10-03 07:06:27 -0700</bug_when>
    <thetext>the problem happens only with the nightly webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94598</commentid>
    <comment_count>7</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-10-08 13:40:31 -0700</bug_when>
    <thetext>This regresses from r36882 to r37006, so it looks like it is a duplicate of bug 21241.

*** This bug has been marked as a duplicate of 21241 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24035</attachid>
            <date>2008-10-02 17:03:25 -0700</date>
            <delta_ts>2008-10-02 17:03:25 -0700</delta_ts>
            <desc>test case for bug #21235</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>1525</size>
            <attacher name="Benoit Marchant">marchant</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIj4KCjxodG1s
IGxhbmc9ImVuIj4KPGhlYWQ+Cgk8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRl
bnQ9InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCI+Cgk8dGl0bGU+dGVzdDwvdGl0bGU+CgkKCQoK
CTxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KCQoJCWZ1bmN0aW9uIHRlc3QoKSB7CgkJ
CiAgICAgICAgICAgIHZhciBlbGVtZW50ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3Rlc3Qn
KTsKICAgICAgICAgICAgdmFyIGNvbXB1dGVkU3R5bGUgPSBkb2N1bWVudC5kZWZhdWx0Vmlldy5n
ZXRDb21wdXRlZFN0eWxlKGVsZW1lbnQsbnVsbCk7CiAgICAgICAgICAgIHZhciBjb3VudEkgPSBj
b21wdXRlZFN0eWxlLmxlbmd0aCwgayA9IGNvdW50SSwgdmFsdWUsIHByb3BlcnR5LCByZ2JDb2xv
clZhbHVlLHIsZyxiIDsKICAgICAgICAgICAgCiAgICAgICAgICAgIGlmKGNvdW50SSkgewogICAg
ICAgICAgICAgICAgZG8gewogICAgICAgICAgICAgICAgICAgIHByb3BlcnR5ID0gY29tcHV0ZWRT
dHlsZS5pdGVtKGstY291bnRJKTsKICAgICAgICAgICAgICAgICAgICBpZighcHJvcGVydHkpCiAg
ICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOwogICAgICAgICAgICAgICAgICAgIHZhbHVl
ID0gY29tcHV0ZWRTdHlsZS5nZXRQcm9wZXJ0eUNTU1ZhbHVlKHByb3BlcnR5KTsKICAgICAgICAg
ICAgICAgICAgICBpZighdmFsdWUpIGNvbnRpbnVlOwkKICAgICAgICAgICAgICAgICAgICAKICAg
ICAgICAgICAgICAgICAgICBpZih2YWx1ZS5wcmltaXRpdmVUeXBlID09PSBDU1NQcmltaXRpdmVW
YWx1ZS5DU1NfUkdCQ09MT1IpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmdiQ29sb3JWYWx1
ZSA9IHZhbHVlLmdldFJHQkNvbG9yVmFsdWUoKTsKICAgICAgICAgICAgICAgICAgICAgICAgciA9
IHJnYkNvbG9yVmFsdWUucmVkLmdldEZsb2F0VmFsdWUoMSk7CiAgICAgICAgICAgICAgICAgICAg
ICAgIGcgPSByZ2JDb2xvclZhbHVlLmdyZWVuLmdldEZsb2F0VmFsdWUoMSk7IAogICAgICAgICAg
ICAgICAgICAgICAgICBiID0gcmdiQ29sb3JWYWx1ZS5ibHVlLmdldEZsb2F0VmFsdWUoMSk7CiAg
ICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxv
Zyhwcm9wZXJ0eSsiOiByPSIrcisiLCBnPSIrZysiLCBiPSIrYik7CiAgICAgICAgICAgICAgICAg
ICAgfQogICAgICAgICAgICAgICAgICAgIAkJCQogICAgICAgICAgICAgICAgfQogICAgICAgICAg
ICAgICAgd2hpbGUgKC0tY291bnRJKQkKICAgICAgICAgICAgfQoKCQkKCQl9CgkJCgkJPC9zY3Jp
cHQ+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiN0ZXN0IHsKICAgIAliYWNrZ3JvdW5kLWNvbG9y
OiMzOTQ1NkE7Cn0KCgo8L3N0eWxlPgoKPC9oZWFkPgo8Ym9keSBvbmxvYWQ9InRlc3QoKSI+ICAg
CgoKCjxkaXYgaWQ9InRlc3QiPjwvZGl2PgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>