<?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>90351</bug_id>
          
          <creation_ts>2012-07-01 14:22:39 -0700</creation_ts>
          <short_desc>IndexedDB custom bindings missing String type</short_desc>
          <delta_ts>2012-07-10 21:45:23 -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>JavaScriptCore</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="George Staikos">staikos</reporter>
          <assigned_to name="George Staikos">staikos</assigned_to>
          <cc>charles.wei</cc>
    
    <cc>jsbell</cc>
    
    <cc>levin</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yong.li.webkit</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>661164</commentid>
    <comment_count>0</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-01 14:22:39 -0700</bug_when>
    <thetext>JSIDBAnyCustom is missing support for String in the switch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661165</commentid>
    <comment_count>1</comment_count>
      <attachid>150338</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-01 14:24:16 -0700</bug_when>
    <thetext>Created attachment 150338
Patch to implement String</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661223</commentid>
    <comment_count>2</comment_count>
      <attachid>150338</attachid>
    <who name="Charles Wei">charles.wei</who>
    <bug_when>2012-07-01 19:07:57 -0700</bug_when>
    <thetext>Comment on attachment 150338
Patch to implement String

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661227</commentid>
    <comment_count>3</comment_count>
      <attachid>150338</attachid>
    <who name="Charles Wei">charles.wei</who>
    <bug_when>2012-07-01 19:14:13 -0700</bug_when>
    <thetext>Comment on attachment 150338
Patch to implement String

commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661228</commentid>
    <comment_count>4</comment_count>
      <attachid>150338</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-07-01 19:14:52 -0700</bug_when>
    <thetext>Comment on attachment 150338
Patch to implement String

Rejecting attachment 150338 from review queue.

charles.wei@torchmobile.com.cn does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663832</commentid>
    <comment_count>5</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-05 18:59:12 -0700</bug_when>
    <thetext>Adding some indexeddb gurus for thoughts on this two-line patch :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664420</commentid>
    <comment_count>6</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-07 14:51:21 -0700</bug_when>
    <thetext>Can anyone review this?  It&apos;s a two line patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664426</commentid>
    <comment_count>7</comment_count>
      <attachid>150338</attachid>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-07-07 15:28:52 -0700</bug_when>
    <thetext>Comment on attachment 150338
Patch to implement String

Doesn&apos;t this need a test? (Or is it untestable at present?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664427</commentid>
    <comment_count>8</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-07 15:48:11 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 150338 [details])
&gt; Doesn&apos;t this need a test? (Or is it untestable at present?)

Not sure.  Maybe Charles can comment.  I&apos;d hope the tests already are present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664428</commentid>
    <comment_count>9</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-07-07 15:49:36 -0700</bug_when>
    <thetext>Is the stringToUstring call necessary? The JSIDBKeyCustom impl doesn&apos;t have it. 

This will be covered by existing IDB key path tests when enabled for a port. IDBAny::StringType was a recent addition and I failed to account for the JSC version when I added it.

Looks good from an IDB perspective.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664440</commentid>
    <comment_count>10</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-07 19:11:19 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Is the stringToUstring call necessary? The JSIDBKeyCustom impl doesn&apos;t have it. 
&gt; 
&gt; This will be covered by existing IDB key path tests when enabled for a port. IDBAny::StringType was a recent addition and I failed to account for the JSC version when I added it.
&gt; 
&gt; Looks good from an IDB perspective.

Seems to be the case.  Updating the patch now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664441</commentid>
    <comment_count>11</comment_count>
      <attachid>151152</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-07 19:12:03 -0700</bug_when>
    <thetext>Created attachment 151152
Patch to implement String</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664480</commentid>
    <comment_count>12</comment_count>
      <attachid>151152</attachid>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-07-08 05:26:18 -0700</bug_when>
    <thetext>Comment on attachment 151152
Patch to implement String

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

rs=me, please modify the ChangeLog before landing:

&gt; Source/WebCore/ChangeLog:7
&gt; +

