Moonchild
6b3ab70997
[network] Fix typo in nsSocketTransport2.cpp
...
Follow-up to 7322bc0e9df42bd43d84ec9be22b00c47a09f3d7
2022-05-31 09:42:37 +08:00
Moonchild
7f3a7225af
[network] SocketTransport2 cleanup
2022-05-31 09:40:14 +08:00
Brian Smith
13fcc4a046
Issue #1829 - Revert "Issue #1751 "
2022-05-04 09:40:24 +08:00
roytam1
9f078ac580
[network] fix build
2022-04-28 11:40:11 +08:00
Moonchild
eaf9e756a0
Issue #21 - Remove remaining telemetry structs, callers and flags.
2022-04-28 10:33:44 +08:00
Moonchild
8d800b1cb0
Issue #21 - Remove Telemetry plumbing and fix build.
...
Note this won't give working applications. Requires FE changes and
additional js module changes (next part).
2022-04-28 10:25:48 +08:00
Moonchild
d4eac725fd
Issue #1877 - Resolve RELEASE_OR_BETA conditionals.
2022-04-21 21:46:47 +08:00
trav90
908d58ab7b
Issue #1804 - Fix building with GCC 11
2022-04-19 22:05:31 +08:00
roytam1
94cafe3a4a
Revert "[network] SocketTransport2 cleanup"
...
This reverts commit b924810a3e .
2022-03-28 22:56:47 +08:00
roytam1
1d6c0f2e87
Revert "[network] Improve thread-safety of cache entry handling."
...
This reverts commit 9299c2e2ea .
2022-03-28 22:56:14 +08:00
Moonchild
e45fbf91ce
[Network] Add a socket thread check and early exit for corner cases.
2022-03-22 23:24:09 +08:00
Moonchild
398cb98445
[Network] Only call nsWSAdmissionManager::ConnectNext on the main thread.
2022-03-22 23:21:52 +08:00
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