Commit Graph

117 Commits

Author SHA1 Message Date
Dragana Damjanovic
5eb7ba7896 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-05-04 12:14:04 +02:00
Nathan Froyd
a3cd9ee75a 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
Carsten "Tomcat" Book
003d3ac33f Backed out changeset 5a9277de75b3 (bug 1188435) for test failures in test_devtools_serviceworker_interception.html | undefined assertion name 2017-04-25 16:32:26 +02:00
Carsten "Tomcat" Book
331241e44b Backed out changeset 3c71363497a8 (bug 1188435) 2017-04-25 16:32:01 +02:00
Dragana Damjanovic
e972fa8493 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-04-25 15:08:12 +02:00
Dragana Damjanovic
09cfb72f03 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-04-25 15:07:59 +02:00
David Major
82dee330c1 Bug 1346078: Remove nsAString_internal and just use the nsAString name directly. r=bsmedberg
MozReview-Commit-ID: DWDEDMIVKm7
2017-03-10 15:17:23 +13:00
Tim Huang
98a583c4bd Bug 1337893 - Part 3: Updating Necko for DNS changes. r=valentin
MozReview-Commit-ID: AVEp3hP7XqB
2017-02-15 17:48:15 +08:00
Wes Kocher
64ccd9559b Merge inbound to m-c a=merge
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Vedant Sareen
a85a2ad339 Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Tom Tromey
a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Wes Kocher
a25c094373 Merge inbound to central, a=merge
MozReview-Commit-ID: JupSuUl7bTn
2017-01-12 16:03:18 -08:00
Andrea Marchesini
46a9207d60 Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Liang-Heng Chen
4939c2ce24 Bug 243986 - Handle SOCKS5 remote DNS resolution error; r=bagder
MozReview-Commit-ID: 9ahlJTrym8N
2016-12-21 18:20:28 +08:00
Chris Peterson
0a27c5aa63 Bug 1329916 - Part 1: Remove netwerk checks for Windows XP. r=mcmanus
MozReview-Commit-ID: FBB3xll6wUx
2016-12-17 00:05:34 -08:00
Nils Ohlmeier [:drno]
f29f351b30 Bug 1266667: socket reuse option for TCPSocket. r=mcmanus
MozReview-Commit-ID: CJEK714ruLl
2016-12-21 23:38:06 -08:00
Patrick McManus
1889ab84d2 Bug 1321783 - Make updater be networking conservative r=dkeeler r=rstrong r=dragana 2016-12-02 16:49:23 -05:00
Jonathan Hao
64bc5f77d6 Bug 1315143 - Make OCSP use Origin Attribute framework (Necko). r=mayhemer 2016-11-21 11:43:06 +08:00
Carsten "Tomcat" Book
a67bc0700a Backed out changeset 690c0cdddff7 (bug 1315143) for bustage 2016-11-14 12:52:35 +01:00
Jonathan Hao
4f67806e5f Bug 1315143 - Make OCSP use Origin Attribute framework (Necko). r=Cykesiopka,keeler 2016-11-14 18:26:12 +08:00
Gerald Squelart
9a3fb4229e Bug 1316432 - Fix nsCOMPtr constructions&assignments from 0 - r=froydnj
Giving '0' (literal zero) to nsCOMPtr is now ambiguous, as both
nsCOMPtr(decltype(nullptr)) and nsCOMPtr(T*) could be used.
In any case, our coding standards mandate the use of 'nullptr' for pointers.
So I'm changing all zeroes into nullptr's where necessary.

