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
Bevis Tseng
a7505864a8
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
...
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Bevis Tseng
d935b29e72
Bug 1378930 - Part 1: Remove nsINamed::SetName(). r=billm
...
MozReview-Commit-ID: 7aM1yJRsfPH
--HG--
extra : rebase_source : f207a37be835ac4e6c431af56737cebacf5c566d
2017-07-21 11:50:43 +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
Sylvestre Ledru
4e9cf83ee8
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +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
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Florian Quèze
2924991bf6
Bug 1368456 - remove Promise.jsm imports in tests, r=mconley.
2017-06-23 11:25:52 +02:00
Carsten "Tomcat" Book
95c2137595
Merge mozilla-central to mozilla-inbound
2017-06-22 14:10:35 +02:00
Florian Quèze
66f6d259bc
Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop.
2017-06-22 12:51:42 +02:00
Andrea Marchesini
07a1540ec8
Bug 1362945 - Label runnables in dom/file/ipc, r=btseng
2017-06-22 11:05:56 +02:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405
)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Andrea Marchesini
960b2e8ec6
Bug 1373222 - MutableBlobStorage always returns a temporary-file Blob if the size of data is greater than 1mb, r=smaug
2017-06-20 13:27:59 +02:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405
)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng
d1637b9c5a
Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
...
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08: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
6b3e84ed5f
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07: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
Jonathan Hao
dca1a28633
Bug 1217238 - Reduce time precision when privacy.resistFingerprinting is on. r=mystor
...
This patch is adapted from Tor bug 1517.
To offer some protection against timing attacks by JS content pages, in this
patch we round the various time-exposing APIs (such as Date and
Event.timeStamps) to the nearest 100 ms when the pref "privacy.resistFingerprinting" is on.
MozReview-Commit-ID: eGucM9nGTn
--HG--
extra : rebase_source : 3ee600b07943f3954e9a2a9561391f2f7821bb86
2017-06-06 11:45:14 +08:00
Andrea Marchesini
29a8affb92
Bug 1369354 - Avoid deadlock in IPCBlobInputStreamStorage::GetStream when IPCBlobInputStreamChild actor is used on the parent process, r=smaug
2017-06-02 11:05:27 +02:00
Andrea Marchesini
61a3ace45c
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 5 - WorkerHolder, r=smaug
...
WorkerHolder must be released after the migration.
2017-05-31 07:41:11 +02:00
Andrea Marchesini
6287e1d209
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 4 - monitoring child processes, r=smaug
2017-05-31 07:41:11 +02:00
Andrea Marchesini
794e8ca46d
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 3 - tests, r=smaug
2017-05-31 07:41:10 +02:00
Andrea Marchesini
1ec87785af
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 2 - callback stored, r=smaug
2017-05-31 07:41:10 +02:00
Andrea Marchesini
dd8eddb26f
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 1 - actor migration, r=smaug
2017-05-31 07:41:10 +02:00
Andrea Marchesini
4943943130
Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 0 - comments, r=smaug
2017-05-31 07:41:10 +02:00
Andrea Marchesini
10c6acd1a4
Bug 1359718 - Get rid of PBlob - part 5 - Fixing #includes, r=smaug
2017-05-23 18:06:52 +02:00
Andrea Marchesini
fa9cfac9fb
Bug 1359718 - Get rid of PBlob - part 3 - nsIRemoteBlob, r=smaug
2017-05-23 18:05:51 +02:00
Andrea Marchesini
281c7e8cdd
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Andrea Marchesini
bc8f9a2827
Bug 1359718 - Get rid of PBlob - part 1 - Remove PBlobStream, r=smaug, r=kanru
2017-05-23 18:04:27 +02:00
Andrea Marchesini
28479706ea
Bug 1359718 - Get rid of PBlob - part 0 - remove PMemoryStream, r=smaug
2017-05-23 18:00:30 +02:00
Sebastian Hengst
3743249da2
Backed out changeset 3ac94ff745fc (bug 1359718) for bustage in IPCBlobInputStreamChild.cpp. r=backout on a CLOSED TREE
2017-05-23 19:13:14 +02:00
Sebastian Hengst
b34db7c9fe
Backed out changeset 48ed92a3d18a (bug 1359718)
2017-05-23 19:12:31 +02:00
Sebastian Hengst
4ac10ab053
Backed out changeset c3251f5022dd (bug 1359718)
2017-05-23 19:12:25 +02:00
Sebastian Hengst
d64f9c87d8
Backed out changeset b21dc429b5bd (bug 1359718)
2017-05-23 19:12:20 +02:00
Sebastian Hengst
8164551943
Backed out changeset 2a2c16255a2c (bug 1359718)
2017-05-23 19:12:10 +02:00
Sebastian Hengst
f834bb34ff
Backed out changeset 247354884a9a (bug 1359718)
2017-05-23 19:12:00 +02:00
Andrea Marchesini
b248aca5b4
Bug 1359718 - Get rid of PBlob - part 7 - fixing namespaces, r=me
2017-05-23 18:44:55 +02:00
Andrea Marchesini
dc11620f89
Bug 1359718 - Get rid of PBlob - part 5 - Fixing #includes, r=smaug
2017-05-23 18:06:52 +02:00
Andrea Marchesini
5bc8fd9cd0
Bug 1359718 - Get rid of PBlob - part 3 - nsIRemoteBlob, r=smaug
2017-05-23 18:05:51 +02:00
Andrea Marchesini
f512688b0b
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Andrea Marchesini
7c4d305b8f
Bug 1359718 - Get rid of PBlob - part 1 - Remove PBlobStream, r=smaug, r=kanru
2017-05-23 18:04:27 +02:00
Andrea Marchesini
9106ae7b59
Bug 1359718 - Get rid of PBlob - part 0 - remove PMemoryStream, r=smaug
2017-05-23 18:00:30 +02:00
Sebastian Hengst
2ac2023c15
Backed out changeset c92612ac17d3 (bug 1359718) for bustage in IPCBlobInputStreamChild.cpp. r=backout on a CLOSED TREE
2017-05-23 18:35:24 +02:00
Sebastian Hengst
77897ad1e3
Backed out changeset 3b7d055b4207 (bug 1359718)
2017-05-23 18:34:45 +02:00
Sebastian Hengst
89e8ea64b1
Backed out changeset 537abc431472 (bug 1359718)
2017-05-23 18:34:40 +02:00
Sebastian Hengst
00f0dde511
Backed out changeset 5ded99aa9c74 (bug 1359718)
2017-05-23 18:34:34 +02:00
Sebastian Hengst
65a516ae95
Backed out changeset 58cc2991c47a (bug 1359718)
2017-05-23 18:34:24 +02:00
Andrea Marchesini
5662e3fcaf
Bug 1359718 - Get rid of PBlob - part 5 - Fixing #includes, r=smaug
2017-05-23 18:06:52 +02:00
Andrea Marchesini
3a71135cc5
Bug 1359718 - Get rid of PBlob - part 3 - nsIRemoteBlob, r=smaug
2017-05-23 18:05:51 +02:00
Andrea Marchesini
7db3365daf
Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru
2017-05-23 18:05:19 +02:00
Andrea Marchesini
ed95a3adde
Bug 1359718 - Get rid of PBlob - part 1 - Remove PBlobStream, r=smaug, r=kanru
2017-05-23 18:04:27 +02:00
Andrea Marchesini
af2f7fcbf5
Bug 1359718 - Get rid of PBlob - part 0 - remove PMemoryStream, r=smaug
2017-05-23 18:00:30 +02:00
Andrea Marchesini
0556e09658
Bug 1360185 - Use of IPCBlob in IndexedDB - part 5 - IPCBlobInputStream must implement nsIFileMetadata, r=janv
...
This patch uses also AsyncWait() to store Wasm modules into indexedDB
2017-05-23 07:52:47 +02:00
Jan Varga
148a63cc3f
Bug 1360185 - Use of IPCBlob in IndexedDB - part 4 - IPCBlob and sharing files when used by IDB, r=baku
2017-05-18 09:50:57 +02:00
Andrea Marchesini
335ccef6d3
Bug 1360185 - Use of IPCBlob in IndexedDB - part 3 - IPCBlob must support fileId and fullPath values for indexedDB, r=janv
...
These 2 values are used only for testing, but they are extremely useful.
2017-05-23 07:51:13 +02:00
Andrea Marchesini
7af48e36ff
Bug 1359357 - Test for IPCBlob and workers, r=smaug
2017-05-22 13:33:00 +02:00
Andrea Marchesini
cf22d699db
Bug 1359357 - IPCBlobInputStreamChild should be protected by a WorkerHolder, r=smaug
2017-05-22 13:33:00 +02:00
Andrea Marchesini
0d165be73b
Bug 1366011 - IPCBlob should not have race conditions between Send__delete__ and RecvStreamNeeded, r=smaug
2017-05-19 14:00:31 +02:00
Iris Hsiao
09507c3bc6
Backed out 3 changesets (bug 1366011, bug 1359357) for mochitest failures in test_ipcBlob_workers.html
...
Backed out changeset a20220d687d4 (bug 1359357)
Backed out changeset 9f71fb3f4d1e (bug 1359357)
Backed out changeset 70e5477cdda0 (bug 1366011)
2017-05-19 15:59:55 +08:00
Andrea Marchesini
b50678ce59
Bug 1359357 - Test for IPCBlob and workers, r=smaug
2017-05-19 07:57:25 +02:00
Andrea Marchesini
b6695129b2
Bug 1359357 - IPCBlobInputStreamChild should be protected by a WorkerHolder, r=smaug
2017-05-19 07:57:18 +02:00
Andrea Marchesini
318848612a
Bug 1366011 - IPCBlob should not have race conditions between Send__delete__ and RecvStreamNeeded, r=smaug
2017-05-18 23:06:22 +02:00
Nathan Froyd
c1d1748428
Bug 1359490 - add an event loop spinning abstraction function; r=gerald
...
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Honza Bambas
d6d727a69e
backout of f9abb9c83452 (bug 1319111) for crashes, r=bz
2017-05-13 13:55:11 +02:00
Wes Kocher
0a1e1fe23b
Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
...
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas
70f62bdec1
backout of f9abb9c83452 (bug 1319111) for crashes, r=bz
2017-05-12 22:13:49 +02:00
Bevis Tseng
32c0a177ae
Bug 1362944 - Part 1: Accept nsIEventTarget in the CTOR of MutableBlobStorage to support runnable labeling. r=baku
...
1. Accept nsIEventTarget in the CTOR of MutableBlobStorage/MutableBlobStreamListener.
2. Do ProxyRelease and runnable dispatching via this event target.
2017-05-09 18:29:46 +08:00
Andrea Marchesini
242df9338b
Bug 1359087 - Use IPCBlob in FileHandle - part 1 - PPendingIPCBlob protocol, r=janv
2017-05-09 22:35:27 +02:00
Andrea Marchesini
f4482d75a5
Bug 1360992 - RecvStreamReady() should be protected by mutex as any other method in IPCBlobInputStreamChild, r=qdot
2017-05-04 08:37:54 +02:00
Bevis Tseng
e51e1bdbb8
Bug 1362946 - Set SystemGroup EventTarget to ReleasingTimerHolder. r=baku
...
1. Label ReleasingTimerHolder with SystemGroup since ReleasingTimerHolder
touches nothing related to the web content but releases the handle of
the BlobImpl object.
2. Name ReleasingTimerHolder for telemetry.
--HG--
extra : rebase_source : dce59a96780f8b8accbfcc7e6fb981d8446365eb
2017-05-09 15:02:54 +08:00
Andrea Marchesini
93aa78bfde
Bug 1363309 - Fix for an intermittent failure in dom/file/ipc/test/test_ipcBlob_fileReaderSync.html, r=me
2017-05-09 11:07:33 +02: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
Andrea Marchesini
64737e4496
Bug 1360807 - FileReaderSync must work with sync inputStream - part 3 - tests, r=smaug
2017-05-09 11:04:29 +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
e099f834fe
Backed out 2 changesets (bug 1360992, bug 1361654) for a 70% failure rate in test_fileReader.html on ASan e10s
...
Backed out changeset ab9fdee3a6a4 (bug 1360992)
Backed out changeset 141c2dfd49ff (bug 1361654)
MozReview-Commit-ID: 3rSzvmc5FPx
2017-05-05 12:35:57 -07: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
cffbaf4514
Bug 1360807 - FileReaderSync must work with sync inputStream - part 3 - tests, r=smaug
2017-05-05 14:45:12 +02:00
Phil Ringnalda
71365c8b72
Backed out 6 changesets (bug 1360807) for ongoing hangs in test_fileReader.html and test_ipcBlob_fileReaderSync.html
...
CLOSED TREE
Backed out changeset 3a05e05fb644 (bug 1360807)
Backed out changeset 9630a51eca07 (bug 1360807)
Backed out changeset 41e9af8078dd (bug 1360807)
Backed out changeset e59616a3997a (bug 1360807)
Backed out changeset c800cb830b36 (bug 1360807)
Backed out changeset 4ab091bdeda1 (bug 1360807)
MozReview-Commit-ID: 1h3pcsPi2An
2017-05-04 19:26:26 -07:00
Honza Bambas
a1b64b4694
Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz
2017-01-27 19:10:01 +01:00
Andrea Marchesini
35cd8777b2
Bug 1360807 - FileReaderSync must work with sync inputStream - part 2 - tests, r=smaug
2017-05-04 14:50:46 +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
Andrea Marchesini
40764897d5
Bug 1361443 - Tests for remote blobs and multipart inputStreams, r=smaug
2017-05-04 14:44:53 +02:00
Carsten "Tomcat" Book
e213b79ab9
Backed out changeset 1ab58ab887c6 (bug 1361443)
2017-05-04 16:39:26 +02:00
Carsten "Tomcat" Book
b3a2329598
Backed out changeset 4370dbfde05c (bug 1361443)
2017-05-04 16:39:22 +02:00
Carsten "Tomcat" Book
30621fffb2
Backed out changeset d43275b33f00 (bug 1360807)
2017-05-04 16:39:10 +02:00
Andrea Marchesini
9df6826e4f
Bug 1360807 - FileReaderSync must work with sync inputStream - part 2 - tests, r=smaug
2017-05-04 14:50:46 +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
8e2ada11f9
Bug 1361443 - Tests for remote blobs and multipart inputStreams, r=smaug
2017-05-04 14:44:53 +02:00
Andrea Marchesini
210898c009
Bug 1360992 - RecvStreamReady() should be protected by mutex as any other method in IPCBlobInputStreamChild, r=qdot
2017-05-04 08:37:54 +02:00
Nathan Froyd
81c338e5a7
Bug 1361512 - convert InputStreamParent to use NS_DECL_OWNINGTHREAD; r=baku
...
The pattern we're using here has a name, so let's use that instead.
2017-05-03 11:48:54 -04:00
Andrea Marchesini
9cc9f87380
Bug 1360340 - IPCBlob must contain isDirectory boolean in order to support Drag&Drop of directories, r=smaug
2017-05-02 16:38:19 +02:00
Andrea Marchesini
58a010e820
Bug 1360476 - IPCBlobInputStream needs to be seekable on the parent side, r=me
2017-04-28 12:20:40 +02:00
Andrea Marchesini
b8016bba19
Bug 1360454 - IPCBlobInputStream can take the original stream directly if created on the parent process, r=smaug
2017-04-28 12:16:13 +02:00
Andrea Marchesini
170d6e64ad
Bug 1360476 - IPCBlobInputStream needs to be seekable on the parent side, r=smaug
2017-04-28 12:16:08 +02:00
Sebastian Hengst
0936d33fb8
Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout
2017-04-28 00:16:39 +02:00
Honza Bambas
0504ed64c3
Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz
2017-01-27 19:10:01 +01:00
Andrea Marchesini
83cf83e041
Bug 1358410 - Gt rid of CX parameter in BlobSet::AppendString(), r=qdot
2017-04-25 22:30:23 +02:00
Andrea Marchesini
180510aef3
Bug 1358410 - Use StringBlobImpl in BlobSet, r=qdot
2017-04-25 22:29:13 +02:00
Andrea Marchesini
e0f3f054c6
Bug 1359359
- Tests for FileReaderSync and IPCBlobInputStream, r=smaug
2017-04-25 22:23:47 +02:00
Andrea Marchesini
0aedf284ff
Bug 1359359
- IPCBlobInputStream should execute StreamReady() in the target thread of AsyncWait, r=smaug
2017-04-25 22:23:46 +02:00
Andrea Marchesini
74d79c82a7
Bug 1359172 - RemoteInputStream must create a correct inputStream when used and sliced in a separate process, r=smaug
2017-04-25 14:07:31 +02:00
Andrea Marchesini
4ee48ef4d0
Bug 1358114 - Use IPCBlob in BlobURL, r=smaug
2017-04-24 12:16:49 +02:00
Andrea Marchesini
c4efbc7670
Bug 1358109 - Use IPCBlob in PFilePicker, r=smaug
2017-04-25 14:07:30 +02:00
Sebastian Hengst
9a4acf2991
Backed out changeset dec83a85f824 (bug 1358109) for failing mochitest dom/indexedDB/test/test_blob_worker_xhr_read_slice.html. r=backout
2017-04-24 15:44:10 +02:00
Sebastian Hengst
d3da87ad97
Backed out changeset a180e3f4de16 (bug 1358114)
2017-04-24 15:43:05 +02:00
Andrea Marchesini
5046098373
Bug 1358114 - Use IPCBlob in BlobURL, r=smaug
2017-04-24 12:16:49 +02:00
Andrea Marchesini
25e4c65c6d
Bug 1358109 - Use IPCBlob in PFilePicker, r=smaug
2017-04-24 12:16:49 +02:00
Andrea Marchesini
dca7c55a43
Bug 1353629 - PBlob refactoring - part 14 - tests, r=smaug
...
--HG--
rename : dom/base/test/browser_bug1307747.js => dom/file/ipc/tests/browser_ipcBlob.js
2017-04-24 12:09:41 +02:00
Andrea Marchesini
38a7f75f35
Bug 1353629 - PBlob refactoring - part 13 - IPCBlobInputStream should support remote nsIAsyncInputStream, r=smaug
...
If a child-to-parent IPCBlob is more than 1mb, we end up using a pipe stream.
If that ipcBlob is sent to a different process, we need to implement asyncWait
correctly: we need to call the remoteStream->AsyncWait().
2017-04-24 12:09:41 +02:00
Andrea Marchesini
f29b1f76a9
Bug 1353629 - PBlob refactoring - part 11 - Comments, r=smaug
2017-04-24 12:09:41 +02:00
Andrea Marchesini
794d21eaaf
Bug 1353629 - PBlob refactoring - part 9 - PBlob should use IPCStream in case it is dealing with an IPCBlobInputStream, r=smaug
...
This patch will go away when I'll finishing the removing of PBlob. Currently,
when a PBlob is sent from child to parent, we use PMemoryStream in order to
recreate the inputStream on the parent side. PMemoryStream sends the data in
chunks.
But if PBlob is dealing with a IPCBlobInputStream, it doesn't have access to
the real data. In this case, we must send data using IPCStream. In this way,
Note that thisIPCBlobInputStream will send its ID, and the parent will take the
real inputStream from the IPCBlobInputStreamStorage. Note that I check the
size to be 1mb instead 0. No particular reasons, but better to avoid the use of
PMemoryStream for nothing.
2017-04-24 12:09:40 +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
d6659b61c0
Bug 1353629 - PBlob refactoring - part 7 - IPCBlobInputStream must implement nsIAsyncInputStream, r=smaug
...
In order to retrieve data from an IPCBlobInputStream, it must be used as
nsIAsyncInputStream.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
db52df9bd7
Bug 1353629 - PBlob refactoring - part 6 - IPCBlobInputStream serialization, r=smaug
...
IPCBlobInputStream must implement nsIIPCSerializableInputStream interface.
When this is done, the child sends the internal ID of the IPCBlobInputStream to
the parent.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
b90e19e9d1
Bug 1353629 - PBlob refactoring - part 5 - IPCBlobInputStreamStorage, r=smaug
...
An IPCBlobInputStream can be sent back to the parent process (not implemented
in this patch). When this is done, we basically send only the internal ID.
From this ID, we can retrieve the original inputStream because any
IPCBlobInputStreamParent actor has previously registered it into a singleton:
IPCBlobInputStreamStorage.
So, if we have a IPCBlobInputStreamParent, we have an inputStream, and this
inputStream is known by IPCBlobInputStreamStorage. This will be useful in the
next patches.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
db0019c058
Bug 1353629 - PBlob refactoring - part 4 - IPCBlobInputStream, r=smaug
...
IPCBlobInputStream is a new type of nsIInputStream that is used only in content
process when a Blob is sent from parent to child. This inputStream is for now,
just cloneable.
When the parent process sends a Blob to a content process, it has the Blob and
its inputStream. With its inputStream it creates a IPCBlobInputStreamParent
actor. This actor keeps the inputStream alive for following uses (not part of
this patch).
On the child side we will have, of course, a IPCBlobInputStreamChild actor.
This actor is able to create a IPCBlobInputStream when CreateStream() is
called. This means that 1 IPCBlobInputStreamChild can manage multiple
IPCBlobInputStreams each time one of them is cloned. When the last one of this
stream is released, the child actor sends a __delete__ request to the parent
side; the parent will be deleted, and the original inputStream, on the parent
side, will be released as well.
IPCBlobInputStream is a special inputStream because each method, except for
Available() fails. Basically, this inputStream cannot be used on the content
process for nothing else than knowing the size of the original stream.
In the following patches, I'll introduce an async way to use it.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
cf7edf5874
Bug 1353629 - PBlob refactoring - part 0 - IPCBlob, r=smaug
...
This first patch introduces the basic idea of the refactoring. Instead of
having a PBlob protocol, here we have a simple IPC struct: IPCBlob.
When a Blob is sent to a different process, we move an IPCBlob struct with
type, size, some specific File properties, and an inputStream as IPCStream.
2017-04-24 12:09:40 +02:00
Andrea Marchesini
c56fc1bd8e
Bug 1356580 - Better check of PMemoryStream actor creation in Blob code, r=qdot
2017-04-18 22:16:04 +02:00
Andrea Marchesini
81a9f1a5b2
Bug 1343172 - PBlob should not create a remoteInputStream if that already exists, r=smaug
2017-04-18 13:54:15 +02:00
Kate McKinley
76ebee76e8
Bug 1237868 - Don't set URI_IS_LOCAL_RESOURCE on media streams. r=baku
...
This patch only sets URI_IS_LOCAL_RESOURCE if the resource is a blob or
font table entry, to avoid having media streams treated as local
objects.
MozReview-Commit-ID: GOVr8FPByQy
2017-04-01 15:11:53 -04:00
Andrea Marchesini
1feb18fd09
Bug 1340921 - Introduce PMemoryStream for having PBlob and Multi-e10s happy - part 5 - Make MemoryBlobImpl::DataOwner cloneable, r=mrbkap
2017-03-29 10:40:39 +02:00
Andrea Marchesini
f6b3cb0b74
Bug 1340921 - Introduce PMemoryStream for having PBlob and Multi-e10s happy - part 4 - Delete of the PMemoryStream actor, r=mrbkap
2017-03-29 10:40:38 +02:00
Andrea Marchesini
0132b2fc81
Bug 1340921 - Introduce PMemoryStream for having PBlob and Multi-e10s happy - part 3 - PMemoryStream and PBlob, r=mrbkap
2017-03-29 10:40:38 +02:00
Andrea Marchesini
d99a7dac26
Bug 1340921 - Introduce PMemoryStream for having PBlob and Multi-e10s happy - part 2 - PMemoryStream actor, r=mrbkap
2017-03-29 10:40:38 +02:00
Andrea Marchesini
f8737e7e7f
Bug 1340921 - Introduce PMemoryStream for having PBlob and Multi-e10s happy - part 1 - Expose DataOwnerAdapter, r=mrbkap
2017-03-29 10:40:38 +02:00
Andrea Marchesini
baeaa6587e
Bug 1349862 - MutableBlobStorage must use a TaskQueue in order to preserve the order of runnables for I/O ops, r=asuth
2017-03-28 11:05:58 +02:00
Andrea Marchesini
ce13019950
Bug 1344957 - Enabling File.createFromNsIFile and File.createFromFileName only for testing and file-content-process, r=ehsan, r=bobowen
2017-03-21 11:11:06 +01:00
Andrea Marchesini
2e9d67bae0
Bug 1347557 - Move 2 static methods about the IPC serialization of streams into an helper class, r=qdot
2017-03-21 07:47:25 +01:00
Ehsan Akhgari
e414903d6e
Bug 1346987 - Part 2: Stop using the PContent::Msg_OpenAnonymousTemporaryFile sync IPC message for blob storage; r=baku
2017-03-19 01:42:01 -04:00
Phil Ringnalda
dd44ef2360
Backed out 3 changesets (bug 1346987) for media, blob, and temporaryfile failures
...
CLOSED TREE
Backed out changeset d24fa1b4553b (bug 1346987)
Backed out changeset 34701b9ed4ba (bug 1346987)
Backed out changeset f24f4fdc5cc8 (bug 1346987)
2017-03-14 20:03:31 -07:00
Ehsan Akhgari
75b956ac5f
Bug 1346987 - Part 2: Stop using the PContent::Msg_OpenAnonymousTemporaryFile sync IPC message for blob storage; r=baku
2017-03-14 20:20:57 -04:00
Andrea Marchesini
f9cbf66dfd
Bug 1274343 - Add parent-to-child pipe streaming to IPCStream - part 2 - PParentToChild, r=smuag
...
--HG--
rename : ipc/glue/SendStreamAlloc.h => ipc/glue/IPCStreamAlloc.h
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamChild.cpp
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamDestination.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamDestination.h
rename : ipc/glue/SendStreamParent.cpp => ipc/glue/IPCStreamParent.cpp
rename : ipc/glue/SendStreamChild.cpp => ipc/glue/IPCStreamSource.cpp
rename : ipc/glue/SendStream.h => ipc/glue/IPCStreamSource.h
rename : ipc/glue/PChildToParentStream.ipdl => ipc/glue/PParentToChildStream.ipdl
2017-03-14 12:29:43 +01:00
Andrea Marchesini
6ced9f8a25
Bug 1274343 - Add parent-to-child pipe streaming to IPCStream - part 1 - renaming PSendStream to PChildToParentStream, r=smaug
...
--HG--
rename : ipc/glue/PSendStream.ipdl => ipc/glue/PChildToParentStream.ipdl
2017-03-14 12:28:58 +01: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
4d21d3a57a
Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs
2017-03-03 09:42:54 +01:00
Joel Maher
f297f17181
Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
...
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Masatoshi Kimura
7be7b11a1c
Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
...
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;
MozReview-Commit-ID: AzhtdwJwVNg
--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Andrea Marchesini
43fa40bb63
Bug 1341536 - Get rid of duplicate functions in fileutils.js, r=qdot
2017-02-23 03:24:54 +01:00
Andrea Marchesini
68feb209f4
Bug 1341327
- Add assertions to be sure that FileBlobImpls are created on the parent process only, r=smaug
2017-02-23 03:23:51 +01:00
Andrea Marchesini
e87ad16573
Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug
2017-02-22 09:41:51 +01:00
Iris Hsiao
f9bdfe10bb
Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
...
Backed out changeset 7c0ec55b44dc (bug 1339710)
Backed out changeset cbb4e1c2aada (bug 1339710)
Backed out changeset c685dca493f5 (bug 1339710)
Backed out changeset 4761a15d45fd (bug 1339710)
Backed out changeset 7561692c1bc7 (bug 1339710)
2017-02-22 16:19:50 +08:00
Andrea Marchesini
190bf147a2
Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug
2017-02-22 07:56:29 +01:00
Sebastian Hengst
346d08ea1b
Backed out changeset c32c74847eb6 (bug 1335539)
2017-02-21 17:53:45 +01:00
Andrea Marchesini
0963d18874
Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs
2017-02-21 15:04:47 +01:00