Moonchild
232f5a4705
[network] cache memory reporter cleanup
2022-03-22 23:19:50 +08:00
Randell Jesup
562b04e5c0
[network] BackgroundFileSaver cleanup.
2022-03-22 23:18:26 +08:00
Moonchild
b924810a3e
[network] SocketTransport2 cleanup
2022-03-22 23:16:37 +08:00
Moonchild
9299c2e2ea
[network] Improve thread-safety of cache entry handling.
2022-03-22 23:11:34 +08:00
roytam1
f43ff83d54
backport Bug 1696685 - r=valentin,nika a=RyanVM
2021-12-14 23:10:15 +08:00
roytam1
0ffa8a018a
backport Bug 1724233 - Make sure to run ConvertUTF8toACE before ConvertToDisplayIDN. r=dragana, a=RyanVM
2021-11-10 09:10:25 +08:00
roytam1
d025defb98
Bug 1606864 - Make mDoNotRetryToConnect atomic. r=decoder,dragana a=RyanVM
...
Bug 1712671 - Make nsSocketTransport2::m{Input/Output}StreamClosed atomic. r=kershaw,decoder a=RyanVM
2021-11-10 09:10:25 +08:00
roytam1
1920aae3dc
Bug 1735152 - Avoid using NS_ADDREF in nsSocketTransport. r=dragana, a=RyanVM
2021-11-10 09:10:25 +08:00
roytam1
8fb608b22d
remove OSX support
2021-11-10 09:10:25 +08:00
Moonchild
9aed4d8a38
[network] Use a proof of lock everywhere in cache v2.
2021-08-12 11:21:24 +08:00
Valentin Gosu
6b11c3f299
[network] Make CacheIOThread::ThreadFunc hold reference to thread.
2021-07-15 09:26:22 +08:00
Moonchild
43f7d3e27a
[network] Add some sanity checks to deserialized nsStandardURLs
...
Note: C++ lambda expressions are actually useful for once.
2021-07-15 09:26:21 +08:00
Moonchild
0a42897070
[network] Stop blocking 10080
...
Port 10080 is shared by too many devices and services that do need http(s)
access, so this port should not be blacklisted by default.
2021-07-15 09:26:19 +08:00
Moonchild
3612f45a90
[network] Stop treating http and https as different for encoding schemes.
...
There is no reason to treat available encoding schemes for these protocols
differently.
2021-07-15 09:23:13 +08:00
Moonchild
ba00d14c12
Issue #1751 - Remove Mac code behind MOZ_WIDGET_TOOLKIT == 'cocoa'
2021-06-24 11:09:47 +08:00
Moonchild
98f29e4737
[network] Fix typo in port blocking range check.
...
This fixes a typo in 5e705bd5059da5b7a39e3a096b7c7f59cb466730
2021-05-14 00:21:36 +08:00
Moonchild
2f27335cc4
Issue #1751 -- Remove XP_DARWIN
2021-05-05 10:27:04 +08:00
Moonchild
434b3269fb
Issue #1767 - Prevent incorrect calling of network change detection function.
...
This rewrites the websocket channel network change detection function to not
skip part of its logic in a situation that has already been checked, preventing
a thread race. See analysis of the problem in the issue.
2021-05-05 10:25:45 +08:00
Moonchild
69597507db
[Network] Solve type mismatch in AllowPort().
...
Casting it to an int16_t was wrong and would preclude the check for high port
numbers (due to overflow).
This makes the type matching, but adds an explicit check to ensure the port
number passed in is within a valid range.
2021-04-21 21:55:41 +08:00
Moonchild
b83d024efb
[network] Hold mutex when accessing mSecurityInfo.
2021-01-27 21:03:07 +08:00
adesh
942b305400
Issue #1697 - Reinstate the performance timing code removed in error.
...
This was a fallout from pull request #929 .
2020-12-21 15:11:57 +08:00
Moonchild
9f0067af53
Issue #1695 - Restore Sleep/Wake timer that was erroneously removed.
...
This was fallout from PR #929 for Issue #21
2020-12-21 15:11:48 +08:00
Moonchild
f1eb2c5cfb
[network] Update port blacklist.
...
See BZ bugs 1674735, 1677047, 1677940 and 1676868 for details.
2020-12-21 15:10:29 +08:00
Moonchild
f04f4a996f
Issue #1695 - Fix socket timeout logic.
2020-12-10 10:31:43 +08:00
Brian Smith
e4030ad075
Issue #1690 - Part 1: Fix MacOS version detection above 10.15.
...
Changes based on Mozilla bug 1616404 but supporting back to 10.7.
2020-12-02 09:57:28 +08:00
Moonchild
63a7c7f90e
[http] Use a copy of nsHttpConnectionInfo.
...
The root cause in this bug is that the connection info used by
'SpdyConnectTransaction' is the same instance as the connection info in
'nsHttpTransaction', so we should clone it and let 'SpdyConnectTransaction' use
the cloned one.
2020-11-20 09:31:27 +08:00
Moonchild
a77ab3da7f
Issue #1656 - Nuke the remaining vim lines in UXP
...
Closes #1656
2020-10-30 09:09:20 +08:00
Moonchild
efa2f805fe
[netwerk] Make nsIncrementalStreamLoader's GetNumBytesRead threadsafe.
...
This prevents a potential race and simplifies the code a bit by keeping the
bytes read separate instead of using mData, which is modified from another
thread from OnDataAvailable.
Relaxed atomics are fine for these, since they don't guard any memory.
2020-10-30 09:08:13 +08:00
Moonchild
9305760571
Issue #1656 - Part 9: Single-line-comment style.
2020-09-25 22:07:00 +08:00
Moonchild
d5919942ff
Issue #1656 - Part 8: Devtools and misc.
2020-09-25 22:06:55 +08:00
Moonchild
0cd673d720
Issue #1656 - Part 6: Clean up the build files
2020-09-25 22:04:23 +08:00
Moonchild
538b420319
Issue #1656 - Part 4: Manual cleanup
2020-09-25 22:04:20 +08:00
Moonchild
d7a4abc3d4
Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.cc
2020-09-25 22:04:18 +08:00
Moonchild
30df895eb2
Issue #1656 - Part 3: Nuke more vim config lines in the tree.
...
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild
8c395520d9
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Michael Tuexen
5ec7dd76e6
[WebRTC] Stop putting addresses in the cookie chunk.
...
When using AF_CONN addresses, don't put these in the COOKIE
chunk. For these addresses it is possible to reconstruct them
locally. Conceptually, addresses are something to be shared
with the peer, but in the case of AF_CONN this might not be
the case. Therefore, zero then out.
Thanks to Natalie Silvanovich of Google Project Zero for
finding and reporting the issue.
2020-07-31 08:08:05 +08:00
Andrea Marchesini
7a37234be2
[xpcom] Make Base64 compatible with ReadSegments() with small buffers.
2020-07-31 08:07:55 +08:00
Moonchild
52c03190ee
[network/dom] Improve sanitization of download filenames.
2020-07-31 08:07:47 +08:00
Moonchild
8d5005090a
[network] Use query and ref lengths if available in nsStandardURL.
2020-07-11 07:02:31 +08:00
adeshkp
6cf6d2da88
Issue #80 - Include MDNSResponderOperator.h in libmdns/nsDNSServiceDiscovery.h for Mac
...
This is needed for forward declaration of `BrowseOperator` and `RegisterOperator`.
2020-05-23 06:53:26 +08:00
Gaming4JC
c314c2253d
Issue #80 - Add nsSocketTransportService2.h to ThrottleQueue.cpp
2020-05-23 06:53:14 +08:00
Moonchild
391f2d1025
Issue #80 - De-unify netwerk/wifi
2020-05-23 06:53:11 +08:00
Moonchild
7d1c08bc99
Issue #80 - De-unify netwerk/streamconv
2020-05-23 06:53:08 +08:00
Moonchild
13c2026dc2
Issue #80 - De-unify netwerk/srtp
2020-05-23 06:53:05 +08:00
Moonchild
8863dff0dd
Issue #80 - De-unify netwerk/socket
2020-05-23 06:53:02 +08:00
Moonchild
be78f46bae
Issue #80 - De-unify netwerk/protocol/http
2020-05-23 06:52:58 +08:00
Moonchild
ff440ebb84
Issue #80 - De-unify netwerk/protocol/res
2020-05-23 06:52:55 +08:00
Moonchild
f0b717678c
Issue #80 - De-unify netwerk/protocol/ftp
2020-05-23 06:52:03 +08:00
Moonchild
911270ea60
Issue #80 - De-unify smaller netwerk/protocol components
...
- data
- device
- file
- viewsource
- wyciwyg
2020-05-23 06:52:01 +08:00
Moonchild
60b7d2e259
Issue #80 - De-unify netwerk/protocol/about
2020-05-23 06:51:57 +08:00