Commit graph

162 commits

Author SHA1 Message Date
Moonchild
9ec0ef7614 [WebRTC] Port some upstream sctp fixes
- add SCTP auth token boundary check.
- turn off SCTP auth and address reconfiguration.
2020-05-09 06:56:38 +08:00
wolfbeast
4337a5f1a8 Issue #1505 - Part 3: Make native mode actually native again. 2020-04-11 09:40:32 +08:00
wolfbeast
11f8f80826 Issue #1505 - Part 2: Store application build ID in nsHttpHandler
Since we're needing to reuse this several times, it makes it simpler to
just get it once in init and storing it.
2020-04-11 09:40:31 +08:00
wolfbeast
41a3028a67 Issue #1505 - Rebuild application version string
To respond dynamically to the pref change, the mAppVersion string needs
to be rebuilt.
Includes some minor improvements for corner cases and removes leftover
b2g junk.
2020-04-11 09:40:30 +08:00
wolfbeast
052b2e70a3 Issue #1280 - Un-bust certerror pages and ForgetAboutSite 2020-04-03 09:30:07 +08:00
wolfbeast
cf5f069080 Issue #1280 - Part 1: Remove HPKP components.
This also removes leftover plumbing for storing preload information
in SiteSecurityService since no service still uses it.
2020-04-03 09:27:11 +08:00
JustOff
6aa52af7ac Issue #1473 - Fix building %OS_SLICE% on non-Windows platforms 2020-04-03 09:26:52 +08:00
wolfbeast
7a9ab66aed [network] Cherry-pick various sctp lib upstream fixes. 2020-03-20 08:58:31 +08:00
JustOff
4f0a0c4606 Issue #1482 - Give dynamic SSUAO rules priority over static ones 2020-03-20 08:58:11 +08:00
JustOff
efb161c255 Issue #1053 - Remove no longer used function and modules from UserAgentUpdates.jsm 2020-03-13 10:24:01 +08:00
JustOff
0333159186 Issue #1473 - Add %OS_SLICE% macro to SSUAO to refine OS info 2020-03-13 10:23:59 +08:00
wolfbeast
577055a7e5 Issue #1474 - Prevent the cp detection from starting if preffed off.
When setting up connectivity, e.g. with new network detection, the pref
wouldn't be checked (or honored), resulting in spurious startup calls
despite being preffed off. This fixes that.

Resolves #1474
2020-03-13 10:23:25 +08:00
Matt A. Tobin
bb8b180863 Issue #1053 - Remove android support from netwerk/protocol/http/nsHttpHandler.cpp 2020-02-27 07:31:16 +08:00
Matt A. Tobin
93a435ae22 Issue #1053 - Remove android support from netwerk 2020-02-27 07:31:14 +08:00
wolfbeast
47cc63bc6c [Network] Bump http channel default Firefox CompatMode init value. 2020-02-14 22:46:00 +08:00
Matt A. Tobin
146d0aa2d2 Issue #1395 - Remove FlyWeb Service 2020-02-08 07:11:37 +08:00
New Tobin Paradigm
57809c759f Fix preprocessor directive in UserAgentUpdates.jsm 2020-02-07 07:56:01 +08:00
Matt A. Tobin
ef27cc7fd0 Issue #65 - Remove AppConstants from netwerk/ 2020-02-07 07:52:32 +08:00
athenian200
0fbfd09291 Fix whitespace. 2020-01-31 07:34:08 +08:00
athenian200
bd714bc690 Issue #1349 - Stop 2xx FTP responses from causing browser to hang.
LIST and RETR still appear to work as intended on ftp:// URLs after my changes. I wasn't able to test STOR because the browser doesn't appear to support FTP uploads at this time (although our FTP implementation appears perfectly capable of doing an FTP upload.)

If I understood the issue correctly, though, what we're doing is ensuring that we receive a preliminary 100 response from the FTP server for a given action before jumping to the 200 code describing what we do if the action was completed. Even though it makes no logical sense for a server to say an action was completed before it was initiated, someone could write a really annoying FTP server that takes advantage of this fact to crash the browser if they wanted.
2020-01-31 07:34:06 +08:00
wolfbeast
c8f73fb28e No issue - Fix unsafe http methods on HTTP/2 with TLSv1.3 0RTT. 2020-01-24 09:10:40 +08:00
wolfbeast
d43f7275d0 Handle missing base64 challenge in NegotiateAuth and NTLMAuth. 2020-01-10 17:07:02 +08:00
Valentin Gosu
38439fd244 Use mutex in PACResolver when accessing mRequest from multiple threads. 2019-12-06 22:46:44 +08:00
Gaming4JC
eb555aaa47 Issue #1288 - Use NS_DECL_THREADSAFE_ISUPPORTS in HttpBaseChannel.cpp
Fixes a regression in Part 1b which caused HTML5 parser to fall off the main thread.
2019-11-22 10:45:19 +08:00
wolfbeast
e7ab106190 Issue #1289 - Part 1: Add a pref to disable HPKP header processing. 2019-11-15 14:24:03 +08:00
wolfbeast
0d109e3c9f Issue #1288 - Part 1b: Rewrite nsHTTPCompressConv.
This also includes formatting changes.
2019-11-15 14:23:55 +08:00
wolfbeast
729ee0f18a Issue #1288 - Part 1a: Update brotli to 1.0.7
This also reorganizes the exports in the build system to use `brotli/`
as include directory.
2019-11-15 14:23:54 +08:00
wolfbeast
fe92ae641a Issue #1275 - Add pref to disable warning prompts for SuperfluousAuth
and AutomaticAuth, and default to not prompting.

