<?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>62947</bug_id>
          
          <creation_ts>2011-06-18 19:21:35 -0700</creation_ts>
          <short_desc>Don&apos;t use PassRefPtr variables in the V8 bindings generator</short_desc>
          <delta_ts>2011-06-20 10:55:32 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Anders Carlsson">andersca</reporter>
          <assigned_to name="Anders Carlsson">andersca</assigned_to>
          <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>423301</commentid>
    <comment_count>0</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-06-18 19:21:35 -0700</bug_when>
    <thetext>Don&apos;t use PassRefPtr variables in the V8 bindings generator</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423302</commentid>
    <comment_count>1</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-06-18 19:23:10 -0700</bug_when>
    <thetext>The V8 bindings generator will generate local variables of type PassRefPtr&lt;DOMStringList&gt; and then try to assign into them. This will break when https://bugs.webkit.org/show_bug.cgi?id=62940 is landed so I&apos;ll try to remove the offending line in CodeGeneratorV8.pm to see what else breaks. The offending line is

    return &quot;PassRefPtr&lt;DOMStringList&gt;&quot; if $type eq &quot;DOMStringList&quot; and $isParameter;

and it was added as part of https://bugs.webkit.org/show_bug.cgi?id=56950</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423303</commentid>
    <comment_count>2</comment_count>
      <attachid>97713</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-06-18 19:23:36 -0700</bug_when>
    <thetext>Created attachment 97713
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423399</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2011-06-19 14:08:23 -0700</bug_when>
    <thetext>Anders, are you waiting for something to mark this for review?  It looks fine to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423763</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-06-20 10:53:05 -0700</bug_when>
    <thetext>With this patch, addSpellcheckRangeCallback in V8HTMLTextAreaElement.cpp now looks like:


--- V8HTMLTextAreaElement-baseline.cpp	2011-06-20 10:51:22.000000000 -0700
+++ V8HTMLTextAreaElement.cpp	2011-06-20 10:51:49.000000000 -0700
@@ -367,7 +367,7 @@
         imp-&gt;addSpellcheckRange(start, length);
         return v8::Handle&lt;v8::Value&gt;();
     }
-    EXCEPTION_BLOCK(PassRefPtr&lt;DOMStringList&gt;, suggestions, v8ValueToWebCoreDOMStringList(args[2]));
+    EXCEPTION_BLOCK(RefPtr&lt;DOMStringList&gt;, suggestions, v8ValueToWebCoreDOMStringList(args[2]));
     if (args.Length() &lt;= 3) {
         imp-&gt;addSpellcheckRange(start, length, suggestions);
         return v8::Handle&lt;v8::Value&gt;();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423767</commentid>
    <comment_count>5</comment_count>
      <attachid>97713</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-06-20 10:53:53 -0700</bug_when>
    <thetext>Comment on attachment 97713
Patch

+        No new tests. (OOPS!)

^^^ You&apos;ll probably want to remove this line from the ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423771</commentid>
    <comment_count>6</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-06-20 10:55:32 -0700</bug_when>
    <thetext>Committed r89261: &lt;http://trac.webkit.org/changeset/89261&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>97713</attachid>
            <date>2011-06-18 19:23:36 -0700</date>
            <delta_ts>2011-06-20 10:53:53 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-62947-20110618192334.patch</filename>
            <type>text/plain</type>
            <size>1218</size>
            <attacher name="Anders Carlsson">andersca</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDg5MjA5KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDYtMTggIEFuZGVycyBD
YXJsc3NvbiAgPGFuZGVyc2NhQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBEb24ndCB1c2UgUGFzc1JlZlB0ciB2YXJpYWJsZXMgaW4g
dGhlIFY4IGJpbmRpbmdzIGdlbmVyYXRvcgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9NjI5NDcKKworICAgICAgICBObyBuZXcgdGVzdHMuIChPT1BTISkK
KworICAgICAgICAqIGJpbmRpbmdzL3NjcmlwdHMvQ29kZUdlbmVyYXRvclY4LnBtOgorCiAyMDEx
LTA2LTE4ICBKZXIgTm9ibGUgIDxqZXIubm9ibGVAYXBwbGUuY29tPgogCiAgICAgICAgIFJldmll
d2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogU291cmNlL1dlYkNvcmUvYmluZGluZ3Mvc2NyaXB0
cy9Db2RlR2VuZXJhdG9yVjgucG0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvYmluZGlu
Z3Mvc2NyaXB0cy9Db2RlR2VuZXJhdG9yVjgucG0JKHJldmlzaW9uIDg5MjA3KQorKysgU291cmNl
L1dlYkNvcmUvYmluZGluZ3Mvc2NyaXB0cy9Db2RlR2VuZXJhdG9yVjgucG0JKHdvcmtpbmcgY29w
eSkKQEAgLTI5MjEsNyArMjkyMSw2IEBAIHN1YiBHZXROYXRpdmVUeXBlCiAKICAgICByZXR1cm4g
IlJlZlB0cjxNZWRpYVF1ZXJ5TGlzdExpc3RlbmVyPiIgaWYgJHR5cGUgZXEgIk1lZGlhUXVlcnlM
aXN0TGlzdGVuZXIiOwogCi0gICAgcmV0dXJuICJQYXNzUmVmUHRyPERPTVN0cmluZ0xpc3Q+IiBp
ZiAkdHlwZSBlcSAiRE9NU3RyaW5nTGlzdCIgYW5kICRpc1BhcmFtZXRlcjsKICAgICByZXR1cm4g
IlJlZlB0cjxET01TdHJpbmdMaXN0PiIgaWYgJHR5cGUgZXEgIkRPTVN0cmluZ0xpc3QiOwogCiAg
ICAgIyBEZWZhdWx0LCBhc3N1bWUgbmF0aXZlIHR5cGUgaXMgYSBwb2ludGVyIHdpdGggc2FtZSB0
eXBlIG5hbWUgYXMgaWRsIHR5cGUK
</data>
<flag name="review"
          id="91887"
          type_id="1"
          status="+"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>