If I use mozIndexedDB, I manage to write into a file. If I use indexedDB, I can't.
Created attachment 814716 [details] testcase.js Try to run this code in the Browser Console. It works if you s/indexedDB/mozIndexedDB.
What doesn't work, exactly? Do you get an error message in the console?
In the write function |let filerequest = lockedFile.write(data)| is null (if I use indexedDB, instead if I use mozIndexedDB it works).
I tried the attached testcase in official aurora build on mac, it seems to work: 09:41:32.246 [object Object] 09:41:32.310 "CREATED" 09:41:32.314 "OPENED" 09:41:32.314 "ABOUT TO WRITE LENGTH: 5" 09:41:32.319 "WRITTEN" 09:41:32.321 "FLUSHED" 09:41:32.321 [object Uint8Array] 09:41:32.322 "READ_LENGTH: 2" 09:41:32.322 "READ: rc"
I can reproduce on Linux with Nightly.
You need to log in before you can comment on or make changes to this bug.