<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] Store preloaded media in webkit's cache"
   href="https://bugs.webkit.org/show_bug.cgi?id=119477">bug 119477</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>clopez&#64;igalia.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] Store preloaded media in webkit's cache"
   href="https://bugs.webkit.org/show_bug.cgi?id=119477#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] Store preloaded media in webkit's cache"
   href="https://bugs.webkit.org/show_bug.cgi?id=119477">bug 119477</a>
              from <span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=119477#c5">comment #5</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=119477#c4">comment #4</a>)
&gt; &gt; It can be used between sessions if webkit gives an appropriate name to the
&gt; &gt; files IIRC. But yes, it should probably go into g_get_tmp_dir(). Main
&gt; &gt; problem with that is that some people put /tmp on a tmpfs... so if you want
&gt; &gt; to watch a long enough movie, your memory runs full.
&gt; 
&gt; /tmp on tmpfs has been default in Fedora for several years now... I was
&gt; amazed quite recently to learn that other distros are still not doing this.
&gt; Anyway, the videos would have to go in /var/tmp since they are big. But
&gt; /var/tmp is not cleaned automatically, so there needs to be some measure to
&gt; clean up leaked videos in the event of a web process crash.</span >

I suggest removing the file just after opening it for write.

That way you can continue to use the file for reading or writing to it, by passing the file descriptor id.

The kernel will automatically remove the file once the descriptor id is closed or the process holding the file descriptor id dies (crashes or exits)

So you not longer have to take care of cleaning the files. The file will be automatically cleaned when you not longer use it.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>