<?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>74932</bug_id>
          
          <creation_ts>2011-12-20 07:43:12 -0800</creation_ts>
          <short_desc>[Qt][WK2] Add ArgumentCoder functions for size_t.</short_desc>
          <delta_ts>2011-12-21 08:37:23 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          <blocked>74931</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Zeno Albisser">zeno</reporter>
          <assigned_to name="Zeno Albisser">zeno</assigned_to>
          <cc>andersca</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>jesus</cc>
    
    <cc>kenneth</cc>
    
    <cc>sam</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zoltan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>524614</commentid>
    <comment_count>0</comment_count>
    <who name="Zeno Albisser">zeno</who>
    <bug_when>2011-12-20 07:43:12 -0800</bug_when>
    <thetext>This allows the WebProcess/UIProcess to exchange data of the size of a native pointer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524640</commentid>
    <comment_count>1</comment_count>
      <attachid>120035</attachid>
    <who name="Zeno Albisser">zeno</who>
    <bug_when>2011-12-20 09:05:00 -0800</bug_when>
    <thetext>Created attachment 120035
patch for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524721</commentid>
    <comment_count>2</comment_count>
      <attachid>120035</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2011-12-20 11:46:03 -0800</bug_when>
    <thetext>Comment on attachment 120035
patch for review.

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

&gt; Source/WebKit2/Shared/qt/ArgumentCodersQt.cpp:100
&gt; +#if WTF_USE_JSVALUE64

That doesn&apos;t sound like the right macro to use. Technically it refers to an implementation detail of JSC.

I also think uintptr_t is a better type to use than size_t, and with a bit of template specialization you should be able to figure out the size of uintptr_t, instead of using the macro.

I see what you&apos;re trying to use this for, but I don&apos;t think it&apos;s the right thing to do. I&apos;ll comment on the other bug about the use-case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524764</commentid>
    <comment_count>3</comment_count>
    <who name="Zeno Albisser">zeno</who>
    <bug_when>2011-12-20 12:38:37 -0800</bug_when>
    <thetext>I was in doubt about that myself. But it seemed to be very straightforward, and i was - honestly - curious about the feedback. ;-)
Another option would be to use a QUuid. Do you think that would be a better approach?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>525272</commentid>
    <comment_count>4</comment_count>
    <who name="Zeno Albisser">zeno</who>
    <bug_when>2011-12-21 08:37:23 -0800</bug_when>
    <thetext>Assuming that we are not going with the pointer magic we will not need this functionality.
Therefore i am closing this bug again.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>120035</attachid>
            <date>2011-12-20 09:05:00 -0800</date>
            <delta_ts>2011-12-20 11:46:03 -0800</delta_ts>
            <desc>patch for review.</desc>
            <filename>74932_20111220-180216.patch</filename>
            <type>text/plain</type>
            <size>2271</size>
            <attacher name="Zeno Albisser">zeno</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaX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2l0IGEvU291cmNlL1dlYktpdDIvU2hhcmVkL3F0L0Fy
Z3VtZW50Q29kZXJzUXQuaCBiL1NvdXJjZS9XZWJLaXQyL1NoYXJlZC9xdC9Bcmd1bWVudENvZGVy
c1F0LmgKaW5kZXggNGQxNWNjMC4uMmFhNmM0OSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIv
U2hhcmVkL3F0L0FyZ3VtZW50Q29kZXJzUXQuaAorKysgYi9Tb3VyY2UvV2ViS2l0Mi9TaGFyZWQv
cXQvQXJndW1lbnRDb2RlcnNRdC5oCkBAIC0zNCw2ICszNCwxNCBAQCB0ZW1wbGF0ZTw+IHN0cnVj
dCBBcmd1bWVudENvZGVyPFdlYkNvcmU6OkRyYWdEYXRhPiB7CiAgICAgc3RhdGljIGJvb2wgZGVj
b2RlKEFyZ3VtZW50RGVjb2RlciosIFdlYkNvcmU6OkRyYWdEYXRhJik7CiB9OwogCit2b2lkIGVu
Y29kZShBcmd1bWVudEVuY29kZXIqLCBjb25zdCBzaXplX3QmKTsKK2Jvb2wgZGVjb2RlKEFyZ3Vt
ZW50RGVjb2RlciosIHNpemVfdCYpOworCit0ZW1wbGF0ZTw+IHN0cnVjdCBBcmd1bWVudENvZGVy
PHNpemVfdD4geworICAgIHN0YXRpYyB2b2lkIGVuY29kZShBcmd1bWVudEVuY29kZXIqLCBjb25z
dCBzaXplX3QmKTsKKyAgICBzdGF0aWMgYm9vbCBkZWNvZGUoQXJndW1lbnREZWNvZGVyKiwgc2l6
ZV90Jik7Cit9OworCiB9CiAKICNlbmRpZiAvLyBBcmd1bWVudENvZGVyc1F0X2gK
</data>
<flag name="review"
          id="120193"
          type_id="1"
          status="-"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>