Joshuas explanation should be added to the ChangeLog. It&apos;s missing the &quot;why&quot; answers, as discussed recently on webkit-dev.
Just include a line saying that this is covered by existing tests for ports that use JSC and have IndexDB available - at least that&apos;s how I understand it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>666254</commentid>
    <comment_count>13</comment_count>
      <attachid>151574</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-07-10 18:55:33 -0700</bug_when>
    <thetext>Created attachment 151574
Patch to implement String</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>666329</commentid>
    <comment_count>14</comment_count>
      <attachid>151574</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-07-10 21:45:17 -0700</bug_when>
    <thetext>Comment on attachment 151574
Patch to implement String

Clearing flags on attachment: 151574

Committed r122295: &lt;http://trac.webkit.org/changeset/122295&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>666330</commentid>
    <comment_count>15</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-07-10 21:45:23 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>150338</attachid>
            <date>2012-07-01 14:24:16 -0700</date>
            <delta_ts>2012-07-07 19:12:03 -0700</delta_ts>
            <desc>Patch to implement String</desc>
            <filename>90351.patch</filename>
            <type>text/plain</type>
            <size>1247</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT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NjQsNiArNjQsOCBAQCBKU1ZhbHVlIHRvSlMoRXhlY1N0YXRlKiBl
eGVjLCBKU0RPTUdsb2JhCiAgICAgICAgIHJldHVybiBqc1VuZGVmaW5lZCgpOwogICAgIGNhc2Ug
SURCQW55OjpOdWxsVHlwZToKICAgICAgICAgcmV0dXJuIGpzTnVsbCgpOworICAgIGNhc2UgSURC
QW55OjpTdHJpbmdUeXBlOgorICAgICAgICByZXR1cm4ganNTdHJpbmcoZXhlYywgc3RyaW5nVG9V
U3RyaW5nKGlkYkFueS0+c3RyaW5nKCkpKTsKICAgICBjYXNlIElEQkFueTo6RE9NU3RyaW5nTGlz
dFR5cGU6CiAgICAgICAgIHJldHVybiB0b0pTKGV4ZWMsIGdsb2JhbE9iamVjdCwgaWRiQW55LT5k
b21TdHJpbmdMaXN0KCkpOwogICAgIGNhc2UgSURCQW55OjpJREJDdXJzb3JUeXBlOgo=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>151152</attachid>
            <date>2012-07-07 19:12:03 -0700</date>
            <delta_ts>2012-07-10 18:55:33 -0700</delta_ts>
            <desc>Patch to implement String</desc>
            <filename>90351.patch</filename>
            <type>text/plain</type>
            <size>1230</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEyMTYzNSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEyLTA3LTAxICBHZW9yZ2Ug
U3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAgICAgICBBZGQgbWlzc2luZyBia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k6OkRPTVN0cmluZ0xpc3RUeXBlOgogICAgICAgICBy
ZXR1cm4gdG9KUyhleGVjLCBnbG9iYWxPYmplY3QsIGlkYkFueS0+ZG9tU3RyaW5nTGlzdCgpKTsK
ICAgICBjYXNlIElEQkFueTo6SURCQ3Vyc29yVHlwZToK
</data>
<flag name="review"
          id="159542"
          type_id="1"
          status="+"
          setter="zimmermann"
    />
    <flag name="commit-queue"
          id="159543"
          type_id="3"
          status="-"
          setter="zimmermann"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>151574</attachid>
            <date>2012-07-10 18:55:33 -0700</date>
            <delta_ts>2012-07-10 21:45:17 -0700</delta_ts>
            <desc>Patch to implement String</desc>
            <filename>90351.patch</filename>
            <type>text/plain</type>
            <size>1301</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEyMTYzNSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDEyLTA3LTAxICBHZW9yZ2Ug
U3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAgICAgICBBZGQgbWlzc2luZyBiaW5k
aW5nIHR5cGUgU3RyaW5nIGZvciBJbmRleGVkREIuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD05MDM1MQorCisgICAgICAgIFJldmlld2VkIGJ5IE5pa29s
YXMgWmltbWVybWFubi4KKworICAgICAgICBObyBuZXcgdGVzdHMgYmVjYXVzZSBpdCdzIGFscmVh
ZHkgY292ZXJ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UeXBlOgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>