summaryrefslogtreecommitdiffstats
path: root/netwerk
Commit message (Collapse)AuthorAgeLines
* Add a nullcheck on pipelined HTTP connections' pushback.wolfbeast2018-11-20-0/+5
|
* #863 Part 1: Make sending of http upgrade-insecure-requests optionalwolfbeast2018-11-05-2/+11
| | | | Defaults to false if not configured.
* Backout opportunistic encryption changes.wolfbeast2018-11-04-11/+2
| | | | | | Apparently there is some functional and naming confusion here. Backing out to re-land after evaluation and possible changes. Tag #863.
* Make opportunistic encryption configurable.wolfbeast2018-11-04-2/+11
| | | | | | | This adds a pref "network.http.opportunistic-encryption" that controls whether we send an "Upgrade-Insecure-Requests : 1" header on document navigation or not. This patch modifies the platform network parts. Default for the platform is "true". Part 1 for #863
* WebRTC: Drop DataChannelListener on Destroy().wolfbeast2018-11-02-0/+1
|
* Remove Query/Ref from the directory listing URI.wolfbeast2018-11-01-5/+15
| | | | Port of Bug 1488061.
* Make HTTP/2 compressor more resilient to bad data.wolfbeast2018-11-01-3/+23
|
* backport m-c bug 1333172 - Avoid 1100 warnings by replacing ↵Gaming4JC2018-10-23-1/+3
| | | | NS_ENSURE_SUCCESS in nsNetUtilInlines.h:180
* backport m-c bug 1333174 - Don't use NS_ENSURE_SUCCESS at nsIOService:793Gaming4JC2018-10-22-1/+3
| | | | Log spam fix. Suppresses 1,100 instances of NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012 emitted from netwerk/base/nsIOService.cpp during linux64 debug testing. Backports [m-c 1333174](https://bugzilla.mozilla.org/show_bug.cgi?id=1333174).
* Remove telemetry from cache v1 service locking (part2).wolfbeast2018-10-01-81/+65
| | | | | | | - Fold Lock(TelemetryID) into Lock(); - Fold nsCacheServiceAutoLock(TelemetryID) into nsCacheServiceAutoLock(); Tag #21.
* Remove telemetry from cache v1 service locking (part1).wolfbeast2018-10-01-11/+2
| | | | Tag #21.
* Remove unused telemetry functions/variables.wolfbeast2018-10-01-27/+0
| | | | Tag #21.
* Remove cache I/O telemetry.wolfbeast2018-09-30-54/+0
| | | | Tag #21.
* Remove telemetry probes to get detailed disk cache hit rate.wolfbeast2018-09-30-195/+0
| | | | Tag #21.
* Remove telemetry probes for cache file system.wolfbeast2018-09-29-82/+0
|
* Clean up a number of unused variables.wolfbeast2018-09-29-49/+0
| | | | Tag #21.
* Remove telemetry to find optimal cache entry hash sizewolfbeast2018-09-29-111/+0
| | | | Tag #21.
* Merge pull request #791 from g4jc/session_supercookieMoonchild2018-09-27-67/+204
|\ | | | | Issue #792 - backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins
| * backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across ↵Gaming4JC2018-09-25-67/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | origins Potential attack: session supercookie. [Moz Notes](https://bugzilla.mozilla.org/show_bug.cgi?id=1334776#c5): "The problem is that for unknown header names we store the first one we see and then later we case-insensitively match against that name *globally*. That means you can track if a user agent has already seen a certain header name used (by using a different casing and observing whether it gets normalized). This would allow you to see if a user has used a sensitive service that uses custom header names, or allows you to track a user across sites, by teaching the browser about a certain header case once and then observing if different casings get normalized to that. What we should do instead is only store the casing for a header name for each header list and not globally. That way it only leaks where it's expected (and necessary) to leak." [Moz fix note](https://bugzilla.mozilla.org/show_bug.cgi?id=1334776#c8): "nsHttpAtom now holds the old nsHttpAtom and a string that is case sensitive (only for not standard headers). So nsHttpAtom holds a pointer to a header name. (header names are store on a static structure). This is how it used to be. I left that part the same but added a nsCString which holds a string that was used to resoled the header name. So when we parse headers we call ResolveHeader with a char*. If it is a new header name the char* will be stored in a HttpHeapAtom, nsHttpAtom::_val will point to HttpHeapAtom::value and the same strings will be stored in mLocalCaseSensitiveHeader. For the first resolve request they will be the same but for the following maybe not. At the end this nsHttpAtom will be stored in nsHttpHeaderArray. For all operation we will used the old char* except when we are returning it to a script using VisitHeaders."
* | Merge pull request #789 from g4jc/sha256_leakfixMoonchild2018-09-27-14/+8
|\ \ | | | | | | backport mozbug 1444532 - fix a leak in SHA256 in nsHttpConnectionInfo.cpp r=mayhemer
| * | backport mozbug 1444532 - fix a leak in SHA256 in nsHttpConnectionInfo.cpp ↵Gaming4JC2018-09-26-14/+8
| |/ | | | | | | | | | | | | | | r=mayhemer The original code (from bug 1200802) declared an XPCOM object as a static bare pointer, which for future reference is probably never the right thing to do. It might have worked if it was cleared before shutdown but it never was.
* / backport mozbug 1344613 - Avoid possibility of null pointer crash in ↵Gaming4JC2018-09-25-0/+1
|/ | | | nsSOCKSIOLayer.cpp r=mayhemer
* Add a null check in nsHttpTransaction::Close.wolfbeast2018-09-19-1/+3
| | | | This resolves #776.
* Remove all C++ telemetry autotimerswolfbeast2018-09-04-27/+8
|
* Remove all C++ Telemetry Accumulation calls.wolfbeast2018-09-03-835/+8
| | | | | This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
* Remove support for TLS session caches in TLSServerSocket.wolfbeast2018-09-01-26/+2
| | | | This resolves #738
* Refresh nsStringBundleService and nsHttpHandler when the browser locale is ↵JustOff2018-08-25-15/+25
| | | | changed
* Reinstate RC4 and mark 3DES weak.wolfbeast2018-08-17-0/+2
| | | | Tag #709
* Remove the const to fix the -Wignored-qualifiers warning with GCC 8trav902018-08-10-1/+1
|
* Issue #686: Un-deprecate the Application Cache APISpockMan022018-08-05-25/+0
|
* Fixed misleading console error message for multiple CORS headersjanekptacijarabaci2018-07-31-1/+1
|
* Make nsAtomicFileOutputStream::DoOpen() fail if the file is read-only.wolfbeast2018-07-10-0/+7
| | | | This means we don't leave behind prefs-<n>.js files when prefs.js is read-only.
* Remove pref confusion around cache v2wolfbeast2018-07-03-8/+1
| | | | | | - Renames browser.cache.use_new_backend to browser.cache.backend - Sets browser.cache.backend to 1 (use cache v2) - Removes browser.cache.use_new_backend_temp
* Fix cache v1 compression crash in nsCompressOutputStreamWrapper::Close()wolfbeast2018-07-03-0/+6
|
* Merge branch 'ported-upstream'wolfbeast2018-07-02-0/+4
|\
| * Cherry-pick user sctp rev SVN8789a6da02e2c7c03522bc6f275b302f6ef977fePale Moon2018-06-30-0/+4
| |
* | Remove SSL Error Reporting telemetrywolfbeast2018-06-29-55/+0
|/
* WebRTC: Nullcheck DataChannel SendPacket calls.wolfbeast2018-06-29-2/+5
|
* Merge pull request #540 from janekptacijarabaci/security_csp_script_redirect_1Moonchild2018-06-24-2/+38
|\ | | | | Fix CSP: Scripts with valid nonce should not be blocked if URL redirects
| * CSP: Support for "LoadInfo::GetLoadingContext" and ↵janekptacijarabaci2018-06-21-2/+38
| | | | | | | | | | | | "LoadInfo::GetLoadingContextXPCOM()" https://bugzilla.mozilla.org/show_bug.cgi?id=1439713 (partially)
* | Fix SSL status ambiguity.wolfbeast2018-06-20-3/+20
|/ | | | | - Adds CipherSuite string with the full suite - Changes CipherName to be the actual cipher name instead of the (erroneous) full suite like Firefox does.
* Sanity-check in nsStandardURL::Deserialize(). r=mayhemer, a=RyanVMValentin Gosu2018-06-07-1/+19
| | | | | | Also add test for faulty nsStandardURL deserialization. See Bug 1392739.
* Revert "Disable TLS 1.3 by default for now until our NSS can be updated to ↵wolfbeast2018-06-06-1/+1
| | | | | | the latest spec." This reverts commit 6c3f95480a191ce432ddfb2aa400a6d70c4884a8.
* Port our stricter cookie gating.wolfbeast2018-06-05-13/+25
| | | | This addresses the critical section of #449.
* Build - throws a warning: 'rv': unreferenced local variablejanekptacijarabaci2018-05-31-1/+0
| | | | PR #412
* Merge pull request #412 from g4jc/hsts_priming_removal_backportMoonchild2018-05-30-680/+6
|\ | | | | Remove support and tests for HSTS priming from the tree. Fixes #384
| * Remove support and tests for HSTS priming from the tree. Fixes #384Gaming4JC2018-05-26-680/+6
| |
* | Fix sec pref locations and enable HPKP checking by default.wolfbeast2018-05-29-0/+11
|/ | | | Some prefs were incorrectly in all.js (ocsp and hpkp)
* Bug 1314968 - Explicitly specify the AccessPoint interface name. r=kanruJan Steffens2018-05-16-1/+1
| | | | | | | | | | | | | | | | | The DBus specification allows passing an empty string as the interface to the org.freedesktop.DBus.Properties.GetAll call to get all properties, throwing away the namespace (interface) information. However, GDBus does not allow this. When NetworkManager moved to using GDBus, Firefox lost the ability to retrieve access points from NetworkManager. Since we're only interested in properties from the org.freedesktop.NetworkManager.AccessPoint interface, name it explicitly. This works with both the old and the new NetworkManager. MozReview-Commit-ID: Kc5HaYvwfRZ --HG-- extra : rebase_source : e1550d327e5a4ea05b8d35d98ef7b27c0add709b
* Revert incorrect UAO optimization that broke SSUAOJustOff2018-05-15-89/+4
|