Andrea Marchesini
74bc0e9cfd
Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug
2017-10-02 13:53:12 +02:00
Andrea Marchesini
792189dd57
Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug
2017-08-06 20:47:00 +03:00
Andrea Marchesini
2daba7f880
Bug 1402888 - Remove nsIStreamTransportService::createInputStream startOffset and readLimit params, r=smaug
2017-09-26 07:21:27 +02:00
Andrew McCreight
84ee98de3c
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Masatoshi Kimura
26299618f5
Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
...
MozReview-Commit-ID: E88DZK5sfwx
2017-08-07 02:28:52 +09:00
Sebastian Hengst
80162c79f9
Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout
2017-08-11 17:46:42 +02:00
Masatoshi Kimura
a0bcec8f88
Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
...
MozReview-Commit-ID: E88DZK5sfwx
2017-08-07 02:28:52 +09:00
Bevis Tseng
59627df038
Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
2017-07-27 02:18:20 +08:00
Andrea Marchesini
bf12d01926
Bug 1377589 - FileReader should create a pipe if the stream is blocking, r=smaug
2017-07-14 15:31:23 +02:00
Nicholas Nethercote
fcd4f4fa21
Bug 1376638 - Minimize uses of prmem.h. r=glandium.
...
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)
This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.
2017-06-30 19:05:41 -07:00
Masatoshi Kimura
bbe33d305d
Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
...
MozReview-Commit-ID: E0w8BsP1Rof
2017-06-16 21:11:03 +09:00
Bill McCloskey
284c3f3132
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Eric Rahm
36a6b51f90
Bug 1370070 - Avoid unnecessary string creation. r=smaug
...
MozReview-Commit-ID: LLQQrCpK630
2017-06-09 15:56:35 -07:00
Andrea Marchesini
af44f51ea3
Bug 1360807 - FileReaderSync must work with sync inputStream - part 4 - Base64EncodeInputStream needs a sync inputStream, r=smaug
2017-05-09 11:04:49 +02:00
Bevis Tseng
4a7bba2f86
Bug 1362941 - Set DocGroup-EventTarget from nsIGlobalObject to have dispatched runnables labeled. r=baku
...
FileReader::mEventTarget has been used for runnable dispatching internally.
Set mEventTarget to the DocGroup-versioned EventTarget to support runnable labeling when dispatching.
2017-05-08 17:16:20 +08:00
Phil Ringnalda
fb249f6ccf
Backed out 4 changesets (bug 1360807) for a 30% failure rate in test_ipcBlob_fileReaderSync.html on ASan e10s
...
Backed out changeset b7790c232791 (bug 1360807)
Backed out changeset 50d6d6733209 (bug 1360807)
Backed out changeset 6e84dfab90bf (bug 1360807)
Backed out changeset f25d7a76008e (bug 1360807)
MozReview-Commit-ID: DTkQJz5ZYMD
2017-05-05 12:34:57 -07:00
Andrea Marchesini
8a47d949c8
Bug 1360807 - FileReaderSync must work with sync inputStream - part 4 - Base64EncodeInputStream needs a sync inputStream, r=smaug
2017-05-05 14:45:14 +02:00
Andrea Marchesini
4765f60f29
Bug 1361443 - FileReader should support ReadSegments() not returning the whole size, r=smaug
2017-05-04 14:45:34 +02:00
Carsten "Tomcat" Book
bc14e341d4
Backed out changeset 4370dbfde05c (bug 1361443)
2017-05-04 16:39:22 +02:00
Andrea Marchesini
91b93c209a
Bug 1361443 - FileReader should support ReadSegments() not returning the whole size, r=smaug
2017-05-04 14:45:34 +02:00
Andrea Marchesini
b46eb0b57b
Bug 1353629 - PBlob refactoring - part 8 - FileReader should use nsIAsyncInputStream if available, r=smaug
...
Currently FileReader API uses a nsITransport. This is not needed if the
inputStream is a nsIAsyncInputStream already, and IPCBlobInputStream is always
a nsIAsyncInputStream.
Note that, we must create a bufferedStream in order to use ReadSegments in case
the remote inputStream, received by IPCBlobInputStream, is a FileInputStream.
This was not needed with nsITransport.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
94107c0c25
Bug 1344466 - Fix error propagation in FileReader when reading from the inputStream, r=qdot
2017-03-07 08:44:54 +01:00
Andrea Marchesini
9bb3d5ba8d
Bug 1332602 - Propagate JS errors in FileReader, r=smaug
2017-01-24 12:12:15 +01:00
Andrea Marchesini
049e0eb7e8
Bug 1332602 - ArrayBufferObject::create should throw RangeError if the input is bigger than INT32_MAX, r=evilpie
2017-01-20 18:23:33 +01:00
Andrea Marchesini
f20633554c
Bug 1332592 - FileReader should dispatch onerror+onloadend when OOM occurs, r=smaug
2017-01-20 13:45:35 +01:00
Andrea Marchesini
c510de7377
Bug 1332587 - FileReader cannot allocate more than INT32_MAX for an ArrayBuffer, r=smaug
2017-01-20 12:33:18 +01:00
Andrea Marchesini
34627b8ffc
Bug 1331340 - FileReader should not continue when allocation fails, r=bkelly
2017-01-16 17:35:40 +01:00
Andrea Marchesini
0a5ade1332
Bug 1330273 - Add some security checks about the use of the string buffer in FileReader, r=bkelly
2017-01-12 17:45:52 +01:00
Andrea Marchesini
5bf4bde134
Bug 1294533 - FileReader should start reading data only after allocating the buffer, r=bkelly
2017-01-05 17:07:54 +01:00
Andrea Marchesini
26aca41802
Bug 1322979 - Migrating from NS_ASSERTION to MOZ_ASSERT in dom/file, r=qdot
2016-12-13 02:25:37 +01:00
Andrea Marchesini
dad92686f3
Bug 1321530 - FileReader.abort() should not throw, r=smaug
2016-12-02 13:16:59 +00:00
Andrea Marchesini
03a560cb36
Bug 1321525 - FileReader.readAs* should throw if called nested, r=smaug
2016-12-01 18:57:36 +01:00
Sebastian Hengst
ac1f0ecad6
Backed out changeset 8c4dcbaa44b9 (bug 1321525) for failing test_fileapi.html and test_fileReader.html. r=backout on a CLOSED TREE
2016-12-01 17:19:12 +01:00
Andrea Marchesini
73ea91c582
Bug 1321525 - FileReader.readAs* should throw if called nested, r=smaug
2016-12-01 15:57:02 +01:00
Andrea Marchesini
37766315d4
Bug 1321261 - create dom/file for File APIs, r=qdot
2016-12-01 15:12:42 +01:00
Sebastian Hengst
903cc3ec3c
Backed out changeset d3ef6f3e9193 (bug 1321261) for build bustage (calling missing file BlobParent.h from dom/ipc/TabParent.cpp). r=backout on a CLOSED TREE
2016-12-01 12:27:28 +01:00
Andrea Marchesini
4982909415
Bug 1321261 - create dom/file for File APIs, r=qdot
2016-12-01 11:43:18 +01:00
Sebastian Hengst
abf5b533a9
Backed out changeset 806c3d121dd4 (bug 1321261) for timing out in test_fileapi.html, test_mozfiledataurl.html and test_nonascii_blob_url.html on Linux x64 asan and debug. r=backout
2016-12-01 11:05:56 +01:00
Andrea Marchesini
1837b28622
Bug 1321261 - create dom/file for File APIs, r=qdot
2016-12-01 09:21:54 +01:00