This resolves #1275.
2019-11-08 09:38:17 +08:00
wolfbeast
96cb9e1c39 Add null check in Http2Session::RecvAltSvc 2019-10-25 12:00:14 +08:00
wolfbeast
06634f6495 Issue #1134: Reinstate postDataString for about:home searches. 2019-08-17 13:31:01 +08:00
win7-7
e6f376f5ef Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
2019-08-10 06:26:08 +08:00
wolfbeast
8346f7c082 Implement a threadsafe & revised version of http2PushedStream.
This re-applies the patch for this with added typename declaration.
2019-07-22 19:56:01 +08:00
wolfbeast
6666e772e0 Revert "Implement a threadsafe & revised version of http2PushedStream."
Backed out because of gcc build failures.

This reverts commit 66fae1d81013a2321e7d607a426f834a01b847ce.
2019-07-22 19:55:58 +08:00
wolfbeast
a10e2214ee Do not allow the ^ character to appear in the hostname. 2019-07-22 19:45:20 +08:00
Honza Bambas
2b7e8039f2 Bug 1548822. 2019-07-22 19:45:14 +08:00
wolfbeast
64191e15cb Treat all file: URIs as having a unique origin.
This prevents cross-file access from files loaded into the browser from
the local file system, further restricting the origin policy of file:
URIs.

Added a pref to control this behavior for local file access if required
for certain applications, since this change might break using the
browser to run applications on the local file system that require
access to local files.
2019-07-22 19:45:02 +08:00
wolfbeast
4e15e1fec0 Check port safety for AltSvc 2019-07-22 19:44:59 +08:00
Honza Bambas
31b1431ea1 Bug 1550498. 2019-07-20 06:25:25 +08:00
wolfbeast
28e15ed590 Implement a threadsafe & revised version of http2PushedStream. 2019-07-19 10:04:43 +08:00
wolfbeast
8ad0b46284 Block http auth prompt for cross-origin image subresources by default.
Still allow this to be bypassed with a pref for those really rare corner
cases where images are loaded cross-origin by design and the session
hasn't been/can't be authenticated ahead of time.
2019-07-19 10:03:21 +08:00
wolfbeast
797f3eae35 Add preference to allow the loading of FTP subresources for corner cases 2019-07-19 10:03:17 +08:00
Matt A. Tobin
cc3e413793 Remove deprecated appending of #-moz-resolution from Pale Moon and left over from nsMediaFragmentURIParser.h
This also magically makes Aero Peek work properly with Pale Moon thus:

Resolves #809
2019-05-17 22:16:24 +08:00
Ascrod
3da26ba9e3 Issue #991 Part 4: Network and URILoader 2019-04-27 08:21:53 +08:00
wolfbeast
83ab16d267 Remove some BEOS 1st party code leftovers. 2019-04-19 09:34:04 +08:00
wolfbeast
fdc5d93422 Remove some HPUX leftovers.
Resolves #185
2019-04-04 20:26:43 +08:00
wolfbeast
f6f11db550 WebRTC: Add explicit mutex on callback receiver for cases it's not
already locked.
2019-03-29 22:22:05 +08:00
wolfbeast
e9a87c9cb0 Convert UI-dictating FTP errors to console errors. 2019-03-29 22:21:48 +08:00
wolfbeast
0363b2d358 Return proper error if the nss layer encounters an error on the http
tunnel.
2019-03-23 06:45:32 +08:00
wolfbeast
ad188bf3c0 Close the transaction if PR_Read/PR_Write failed.
When PR_Read/PR_White returns -1, we have to use ErrorAccordingToNSPR
to get the error code.
We need to close the transaction if a real error happens.
2019-03-23 06:44:27 +08:00
wolfbeast
f8d473c3c9 Remove unused SSL errorReporting prefs
Resolves #1003.
2019-03-16 07:02:44 +08:00