Граф коммитов

32 Коммитов

Автор SHA1 Сообщение Дата
Scott Johnson 93dea27aff Bug 838668: Rev IID of nsIDOMFile and revert incorrectly revved IID for nsIDOMBlob. [r=bsmedberg] 2013-02-06 14:27:20 -06:00
Doug Turner 4fd0f3eb19 Bug 793955, 802867 - DeviceStorage files returned by DeviceStorage.get() don't always have lastModifiedDate. r=bent. a=blocking-basecamp 2012-10-18 11:29:32 -07:00
Ms2ger c5d1cae66d Bug 744907 - Remove BlobBuilder; r=sicking 2012-09-20 09:55:36 +02:00
Masatoshi Kimura 2ba921a9a1 Bug 789691 - Migrate BlobPropertyBag to WebIDL binding dictionary, r=bzbarsky 2012-09-10 09:57:15 -04:00
Kyle Huey 1a61e70130 Bug 757284: Restore Blob.mozSlice, with a deprecation warning. r=sicking 2012-05-25 11:44:38 -07:00
Doug Turner 13d425d6fb Bug 673586 - Implement lastModifiedDate property for the File interface. r=mounir 2012-05-21 15:11:56 -07:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Masatoshi Kimura e89ffe7061 Bug 736804 - Bump iid of MozBlobBuilder. r=smaug 2012-03-18 15:49:45 +01:00
Masatoshi Kimura cdb0659415 Bug 721569 - Implement Blob constructor. r=sicking 2012-03-12 21:44:56 -07:00
Matthew Schranz 5e505cd07f Bug 725289 - Removed moz prefix in Blob.mozSlice. r=sicking
--HG--
rename : dom/workers/test/fileReadMozSlice_worker.js => dom/workers/test/fileReadSlice_worker.js
rename : dom/workers/test/fileMozSlice_worker.js => dom/workers/test/fileSlice_worker.js
rename : dom/workers/test/test_fileReadMozSlice.xul => dom/workers/test/test_fileReadSlice.xul
rename : dom/workers/test/test_fileMozSlice.xul => dom/workers/test/test_fileSlice.xul
2012-02-16 11:22:25 +01:00
Masatoshi Kimura b71556db7e Bug 716570 - Rename blob URI scheme from "moz-filedata" to "blob" per spec. r=sicking
--HG--
rename : content/base/src/nsFileDataProtocolHandler.cpp => content/base/src/nsBlobProtocolHandler.cpp
rename : content/base/src/nsFileDataProtocolHandler.h => content/base/src/nsBlobProtocolHandler.h
2012-01-12 11:36:03 +01:00
Jan Varga 78980f36af Bug 661877 - Enable storing files in IndexedDB. r=bent 2011-12-16 08:34:24 +01:00
Jonas Sicking 41aa9e9689 Bug 669437: Implement BlobBuilder.getFile. r=khuey 2011-07-11 19:42:02 -07:00
Jonas Sicking 904c1e5607 Bug 669433 Part 3: Make first argument to Blob.slice optional and defaulting to 0. r=khuey 2011-07-11 19:41:55 -07:00
Jonas Sicking cd761b1960 Bug 669433 Part 1: Clean up File implementations by creating a storage-agnostic base class, nsDOMFileBase. r=khuey 2011-07-11 19:41:29 -07:00
Kyle Huey 3f039eba79 Bug 661876: Remove obsolete nsIDOMFile methods/properties. r=sicking 2011-06-05 11:54:50 -07:00
Kyle Huey 2a0adf4718 Bug 648997: Prefix BlobBuilder harder. rs=sicking 2011-05-24 14:01:50 -07:00
Kyle Huey 27d8e6cbb0 Bug 648997: Implement BlobBuilder spec as MozBlobBuilder. r=sicking.
Note that there is one key difference between this implementation and the spec.  In this patch MozBlobBuilder.getBlob("content/type"); returns a Blob and clears the MozBlobBuilder.  In the spec the BlobBuilder is not cleared.  Thus,

