Closed Bug 791816 Opened 10 years ago Closed 10 years ago

[DeviceStorage] File overwrite on b2g device


(Firefox OS Graveyard :: General, defect, P3)

Gonk (Firefox OS)


(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)

blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed


(Reporter: onecyrenus, Assigned: dougt)



(1 file)

Got an "Unknown" error while trying to write to a file on the sdcard which was already present. 

Possibly we would want a separate error case for this scenario.

I would venture that we should check if a file exists prior to attempting to write, and if it does exist we through "already exists" error or something like that.

Or maybe would be better to write, catch the error, and then verify if the file already exists.  Probably easier on the hard drive.
Assignee: nobody → doug.turner
blocking-basecamp: --- → ?
Doug, not sure how important this is exactly, please re-nom if its not critical.
blocking-basecamp: ? → +
Attached patch patch v.1Splinter Review
Attachment #670149 - Flags: review?(jonas)
One of the patches in this push caused Windows mochitest-2 failures. Backed out.

2054 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_dotdot.html | Error must be SecurityError
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.