Johann Hofmann
d28b4dd837
Bug 1374574 - Remove the FlyWeb service and DOM interfaces. r=bz,djvj
...
MozReview-Commit-ID: 4hp9pLbMh4R
--HG--
extra : rebase_source : 82f417640211ede4fd7aa290c1f2609b07f38025
2017-11-22 15:00:10 +01:00
Geoff Brown
cbb956e0c3
Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh
2017-11-10 07:03:36 -07:00
Andrea Marchesini
6fd88f7ffb
Bug 1415081 - part 3 - WebSocketChannel cannot use ::Available() to know the size of a nsIAsyncInputStream, r=smaug
2017-11-09 11:18:08 +01:00
Sebastian Hengst
1ead0a96a9
Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
...
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu
9dd47ebf50
Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
...
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags
MozReview-Commit-ID: Gr3nA25kcre
--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Kris Maglione
635fc0e1ae
Bug 1405286: Part 1 - Allow retrieving the delivery target from retargetable requests. r=dragana
...
After data delivery for a request has been retargeted, there's no reliable way
to get the appropriate event target to re-dispatch data events after
asynchronous processing.
While it's technically possible to retrieve the current thread from
OnDataAvailable callbacks and re-use that for later dispatch, that approach
has some issues:
1) It's not currently possible to reliably map the current thread to the
thread pool that owns it. That means that if data delivery is being targetted
to a thread pool, attempts to redispatch events to the previous delivery
thread might lead to long delays when one thread in a pool is blocked.
2) If a filter wishes to dispatch data events to the wrapped listeners before
it's recieved any data (as extensions StreamFilters sometimes do), there's no
way to determine the proper event target without waiting for initial data to
be received.
Simply returning the correct event target from the request solves both of
these problems.
MozReview-Commit-ID: CJxq7O4399R
--HG--
extra : rebase_source : db2f659ecad16daafdbcc108d7b1a51ea1af31f9
2017-10-14 18:30:38 -07:00
Kris Maglione
d1f06996d7
Bug 1404198: Part 2c - Switch to NS_NewTimer* in necko. r=njn
...
MozReview-Commit-ID: 3YyyaBAEjHc
--HG--
extra : rebase_source : 8ea5a8adb4d134ae15041f86f0b185603ab9a989
2017-10-15 23:12:02 -07:00
Chris Peterson
1ca3d5aa46
Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm
...
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.
MozReview-Commit-ID: B5Y8KyExPQ8
--HG--
extra : rebase_source : e27b266c145daa5acd887e998c6d5b408101e1db
extra : source : 33f49977a33cbdb1c7127871b940eefccc018f65
2017-09-06 15:00:31 -07:00
Henri Sivonen
d2b0cdbc9c
Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj
...
MozReview-Commit-ID: 49AGBPjW4Ca
--HG--
extra : rebase_source : 78dc1b549c97e5e4fb0dc625acdab23806b3e941
2017-09-01 11:53:31 +03:00
Sebastian Hengst
e03f524d85
Backed out changeset d59b62713c66 (bug 1395527)
2017-09-02 10:38:20 +02:00
Henri Sivonen
3c7fa0536e
Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj
...
MozReview-Commit-ID: 49AGBPjW4Ca
--HG--
extra : rebase_source : fb20025e98f97210c58c3cf9767eae06ad92349b
2017-09-01 11:53:31 +03: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
50f9ea47a3
Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm
2017-07-14 08:49:22 +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
Kershaw Chang
5279c25aa6
Bug 1343741 - Part3: Pass labelled event target to nsIProtocolProxyService::AsyncResolve, r=mayhemer
...
For dispatching runnable in nsPACMan, this patch sends a labelled event target via nsIProtocolProxyService::AsyncResolve.
2017-07-05 00:48:00 +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
Andreas Farre
f1473c65d1
Bug 1377215 - Add WebSocketEventService::Get. r=mcmanus
2017-07-02 18:02:37 +02: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
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02: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
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
Andreas Farre
a288a87eba
Bug 1373675 - Add hasListenerFor to nsIWebSocketEventService. r=mcmanus
...
This makes it possible to check if a Window has 'active' WebSockets.
2017-06-16 07:58:00 -04:00
Kershaw Chang
b59d3c86ec
Bug 1343747 - Part 2: Label runnables in WebSocketEventListenerChild. r=mayhemer
...
Use inner window id to get the window's event target and use it to label runnables.
2017-06-13 20:15:00 -04:00
Kershaw Chang
b4232a0b60
Bug 1343747 - Part 1: Label runnables in WebSocketChannelChild. r=mayhemer
...
Use nsContentUtils::GetEventTargetByLoadInfo to get a labeled event target and use it to dispatch runnables.
2017-06-13 20:14:00 -04:00
Bill McCloskey
7cb6a23814
Bug 1365101 - Convert NS_GetCurrentThread uses in netwerk/ (r=meyhemer)
...
MozReview-Commit-ID: IHBt6XAG8em
2017-06-12 20:21:43 -07:00
Valentin Gosu
a1c45c3558
Bug 1368549 - Remove MOZ_WIDGET_GONK from netwerk/* r=mcmanus
...
MozReview-Commit-ID: J2njLbNwlco
--HG--
extra : rebase_source : ccb35cb5845024c1bf7b448ebcec451bab264e8b
2017-05-29 22:09:04 +02:00
Andrea Marchesini
b69ca32006
Bug 1359005 - Cleanup the use of PBlob in StructuredCloneHolder - part 1 - protocols, r=smaug
2017-05-23 07:49:40 +02:00
Junior Hsu
5130d2e6d3
Bug 1359951 - Ensure that the WebSocket not sending constructor when shutting down, r=nwgh
...
--HG--
extra : rebase_source : c11a6d29d6da9a83f15a00f02c877960a0d5bf06
2017-05-02 19:50:00 +02:00
Nathan Froyd
042857aede
Bug 1360236 - make gSocketThread an internal implementation detail of nsSocketTransportService; r=mcmanus
...
This change makes the code a little cleaner and reduces the number of
places we call PR_GetCurrentThread, which is important for Quantum DOM
scheduling work.
The conversion was largely automatic, via:
find netwerk/ -name \*.cpp | \
xargs sed -i -e 's/MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread[^;]*/MOZ_ASSERT(OnSocketThread(), "not on socket thread")/'
and related invocations, with a few manual tweaks at the end.
2017-04-27 14:34:42 -04:00
Jason Duell
d8fc808f1c
Bug 711886 - Fail Websocket if server replies with non-matching subprotocol, r=mcmanus
2016-05-11 08:50:13 -07:00
Hideki Takeoka
613f5321ec
Bug 1351948 - Refuse ws messages that don't use minimal encoding. r=michal
...
--HG--
extra : rebase_source : 269bb3854d523e4100e5c1eda65b006bb15ae00d
2017-04-03 10:49:22 -04:00
Shih-Chiang Chien
6223873c22
Bug 1320744 - Part 2, Allow ChannelEventQueue to perform flush on multiple threads. r=mayhemer
...
MozReview-Commit-ID: Egu2mvwFTUF
--HG--
extra : rebase_source : 5627acad147bb0881897d93a7eddd2715cf9f3c5
2017-03-18 11:36:08 +08: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
5074a53881
Bug 1339713 - Use IPCStream everywhere - part 4 - PWebSocket, r=smaug
2017-03-09 14:10:24 +01:00
Wei-Cheng Pan
03ca0df8a1
Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
...
Add assertions.
MozReview-Commit-ID: DPvgKzVr3ip
--HG--
extra : rebase_source : a96d658c8b76180fe5a904106de9a68de16e0383
2017-01-12 17:48:45 +08:00
Tim Huang
2d4b6a79e2
Bug 1337893 - Part 3: Updating Necko for DNS changes. r=valentin
...
MozReview-Commit-ID: AVEp3hP7XqB
--HG--
extra : rebase_source : ab7bccfc0336a92f837c16eacbf3ae9290f3803b
2017-02-15 17:48:15 +08:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Joel Maher
d85b37d5f5
Bug 1335181 - add BUG_COMPONENT to netwerk/* and dom/network/* files. r=mcmanus
...
MozReview-Commit-ID: AeIuBnLx6IF
2017-02-02 06:33:47 -05:00
Wei-Cheng Pan
9787ace059
Bug 1323949 - Use MOZ_MUST_USE in netwerk/protocol/websocket r=valentin
...
MozReview-Commit-ID: 6lNrHbDIUez
--HG--
extra : rebase_source : a7f06ba4a31a328c4e62d6c78d72024c08cc1328
2016-11-23 18:00:42 +08:00
Kan-Ru Chen
c649cfaa98
Bug 1319271 - Use actor's manager in case actor is already deleted (r=billm)
...
MozReview-Commit-ID: 3Dr2POjqNft
2016-12-13 16:46:33 -08:00
Andrew McCreight
fccb0645ed
Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj
2016-12-12 09:27:58 -05:00
Nathan Froyd
826598caba
Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange
2016-12-12 08:45:46 -05:00
Andrew McCreight
e31b5489da
Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj
2016-12-12 07:58:33 -05:00
Ehsan Akhgari
0fad752fae
Bug 1318887 - Remove NS_GetAppInfo; r=mcmanus
...
This function is now only used to populate some write-only data members.
2016-11-21 15:00:46 -05:00
Ehsan Akhgari
5db79d7e66
Bug 1318883 - Remove the NetworkStats API and related code; r=baku,mcmanus
2016-11-21 13:33:18 -05:00
Kan-Ru Chen
f8100451db
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Valentin Gosu
d746e122c8
Bug 1307491 - (Part 1) Remove support for per-app-offline in netwerk/ [nukeb2g] r=bagder
...
* * *
Bug 1307491 - Remove support for per-app-offline [nukeb2g] r=bagder
MozReview-Commit-ID: FoweWBv9QyE
--HG--
extra : rebase_source : 0f6e0f0d19f108c3aef8b25cb6d605ecd338ee2b
2016-10-17 03:54:46 +02:00