<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8358</bug_id>
          
          <creation_ts>2009-11-23 23:09:49 +0000</creation_ts>
          <short_desc>[WA] Fix for the localStorage mutex problem - release for *any* API operation except localStorage itself</short_desc>
          <delta_ts>2009-11-25 23:54:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Storage (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Ennals">robert.ennals</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29684</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Ennals">robert.ennals</who>
    <bug_when>2009-11-23 23:09:49 +0000</bug_when>
    <thetext>This is a proposal I made earlier on the whatwg mailing list, and then presented at TPAC. I believe I said I would file a proper bug report for it.


How about this for a solution for the localStorage mutex problem:

&quot;the user agent MAY release the storage mutex on *any* API operation except localStorage itself&quot;

This guarantees that the common case of &quot;several storage operations in a row with nothing in-between&quot; works, but gives the implementors the freedom to release the storage mutex wherever else they find they need to.

I ran this by a few people at the W3C tpac (where I am now) and everyone I talked to seemed to think this would work.


-Rob</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29742</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-11-25 23:54:13 +0000</bug_when>
    <thetext>Implementors on the WHATWG list didn&apos;t seem happy with this unfortunately.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>