<?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>164469</bug_id>
          
          <creation_ts>2016-11-06 19:38:14 -0800</creation_ts>
          <short_desc>Web Automation: don&apos;t disable localStorage for ephemeral sessions that are being controlled by automation</short_desc>
          <delta_ts>2017-05-18 11:52:42 -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>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>bburg</cc>
    
    <cc>beidson</cc>
    
    <cc>darin</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1248676</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-11-06 19:38:14 -0800</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248683</commentid>
    <comment_count>1</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-11-06 20:49:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/28137091&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248759</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-11-07 09:15:55 -0800</bug_when>
    <thetext>Ephemeral sessions should *not* use the storage backend that actually stores to disk.

So this bug is, by necessity, more than just &quot;don&apos;t disable localStorage for ...&quot;

We&apos;ll need a mode for localStorage to use an in-memory backing store.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248773</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-11-07 09:52:31 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Ephemeral sessions should *not* use the storage backend that actually stores
&gt; to disk.
&gt; 
&gt; So this bug is, by necessity, more than just &quot;don&apos;t disable localStorage for
&gt; ...&quot;
&gt; 
&gt; We&apos;ll need a mode for localStorage to use an in-memory backing store.

Does such a backing store already exist?

It seems sketchy to me that the file-based backend is hooked up to ephemeral sessions right now, and we rely on this check to prevent code from actually using it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248776</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-11-07 10:11:09 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Ephemeral sessions should *not* use the storage backend that actually stores
&gt; &gt; to disk.
&gt; &gt; 
&gt; &gt; So this bug is, by necessity, more than just &quot;don&apos;t disable localStorage for
&gt; &gt; ...&quot;
&gt; &gt; 
&gt; &gt; We&apos;ll need a mode for localStorage to use an in-memory backing store.
&gt; 
&gt; Does such a backing store already exist?

Yes - sessionStorage uses a per-WebView, in-memory backing store.

And that&apos;s exactly what we&apos;ll want to use for localStorage in a WebView whose storage session is ephemeral.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310173</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-05-18 11:52:42 -0700</bug_when>
    <thetext>This bug is no longer needed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>