let bb = new MozBlobBuilder();
MozBlobBuilder.append("foo");
let blob1 = MozBlobBuilder.getBlob("content/type");
// blob1 contains "foo"
MozBlobBuilder.append("bar");
let blob2 = MozBlobBuilder.getBlob("content/type");
// blob2 contains "bar", the spec says it should contain "foobar".

IMO, the spec behavior optimizes for the wrong case.  BlobBuilder will probably be used mostly as a one-shot API.  Additionally, the spec requires the BlobBuilder to hang on to potentially large amounts of memory between the getBlob() call and when the BlobBuilder is GCd.

These issues have been raised on the listserv.
2011-05-20 10:18:45 -07:00
Kyle Huey 18e6d04d41 Backed out changeset b8404a1d3153 2011-05-20 17:00:13 -07:00
Kyle Huey c8f3d0d068 Bug 648997: Implement BlobBuilder spec as mozBlobBuilder. r=sicking.
Note that there is one key difference between this implementation and the spec.  In this patch mozBlobBuilder.getBlob("content/type"); returns a Blob and clears the mozBlobBuilder.  In the spec the BlobBuilder is not cleared.  Thus,

let bb = new mozBlobBuilder();
mozBlobBuilder.append("foo");
let blob1 = mozBlobBuilder.getBlob("content/type");
// blob1 contains "foo"
mozBlobBuilder.append("bar");
let blob2 = mozBlobBuilder.getBlob("content/type");
// blob2 contains "bar", the spec says it should contain "foobar".

IMO, the spec behavior optimizes for the wrong case.  BlobBuilder will probably be used mostly as a one-shot API.  Additionally, the spec requires the BlobBuilder to hang on to potentially large amounts of memory between the getBlob() call and when the BlobBuilder is GCd.

These issues have been raised on the listserv.
2011-05-20 10:18:45 -07:00
Jonas Sicking 3815106388 Bug 649672: Make File.slice arguments match Array.slice and prefix File.slice. r=khuey 2011-04-13 14:34:36 -07:00
Jonas Sicking 1dee38609c Bug 575946: Implement File.slice. r=khuey sr=biesi a=beltzner 2010-10-13 16:25:33 -07:00
Kyle Huey 77bfef6cd5 Bug 594964: Fix moz-filedata principal handling so that files can be dragged and dropped. r=sicking a=blocker 2010-09-17 21:22:44 -04:00
Jonas Sicking 2bc97b9948 Bug 596385: Remove File.url since the spec now uses a different syntax. r=jst a=blocker 2010-09-17 16:08:03 -07:00
Kyle Huey 55beafe241 Bug 583863: Refactor <input> implementation to deal with files that aren't on the disk. r=sicking a=blocking-fennec
--HG--
extra : rebase_source : 2b3605042aea4e4c8273cdad5ec7f05af15959cc
2010-09-05 14:00:05 -04:00
Kyle Huey f9c0cf9c19 Backed out changeset af1365b24066 2010-09-05 11:32:57 -04:00
Kyle Huey 12d0992fbc Bug 583863: Refactor <input> implementation to deal with files that are not on the disk. r=sicking a=blocking-fennec 2010-09-05 09:09:04 -04:00
Jonas Sicking 6f0a0d424e Bug 543870: Implement File.url. r=bz sr=jst 2010-03-02 23:51:09 -08:00
Jan Gerber b0e081ef6b Bug 526996: Expose the full file path for nsIDOMFiles to extensions. r/sr=sicking 2010-02-02 16:53:32 -08:00
Jonas Sicking 27dfaf72f0 Bug 527370: More File API renames. Also adds tests for the FileReader.readyState property. r=jst 2009-11-16 18:01:40 -08:00
Matin Movassate 1ba0cf09e4 Bug 507805: Support FileRequest API for reading Files. r/sr=sicking 2009-10-07 01:30:26 -07:00
dcamp@mozilla.com 21b4c8ea53 Add an API to access <input type="file"> data. r=smontagu (for charset stuff), r+sr=jonas 2007-07-24 21:29:47 -07:00