Commit Graph

60 Commits

Author SHA1 Message Date
Andrea Marchesini
1126b00aed Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot 2018-01-31 16:45:20 +01:00
Andrea Marchesini
67fac604a1 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2018-01-31 16:45:20 +01:00
Andrea Marchesini
8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Sebastian Hengst
14018b66f7 Backed out changeset 52b418c8febf (bug 1371699) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux
--HG--
extra : histedit_source : d98d3d57b04e85bbee527549ecc271e5fc02e21e
2018-01-31 20:31:22 +02:00
Sebastian Hengst
e33e198739 Backed out changeset f1221589e7a6 (bug 1405974) for failing wpt webvtt/parsing/cue-text-parsing/tests/entities.html on Linux
--HG--
extra : histedit_source : d11737083bf4383b50707e024539f45f174531f9
2018-01-31 20:30:45 +02:00
Andrea Marchesini
69f4700dfd Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot 2018-01-31 16:45:20 +01:00
Andrea Marchesini
c16f42b917 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2018-01-31 16:45:20 +01:00
Andrea Marchesini
26352bfee1 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
a5bed23bd8 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
2c7c69af24 Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
Andrea Marchesini
063723a1f0 Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug 2018-01-31 08:23:44 +01:00
Andrea Marchesini
73712f7d05 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
a4830e4ab7 Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
Sebastian Hengst
50123e0062 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
f15ed01e48 Bug 1409394 - Avoid extra buffer copy in FileReader, r=smaug 2017-10-17 20:38:03 +02:00
Andrea Marchesini
9d15f50373 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
60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Sebastian Hengst
15b8e9a53b Backed out changeset 097c44e15165 (bug 1371699) 2017-10-05 13:10:55 +02:00
Andrea Marchesini
1867437172 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2017-10-03 07:20:18 +02:00
Sebastian Hengst
e8e914baa7 Backed out changeset c033bdb24e14 (bug 1371699) 2017-10-03 16:55:02 +02:00
Andrea Marchesini
ff3b280260 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2017-10-03 07:20:18 +02:00
Andrea Marchesini
9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Andrea Marchesini
baa04d619a 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
86c5c52e0e Bug 1402888 - Remove nsIStreamTransportService::createInputStream startOffset and readLimit params, r=smaug 2017-09-26 07:21:27 +02:00
Andrew McCreight
78807d8776 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

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Masatoshi Kimura
dec070e4cf Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx

--HG--
extra : rebase_source : 64e1a47c9366a970f20ec459dde9b379a207e802
2017-08-07 02:28:52 +09:00
Sebastian Hengst
b3269bec34 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
58d29db70b Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx

--HG--
extra : rebase_source : 63300d87c0496394d3f75cb76bc47c75d640d369
2017-08-07 02:28:52 +09:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Andrea Marchesini
178c9eeabc Bug 1377589 - FileReader should create a pipe if the stream is blocking, r=smaug 2017-07-14 15:31:23 +02:00
Nicholas Nethercote
3e439bb4f8 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.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Masatoshi Kimura
9865b2fdeb Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
MozReview-Commit-ID: E0w8BsP1Rof

--HG--
extra : rebase_source : db95e1e7fc60c9b9c8e6d7fcc5329421ec97e811
2017-06-16 21:11:03 +09:00
Bill McCloskey
aefa2aa5da 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
a758e6ab82 Bug 1370070 - Avoid unnecessary string creation. r=smaug
MozReview-Commit-ID: LLQQrCpK630
2017-06-09 15:56:35 -07:00
Andrea Marchesini
40bc26c0ee 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
efde1fdecb 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
37aa4465ad 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
33e3c76f21 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
f12e65c451 Bug 1361443 - FileReader should support ReadSegments() not returning the whole size, r=smaug 2017-05-04 14:45:34 +02:00
Carsten "Tomcat" Book
b3a2329598 Backed out changeset 4370dbfde05c (bug 1361443) 2017-05-04 16:39:22 +02:00
Andrea Marchesini
eecf7f4556 Bug 1361443 - FileReader should support ReadSegments() not returning the whole size, r=smaug 2017-05-04 14:45:34 +02:00
Andrea Marchesini
7bbba02e9a 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
ea587b3c8c Bug 1344466 - Fix error propagation in FileReader when reading from the inputStream, r=qdot 2017-03-07 08:44:54 +01:00
Andrea Marchesini
102c3cb18f Bug 1332602 - Propagate JS errors in FileReader, r=smaug 2017-01-24 12:12:15 +01:00
Andrea Marchesini
0cfe171374 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
bbc1165e2a Bug 1332592 - FileReader should dispatch onerror+onloadend when OOM occurs, r=smaug 2017-01-20 13:45:35 +01:00
Andrea Marchesini
eabdc0eafb Bug 1332587 - FileReader cannot allocate more than INT32_MAX for an ArrayBuffer, r=smaug 2017-01-20 12:33:18 +01:00
Andrea Marchesini
a9cfad0afe Bug 1331340 - FileReader should not continue when allocation fails, r=bkelly 2017-01-16 17:35:40 +01:00
Andrea Marchesini
d717bea267 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
cb3a2917b1 Bug 1294533 - FileReader should start reading data only after allocating the buffer, r=bkelly 2017-01-05 17:07:54 +01:00