Commit Graph

68 Commits

Author SHA1 Message Date
Nathan Froyd
5a1442cde6 Bug 1499849 - make FileReader timers slightly more efficient; r=baku
Instead of creating a timer and then setting the timer's target, we can
determine the timer's target and pass it in directly when the timer is
created.  This reordering of steps is slightly more efficient, since
SetTarget() is both a virtual call and requires locking, both of which
can be skipped if we know the target at timer creation time.
2018-10-17 19:57:35 -04:00
Andrea Marchesini
98fb5fdcfe Bug 1452253 - FileReader should use js_free for js_pod_malloc allocations, r=smaug 2018-09-18 16:57:04 +02:00
Ehsan Akhgari
b6365e24cf Bug 1489812 - Part 1: Port nsIEditorUtils.slurpBlob() to C++; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5373
2018-09-10 08:42:26 -04:00
Henri Sivonen
5acd13b00c Bug 1485029 - Use SIMD for PopulateBufferForBinaryString() in FileReader.cpp. r=smaug
MozReview-Commit-ID: Gwoj13lFJsJ

Differential Revision: https://phabricator.services.mozilla.com/D3889
2018-08-22 13:59:43 +00:00
Jeff Gilbert
70a22b2878 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Boris Zbarsky
0b2173fbf1 Bug 1452010 part 2. Remove nsIDOMDOMException members. r=qdot
MozReview-Commit-ID: Bp5ablEtcHA
2018-04-06 23:27:56 -04:00
Boris Zbarsky
d54406240d Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Andrea Marchesini
bf6c1e6cb8 Bug 1436784 - Use WorkerRef in FileReader, r=smaug 2018-03-13 21:17:06 +01:00
Andrea Marchesini
61d97913ad Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot 2018-01-31 16:45:20 +01:00
Andrea Marchesini
15f7c38968 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2018-01-31 16:45:20 +01:00
Andrea Marchesini
ddb4518ad1 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Sebastian Hengst
bc632b5fb9 Backed out changeset 52b418c8febf (bug 1371699) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux 2018-01-31 20:31:22 +02:00
Sebastian Hengst
bf67a3d1d6 Backed out changeset f1221589e7a6 (bug 1405974) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux 2018-01-31 20:30:45 +02:00
Andrea Marchesini
cefbc1fd20 Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot 2018-01-31 16:45:20 +01:00
Andrea Marchesini
74224ec836 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2018-01-31 16:45:20 +01:00
Andrea Marchesini
3e08265e73 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Andrea Marchesini
98ac9eb616 Bug 1432963 - Fixing workers headers - part 15 - static function in a workers namespace, r=smaug 2018-01-31 08:24:30 +01:00
Andrea Marchesini
5e357eed9f Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
Andrea Marchesini
30cbccd56d Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug 2018-01-31 08:23:44 +01:00
Andrea Marchesini
de5ddecee3 Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
Andrea Marchesini
1f8fe8502d Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
Sebastian Hengst
7eab7f3b81 Backed out changeset ef64f4c98cc6 (bug 1409394) for failing browser-chrome's browser_save_link-perwindowpb.js and browser_libraryDrop.js on OS X and leaks detected by chrome test on Linux x64 asan. r=backout on a CLOSED TREE 2017-10-17 22:23:30 +02:00
Andrea Marchesini
6f3f2d1ea7 Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
Andrea Marchesini
7fcfae22f1 Bug 1408397 - FileReader should not use a bufferStream together with an async inputStream, r=smaug 2017-10-17 13:17:51 +02:00
Kris Maglione
7cdbf75d48 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu
2017-10-15 23:15:40 -07:00
Sebastian Hengst
72fe9c02a3 Backed out changeset 097c44e15165 (bug 1371699) 2017-10-05 13:10:55 +02:00
Andrea Marchesini
452ce73f77 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2017-10-03 07:20:18 +02:00
Sebastian Hengst
b5db322841 Backed out changeset c033bdb24e14 (bug 1371699) 2017-10-03 16:55:02 +02:00
Andrea Marchesini
c65fe02da3 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2017-10-03 07:20:18 +02:00
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