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

36 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 8720cc0e92 Bug 699731 - Remove PR_INT64_MAX / PR_UINT64_MAX from non-nsprpub source; r=ted 2012-01-11 09:23:07 +01:00
Michael Kohler ab65c25a4a Bug 711818 - MOZILLA_GUARD_OBJECT_NOTIFIER* should use a MOZ_ prefix to follow MFBT style 2012-01-10 00:29:30 -05:00
Kyle Huey 9f241d7005 Bug 715185: Remove using namespace declaration from nsDOMFile.h. r=mounir 2012-01-05 08:44:46 -05:00
Jan Varga a18c925950 Bug 711727 - Followup cleanup for files in IndexedDB. r=sicking/bent 2011-12-20 12:23:27 +01:00
Jan Varga a1572b7d02 Bug 661877 - Enable storing files in IndexedDB. r=bent 2011-12-16 08:34:24 +01:00
Kyle Huey 0c4676576c Fix Bug 700512. r=sicking,bsmedberg 2011-11-18 10:19:44 -05:00
Ms2ger 4993ee18ae Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey 2011-11-16 08:50:19 +01:00
Ehsan Akhgari 1deb9f1504 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu ac54b41b01 Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Kyle Huey d189c2b140 Bug 664254: Make DOM File objects implement nsIMutable so they can be immutabilized for sharing across threads. r=sicking 2011-07-19 09:27:46 -07:00
Jonas Sicking 6d3655d986 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
Masatoshi Kimura d88efe21be Bug 661583: Hold onto the cache token if our response blob is backed by a cache file. r=sicking 2011-06-30 14:41:39 -07:00
Matt Brubeck 7e0c972826 Back out 9fc0e6867256, 6947bbce9672, fb91a23bd158, a5870dd2ad7c, c3d3292fbd1e, 42f2aca1fde9 to fix Android failures on a CLOSED TREE 2011-07-01 11:20:52 -07:00
Masatoshi Kimura c59c4be82b Bug 661583: Hold onto the cache token if our response blob is backed by a cache file. r=sicking 2011-06-30 14:41:39 -07:00
Kyle Huey 2f850e3936 Bug 661876: Remove obsolete nsIDOMFile methods/properties. r=sicking 2011-06-05 11:54:50 -07:00
Kyle Huey c4c3837042 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 e32ca11baa Backed out changeset b8404a1d3153 2011-05-20 17:00:13 -07:00
Kyle Huey 00f42f97a9 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 b5f1174b28 Bug 607114: Expose a File constructor to chrome script. r=sicking
--HG--
rename : content/canvas/test/image_yellow.png => content/base/test/chrome/fileconstructor_file.png
2011-04-13 19:41:34 -07:00
Jonas Sicking 1f37a19190 Bug 649672: Make File.slice arguments match Array.slice and prefix File.slice. r=khuey 2011-04-13 14:34:36 -07:00
Kyle Huey ad22b0f8cc Bug 637683: Ensure that the underlying buffer does not go away before any streams handed out by nsDOMMemoryFile. r=sicking a=blocker 2011-03-01 18:35:53 -05:00
Jonas Sicking 29c6b71631 Bug 575946: Implement File.slice. r=khuey sr=biesi a=beltzner 2010-10-13 16:25:33 -07:00
Kyle Huey 023ce90da6 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
Kyle Huey 060be025f4 Bug 565843: Implement <canvas>.mozGetAsFile(name, type). r+a=sicking
--HG--
extra : rebase_source : 1a7a635dc5a7da047967d8feb57d637e83027618
2010-09-17 21:14:59 -04:00
Kyle Huey 2ba0a36460 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 ff605f156a Backed out changeset af1365b24066 2010-09-05 11:32:57 -04:00
Kyle Huey 55184b48c6 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 9828919387 Bug 543870: Implement File.url. r=bz sr=jst 2010-03-02 23:51:09 -08:00
Matin Movassate a852b7761f Bug 507805: Support FileRequest API for reading Files. r/sr=sicking 2009-10-07 01:30:26 -07:00
Matin Movassate 9648a313b0 Fixing bug 491201. Adding ability for XMLHttpRequest.send() to accept a File object. r+sr=jonas@sicking.cc, r=cbiesinger@gmail.com 2009-09-08 16:29:41 -07:00
Johnny Stenback 7f2a806ff7 Backed out changeset 7d5e1bcb4729 due to mochitest errors. 2009-08-31 14:57:45 -07:00
Matin Movassate 93d64a0d6d Resolving bug 491201. Added ability for XMLHttpRequest.send() to accept an nsIDOMFile. r+sr=jonas@sicking.cc, r=cbiesinger@gmail.com 2009-08-31 14:07:16 -07:00
Peter Van der Beken a9ba7dc3aa Fix for bug 460512 (Avoid AddRef/Release in scriptable helper methods for NodeList). r/sr=bz. 2008-10-22 16:31:14 +02:00
dcamp@mozilla.com d554b1cee2 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
roc+@cs.cmu.edu 0054412272 Bug 374866. Reftests for text-transform. r=dbaron 2007-03-22 16:01:14 -07:00
dcamp%mozilla.com 70e3c46599 Add an API to access <input type="file"> data. b=371432, r=smontagu (for charset stuff), r+sr=jonas 2007-07-25 04:29:49 +00:00