MozReview-Commit-ID: LXiZTu87Ck6
2016-11-10 14:11:27 +11:00
Jonathan Hao
f1c3f1aef0 Bug 1264562 - Part 1: Add firstPartyDomain to socket transport (adapted from Tor Browser patch 13670) r=mayhemer 2016-10-12 15:32:22 +08:00
Nicholas Nethercote
8f3c6e7c32 Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.
2016-08-12 17:36:22 +10:00
Nicholas Nethercote
1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Masatoshi Kimura
14998f8390 Bug 1278250 - Add a utility function to check if non-local connections are disabled. r=mcmanus,mrbkap 2016-06-07 22:17:42 +09:00
Kannan Vijayan
6edb80b6d6 Bug 1272099, Bug 1272101 - FlyWeb core implementation, DOM and Network changes. r=baku r=hurley 2016-06-02 02:47:00 -04:00
Patrick McManus
e01f1d0309 Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
Patrick McManus
b65a962481 Bug 1236969 - remove autodialer r=valentin 2016-02-19 14:33:59 -05:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Dragana Damjanovic
e7c7aba0ca Bug 1259089 - Set TCP socket to non-blocking in sts again, just to be sure. r=mcmanus 2016-03-24 10:10:00 -04:00
Dragana Damjanovic
fa8031ea15 Bug 1257809 - "Improve telemetry for PR_Connect". r=mcmanus 2016-03-19 04:25:00 +01:00
Gregory Szorc
4e53a7f64c Bug 1256473 - Cast values to avoid C4838 on VS2015; r=mayhemer
MozReview-Commit-ID: DM4nChFJVWF
2016-03-23 15:17:44 -07:00
01be825b49 Bug 1251595 - Check if mNetAddr is set before sending ipv4/6 telemetry. r=mcmanus 2016-02-26 08:00:00 -05:00
Patrick McManus
6cc519230d Bug 544986 - 64KB rwin for windows xp r=dragana 2016-02-04 17:41:28 -05:00
b1071bc50b Bug 1242464 - Call shutdown() before closesocket() and change linger option on windows. r=mcmanus 2016-02-04 04:42:00 +01:00
Patrick McManus
1a58846fc0 Bug 1242597 - backout 7e32d3531b96def705f7e5a84045365d29716ce1 r=backout 2016-01-28 15:17:57 -05:00
Dragana Damjanovic
2409fa913b Bug 1243062 - Add telemetry for PR_Close time. r=mcmanus 2016-01-26 11:15:00 +01:00
Patrick McManus
8451bd8edc Bug 1242597 - Fix nsSocketTransport reference loop r=dragana 2016-01-19 17:48:15 -05:00
Dragana Damjanovic
47e63d77cd Bug 1240481 - Limit PR_Close calls during shutdown. r=mcmanus 2016-01-18 08:20:00 +01:00
Dragana Damjanovic
aff410cc33 Bug 1238017 - Remove ClosingService. r=mcmanus 2016-01-08 10:20:00 -05:00
Patrick McManus
548e3c08be Bug 1240122 - threadsafe fix for getselfaddr() r=dragana 2016-01-15 12:16:01 -05:00
Dragana Damjanovic
0743c82e36 Bug 1239655 - Do not do PR_ConnectContinue during the shutdown. r=mcmanus 2016-01-14 08:53:00 -05:00
Dragana Damjanovic
27abb7c476 Bug 1238910 - Rework shutdown necko. r=mcmanus 2016-01-14 04:42:00 -05:00
Ben Bucksch
1250b30d58 Bug 1200802 - Accept RFC1929 SOCKS credentials in proxyInfo. r=michal 2015-11-24 22:56:00 +01: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
Dragana Damjanovic
c5b8ba0969 Bug 1152046 - Make separate thread only for PRClose. r=mcmanus r=mayhemer 2015-09-10 19:07:00 +02:00
Birunthan Mohanathas
a0f7c73250 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Dragana Damjanovic
6f4f66637f Bug 1152046 - add telemetry for time spent in connect/close. r=mayhemer 2015-07-07 11:13:00 +02:00
Dragana Damjanovic
0e1e345def Bug 1177848 - Add telemetry to measure ipv6 miss and hits. r=mcmanus 2015-07-01 13:51:00 +02:00
Ted Mielczarek
d8fe521790 bug 1170582 - Fix nsSocketTransport on iOS. r=mayhemer 2015-05-06 07:51:51 -04:00