<?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>158391</bug_id>
          
          <creation_ts>2016-06-04 20:44:56 -0700</creation_ts>
          <short_desc>Do everything necessary to make IDBConnectionToServer::putOrAdd pass it&apos;s key by rvalue</short_desc>
          <delta_ts>2016-06-06 19:49:13 -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 Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>149117</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1199336</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-04 20:44:56 -0700</bug_when>
    <thetext>Do everything necessary to make IDBConnectionToServer::putOrAdd pass it&apos;s key by rvalue

This is a spinoff from https://bugs.webkit.org/show_bug.cgi?id=158124

It seems simple to do this, but it opens a can of worms making templated objects and lambdas handle it.

But we should still do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199851</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-06 19:49:13 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Do everything necessary to make IDBConnectionToServer::putOrAdd pass it&apos;s
&gt; key by rvalue
&gt; 
&gt; This is a spinoff from https://bugs.webkit.org/show_bug.cgi?id=158124
&gt; 
&gt; It seems simple to do this, but it opens a can of worms making templated
&gt; objects and lambdas handle it.
&gt; 
&gt; But we should still do it.

Actually... this is unlikely to be possible: The can of worms that opens is once that IDBKeyData rvalue hits CrossThreadCopier/CrossThreadTask.

But when an object hits those, we *have* to make an isolatedCopy.

So whether we WTFMove the IDBKeyData&amp;&amp; all the way along the chain, or just pass it by const IDBKeyData&amp; all the way along the chain, we get no benefit - We have to make an isolatedCopy in the end.

That said, while exploring this I came up with some great enhancements to CrossThreadTask.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>