ebidel / filer.js

A wrapper library for the HTML5 Filesystem API what reuses UNIX commands (cp, mv, ls) for its API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`FileError` raising error in Safari

raycohen opened this issue · comments

Should probably add a check for window.FileError before using... want a patch for this?

Sure. Thanks!

I looked into the File API specs to see what it has to say about FileError.

What I found is that the previous working draft defines it, but the current working draft and the latest editors draft do not:

Previous Working Draft - October 2010
http://www.w3.org/TR/2010/WD-FileAPI-20101026/
Defines FileError

Current Working Draft - October 2011
http://www.w3.org/TR/2011/WD-FileAPI-20111020/
Does not define FileError

Latest Editors Draft - February 2012
http://dev.w3.org/2006/webapi/FileAPI/
Does not define FileError

FWIW I got a lot of deprecation notices about using Qunit's equals instead of equal. I ran tests against Qunit master.

Tests still fail in safari, obviously, but at least there are no errors until you call methods on filer now.

You're right. Looks like the spec was updated recently.

I'll ask Eric U (filesystem spec author) about this and see what
we're going to do about crbug.com/86014.

I've updated qunit and removed the deprecated equals. Thanks for the patch!

On Sun, Mar 11, 2012 at 1:28 PM, raycohen <
reply@reply.github.com

wrote:

FWIW I got a lot of deprecation notices about using Qunit's equals
instead of equal. I ran tests against Qunit master.

Tests still fail in safari, obviously, but at least there are no errors
until you call methods on filer now.


Reply to this email directly or view it on GitHub:
#10 (comment)

Sweet!