- From: Eric U <ericu@google.com>
- Date: Mon, 5 Aug 2013 09:44:13 -0700
- To: David Bruant <bruant.d@gmail.com>
- Cc: Web Applications Working Group WG <public-webapps@w3.org>
- Message-ID: <CAHvSExcRsGU4CweHXo50ifwKoy7+gu+fA3rjGS=nhfeMgQWpFA@mail.gmail.com>
You've got bigger problems than device bugs here. Chromium is the only
WebKit [now Blink] port to implement FileSystem or FileWriter, as far as I
know. If Tizen's done it, that's a surprise to me.
My guess is that you're getting NotReadableError because the
implementation's not complete, and can't read /anything/.
On Fri, Aug 2, 2013 at 7:14 AM, David Bruant <bruant.d@gmail.com> wrote:
> Hi,
>
> For context, I'm currently working on a Tizen (based on a somewhat modern
> Webkit) web app and trying to store a file (on an actual Tizen test
> device). As far as documentation, Tizen linked to specs, so here I am :-)
> I managed to get a FileSystem instance, but fail to get a FileEntry (code:
> 4) after fs.getFile(validString, {create: true}) (file isn't supposed to
> exist, but that should irrelevant according to the spec)
>
> First, what is error 4 for fs.getFile? Remote devtools suggests that error
> codes are the same for fs.getFile than any other File error, but this isn't
> very clear from the file-writer spec.
> Second, the .getFile function lists a bunch of error cases, but nowhere is
> written which error and code should be provided. The wording is always
> "getFile *MUST* fail" which doesn't seem really helpful either for other
> implementors to implement nor for authors to understand whats' going on.
> Did I miss something on this section?
>
> code:4 aka NotReadableError in FileError can happen "due to permission
> problems that occur after a snapshot state has been established". I guess
> I'm looking at a Webkit bug? (I bet more on a device bug...) The spec
> doesn't help to say.
>
> Any help in understanding how code:4 can happen on fs.getFile would be
> appreciated especially.
>
> Thanks,
>
> David
>
Received on Monday, 5 August 2013 16:44:56 UTC