Chris Peterson
dab3fbc2f4
Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus
2015-11-22 21:58:33 -08:00
Nathan Froyd
4ada092d17
Bug 1222867 - part 2 - be smarter about transferring ownership of WebSocketFrame; r=mcmanus
...
WebSocketFrames are created only to be transferred in to
WebSocketEventService::Frame{Sent,Received}, where a strong reference is
taken to them by a runnable posted to the main thread. Let's avoid an
extra AddRef/Release cycle by passing through already_AddRefed
structures.
2015-11-08 20:52:27 -05:00
Nathan Froyd
638feef71b
Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
...
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places. For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00
Andrea Marchesini
a98c89a748
Bug 1215092 - WebSocketEventService and WebSocket discovering - part 2 - Unique Serial number for WebSocketChannel in IPC, r=michal
2015-10-28 19:10:42 +00:00
Andrea Marchesini
b8a7c5f9e2
Bug 1215092 - WebSocketEventService and WebSocket discovering - part 1 - Renaming WebSocketFrameService, r=michal
2015-10-28 19:10:20 +00:00
Carsten "Tomcat" Book
bf3efb4f25
Backed out changeset 7393a036ce36 (bug 1215092) for failing on own tests on a CLOSED TREE
2015-10-28 14:28:59 +01:00
Carsten "Tomcat" Book
457126dc02
Backed out changeset 2284c3e8c336 (bug 1215092)
2015-10-28 14:28:37 +01:00
Andrea Marchesini
ffa5134a4e
Bug 1215092 - WebSocketEventService and WebSocket discovering - part 2 - Unique Serial number for WebSocketChannel in IPC, r=michal
2015-10-28 11:42:00 +00:00
Andrea Marchesini
4ee2e7603e
Bug 1215092 - WebSocketEventService and WebSocket discovering - part 1 - Renaming WebSocketFrameService, r=michal
2015-10-28 11:41:24 +00:00
Andrea Marchesini
1f321121c8
Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 2 - WebSocketFrameService, r=michal
2015-10-26 15:30:11 +00:00
Andrea Marchesini
dd33dac0cc
Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 1 - WindowID added into WebSocketChannel, r=michal
2015-10-26 15:29:28 +00:00
Jonas Sicking
bb0dc3507b
Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb
2015-10-19 11:14:54 -07:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Wes Kocher
4f2d5be924
Backed out 2 changesets (bug 1182571) for being a likely cause of the Android S4 errors
...
Backed out changeset e2b3064dcace (bug 1182571)
Backed out changeset 8153ae231d16 (bug 1182571)
2015-10-15 14:07:06 -07:00
Jonas Sicking
d5e39db15b
Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb
2015-10-15 12:18:20 -07:00
Michal Novotny
764d857f31
Bug 1211001 - constant ASSERTION: nsITimer->SetDelay() called when the one-shot timer is not set up, r=mcmanus
2015-10-08 00:32:18 +02:00
Michal Novotny
5a15f89581
Bug 1186160 - WebSocketChannel accesses nsDocShell and nsDocument off the main thread, r=mcmanus
2015-09-01 02:47:23 +02:00
Michal Novotny
85da51eeca
Bug 1182515 - WebSocketChannel leaked when WebSocketChannel::AsyncOpen fails, r=mcmanus
2015-08-31 23:34:59 +02:00
Michal Novotny
4160865baf
Bug 1179255 - (fatal) Assertion failure: aRequest == mCancelable, at netwerk/protocol/websocket/WebSocketChannel.cpp:2766, r=mcmanus
2015-08-11 14:50:08 +02:00
Michal Novotny
7fbe9c9673
Bug 1137008 - Implement missing parameters of WebSocket permessage compression extension, r=jduell
2015-07-31 07:12:53 +02:00
Jessica Jong
0fdefc07fa
Bug 1167132 - Part 13: [NetworkManager] Move network information into a separate interface (Necko/NetStats). r=ethan
2015-07-29 02:14:00 -04:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Michal Novotny
a6a468184b
Bug 1170645 - Intermittent crash in mozilla::net::nsWSAdmissionManager::RemoveFromQueue(mozilla::net::WebSocketChannel*), r=mcmanus
2015-06-21 14:37:36 +02:00
Eric Rahm
835ab03059
Bug 1171716 - Part 3: Use NS_ReleaseOnMainThread in WebSocketChannel dtor. r=froydnj
2015-06-10 08:33:30 -07:00
Wes Kocher
f418993d89
Backed out 5 changesets (bug 1171716) for android bustage
...
Backed out changeset 4986f8464f9c (bug 1171716)
Backed out changeset bc8405b07d10 (bug 1171716)
Backed out changeset 10e18e494630 (bug 1171716)
Backed out changeset be499a3cae5d (bug 1171716)
Backed out changeset f75717d3eba0 (bug 1171716)
2015-06-09 18:48:37 -07:00
Eric Rahm
c98bf1c944
Bug 1171716 - Part 3: Use NS_ReleaseOnMainThread in WebSocketChannel dtor. r=froydnj
2015-06-09 18:25:46 -07:00
Michal Novotny
eeb57f1c88
Bug 1168221 - Assertion failure: !mDataStarted, r=hurley
2015-05-29 23:28:54 +02:00
Michal Novotny
54a0356554
Bug 1159280 - TSan: data race netwerk/protocol/websocket/WebSocketChannel.cpp:3156 WebSocketChannel::Close, r=mcmanus
2015-05-23 10:07:01 +02:00
Michal Novotny
855e3cda69
Bug 1152047 - mozilla::net::nsWSAdmissionManager::GetSessionCount may deadlock during shutdown, r=mcmanus
2015-05-19 11:35:33 +02:00
Michal Novotny
9728a3ac59
Bug 1152334 - StartWebsocketData null deref mSocketIn, r=bagder
2015-05-11 08:12:19 +02:00
theoneisneo
2dfc1176eb
Bug 1149872 - Add the missing format specifiers. r=jduell
2015-04-02 01:56:00 -04:00
Mike Hommey
4d93988786
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Mike Hommey
44945d9d4c
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
bbbfdd3932
Bug 1140765 - Build some network code in unified mode; r=mcmanus
2015-03-08 15:46:38 -04:00
Christoph Kerschbaumer
afd12b01d1
Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in netwerk/ (r=sworkman)
2015-02-17 10:09:31 -08:00
Ryan VanderMeulen
3322287d49
Merge inbound to m-c. a=merge
...
CLOSED TREE
2015-02-10 16:03:15 -05:00
Ethan Tseng
a84f1903a5
Bug 1070944 - Part 2: Implementation of saving statistics. r=albert
2015-01-27 17:15:44 +08:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Arthur Edelstein
a68e31a789
Bug 436344 - Allow filtering of proxies by channel. r=mcmanus
2015-01-21 21:13:00 +01:00
Andrea Marchesini
81c032a7f2
Bug 1111971 - A better life-time management of aListener and aContext in WebSocketChannel. r=smaug
...
CLOSED TREE
2015-01-13 14:03:56 -05:00
Ehsan Akhgari
7943855e34
Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus
2015-01-02 09:04:04 -05:00
Michal Novotny
4c7294112e
Bug 792831 - WebSocket permessage compression extension, r=jduell
2014-12-29 12:43:40 +01:00
Patrick McManus
ad2b489529
bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley
2014-12-06 14:26:50 -05:00
Ehsan Akhgari
d0117d111e
Bug 1109697 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-12-10 17:49:42 -05:00
Andrea Marchesini
f1806a3a62
Bug 1090170 - WebSocketChannel must remove itsself as observer when disconnected, r=bagder
2014-10-28 14:49:57 +00:00