W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2015

Re: [whatwg] Storage Standard

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 4 May 2015 22:23:24 -0700
Message-ID: <CA+c2ei8cekv8=PZHgyrU+az_jZTPvW6WUuMobpWzqQhQRWGS3w@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>, Ali Alabbas <alia@microsoft.com>, Joshua Bell <jsbell@google.com>, Ben Kelly <bkelly@mozilla.com>, Adrian Bateman <adrianba@microsoft.com>
On Mon, May 4, 2015 at 9:54 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
>> More specifically, I'm proposing to remove the persistentPermission()
>> function in favor of using navigator.permissions.query({ name:
>> "persistent-storage" });
>
> Okay, I defer to e.g. these recent threads
>
>   https://github.com/w3c/push-api/issues/136
>   https://github.com/slightlyoff/BackgroundSync/issues/39
>
> where we decided to keep similar APIs.

Having both the separate permissions API as well as the APIs from the
two threads above is nuts. We should either reverse these two APIs
above, or nuke the permissions API. The fact that Google is pushing to
have both makes no sense at all to me.

Having a single consistent API makes more sense to me. A good reason
why is the recent thread about "default" vs. "prompt". Whatever we
decide that the color of the bikeshed should be, having a single API
ensures that the color is consistent.

/ Jonas
Received on Tuesday, 5 May 2015 05:24:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 5 May 2015 05:24:21 UTC