<?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>229811</bug_id>
          
          <creation_ts>2021-09-02 09:30:03 -0700</creation_ts>
          <short_desc>Implement Storage API</short_desc>
          <delta_ts>2023-05-10 14:54:01 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>229925</dependson>
    
    <dependson>229965</dependson>
    
    <dependson>230053</dependson>
    
    <dependson>230059</dependson>
    
    <dependson>230675</dependson>
    
    <dependson>248918</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sihui Liu">sihui_liu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dvpdiner2</cc>
    
    <cc>nbrustein</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1789737</commentid>
    <comment_count>0</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2021-09-02 09:30:03 -0700</bug_when>
    <thetext>Spec: https://storage.spec.whatwg.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789738</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-02 09:30:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/82678873&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908979</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-10-28 05:00:44 -0700</bug_when>
    <thetext>AFAICT, the only thing left to do here is https://github.com/WebKit/WebKit/blob/a121340322ef72e3e303af58db1c88cb23bf397d/Source/WebCore/Modules/storage/StorageManager.idl#L36 :

// FIXME: add Promise&lt;StorageEstimate&gt; estimate();

That said, we don&apos;t appear to have any open bug for that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942540</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Brustein">nbrustein</who>
    <bug_when>2023-03-20 07:27:16 -0700</bug_when>
    <thetext>I&apos;m not seeing StorageManager.persist() and persisted() work in the way I expect.

Here is what I&apos;m seeing in Safari:

 * storage.persist() will resolve to true
 * In the same session, storage.persisted() will resolve to true
 * After refreshing the page storage.persisted() will resolve to false

I would expect that if storage.persisted() resolved to true in one session, it would still be true in a subsequent session. That&apos;s what I&apos;m seeing in Chrome and FF.

Am I misunderstanding the behavior here, or is this unexpected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954527</commentid>
    <comment_count>4</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2023-05-10 14:54:01 -0700</bug_when>
    <thetext>(In reply to Nate Brustein from comment #3)
&gt; I&apos;m not seeing StorageManager.persist() and persisted() work in the way I
&gt; expect.
&gt; 
&gt; Here is what I&apos;m seeing in Safari:
&gt; 
&gt;  * storage.persist() will resolve to true
&gt;  * In the same session, storage.persisted() will resolve to true
&gt;  * After refreshing the page storage.persisted() will resolve to false
&gt; 
&gt; I would expect that if storage.persisted() resolved to true in one session,
&gt; it would still be true in a subsequent session. That&apos;s what I&apos;m seeing in
&gt; Chrome and FF.
&gt; 
&gt; Am I misunderstanding the behavior here, or is this unexpected?

Hi, the persisted flag was not persisted (as WebKit didn&apos;t evict data on storage pressure), and this particular issue is fixed at https://bugs.webkit.org/show_bug.cgi?id=256483.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>