Re: Default storage

2014-11-29 Thread Ben Kelly
For new quota clients like SW Cache, what storage should we now use?  Default?  
I was previously using persistent.

Thanks!

Ben

- Original Message -
From: Jan Varga jan.va...@gmail.com
To: dev-platform@lists.mozilla.org
Sent: Friday, November 28, 2014 6:04:51 PM
Subject: Default storage

Hi,

Just a heads up that default storage has landed on m-c, bug 1083927.
I'm posting to this list because there are some changes in the way how 
quota manager clients store data (mostly IndexedDB).

Old structure:
profile
   storage
 persistent
 temporary

New structure:
profile
   storage
 permanent
 temporary
 default

Some scripts (especially for B2G) put stuff into profiles directly, so 
they have to be adjusted a bit.
I expect that in most cases it should be enough to change:

profile/storage/persistent
to:
profile/storage/permanent

or

profile/storage/persistent/chrome
to:
profile/storage/permanent/chrome

For more details see the bug and sorry for any inconvenience.

Jan

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Default storage

2014-11-29 Thread Jonas Sicking
On Nov 29, 2014 3:54 PM, Ben Kelly bke...@mozilla.com wrote:

 For new quota clients like SW Cache, what storage should we now use?
Default?  I was previously using persistent.

Yes, you should almost always use default.

The only two exceptions are:
* if the API supports explicit syntax for choosing something other than
default. There are no standardized APIs that currently fall into this
category.
* chrome code should use persistent unless it explicitly asks for something
else.

/ Jonas
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Default storage

2014-11-28 Thread Jan Varga

Hi,

Just a heads up that default storage has landed on m-c, bug 1083927.
I'm posting to this list because there are some changes in the way how 
quota manager clients store data (mostly IndexedDB).


Old structure:
profile
  storage
persistent
temporary

New structure:
profile
  storage
permanent
temporary
default

Some scripts (especially for B2G) put stuff into profiles directly, so 
they have to be adjusted a bit.

I expect that in most cases it should be enough to change:

profile/storage/persistent
to:
profile/storage/permanent

or

profile/storage/persistent/chrome
to:
profile/storage/permanent/chrome

For more details see the bug and sorry for any inconvenience.

Jan

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform