Commit Graph

61 Commits

Author SHA1 Message Date
wolfbeast 0186023f4a Handle missing base64 challenge in NegotiateAuth and NTLMAuth. 2020-01-09 22:35:03 +01:00
Gaming4JC 2f4fdced51 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-16 19:17:54 -05:00
wolfbeast 7f5d38150d Issue #1275 - Add pref to disable warning prompts for SuperfluousAuth
and AutomaticAuth, and default to not prompting.

This resolves #1275.
2019-11-07 16:52:33 +01:00
wolfbeast cb762d71af Add null check in Http2Session::RecvAltSvc 2019-10-23 10:50:55 +02:00
win7-7 deae241f5e 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-08 16:44:51 +03:00
wolfbeast 17a4b4f6db Implement a threadsafe & revised version of http2PushedStream.
This re-applies the patch for this with added typename declaration.
2019-07-22 04:53:44 +02:00
wolfbeast 91de3341df Revert "Implement a threadsafe & revised version of http2PushedStream."
Backed out because of gcc build failures.

This reverts commit 66fae1d810.
2019-07-21 21:31:04 +02:00
Honza Bambas b7807cd00b Bug 1548822. 2019-07-20 15:36:09 +02:00
wolfbeast aae0bfd5b8 Check port safety for AltSvc 2019-07-20 13:59:45 +02:00
Honza Bambas b0a8ed2157 Bug 1550498. 2019-07-19 17:28:56 +02:00
wolfbeast 66fae1d810 Implement a threadsafe & revised version of http2PushedStream. 2019-07-18 17:52:46 +02:00
wolfbeast 45cb5ab729 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-15 14:13:14 +02:00
wolfbeast a401325185 Return proper error if the nss layer encounters an error on the http
tunnel.
2019-03-22 20:11:09 +01:00
wolfbeast 3403d5f049 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-22 18:41:22 +01:00
wolfbeast d38ddd92e1 Part 1: network component changes. 2019-03-07 12:45:54 +01:00
adeshkp 6335404642 Make AllowExperiments return false as it is not useful without telemetry 2019-01-14 09:37:50 -05:00
adeshkp 5335681cd2 Telemetry: Remove stubs and related code 2019-01-12 06:20:31 -05:00
wolfbeast fea96b4527 Do not report resource-timing subdocument loads triggered by that subdocument. 2018-12-14 12:50:01 +01:00
wolfbeast 2c0a30185f Add a nullcheck on pipelined HTTP connections' pushback. 2018-11-20 09:17:31 +01:00
wolfbeast 512f78874a #863 Part 1: Make sending of http upgrade-insecure-requests optional
Defaults to false if not configured.
2018-11-05 15:48:49 +01:00
wolfbeast 79487a1a05 Backout opportunistic encryption changes.
Apparently there is some functional and naming confusion here.
Backing out to re-land after evaluation and possible changes.
Tag #863.
2018-11-04 23:39:37 +01:00
wolfbeast 4a188c7b99 Make opportunistic encryption configurable.
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
2018-11-04 16:05:27 +01:00
wolfbeast a2a8c71d77 Make HTTP/2 compressor more resilient to bad data. 2018-11-01 07:31:23 +01:00
Moonchild b92dbaf6a1 Merge pull request #791 from g4jc/session_supercookie
Issue #792 - backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins
2018-09-27 00:59:51 +02:00
Gaming4JC 475a210a33 backport mozbug 1444532 - fix a leak in SHA256 in nsHttpConnectionInfo.cpp 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.
2018-09-26 18:29:45 -04:00
Gaming4JC c5c9445e3a backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across 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."
2018-09-25 23:03:28 -04:00
wolfbeast 4b90811978 Add a null check in nsHttpTransaction::Close.
This resolves #776.
2018-09-19 15:45:27 +02:00
wolfbeast ab961aeb54 Remove all C++ Telemetry Accumulation calls.
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.
2018-09-03 10:11:38 +02:00
JustOff 02211f8448 Refresh nsStringBundleService and nsHttpHandler when the browser locale is changed 2018-08-25 17:50:02 +03:00
SpockMan02 e5064882f1 Issue #686: Un-deprecate the Application Cache API 2018-08-05 04:08:37 -07:00
janekptacijarabaci 9e91804a7a Fixed misleading console error message for multiple CORS headers 2018-07-31 07:02:39 +02:00
wolfbeast 535e9399e6 Remove SSL Error Reporting telemetry 2018-06-29 17:40:01 +02:00
janekptacijarabaci b2cc2539f6 Build - throws a warning: 'rv': unreferenced local variable
PR #412
2018-05-31 13:15:08 +02:00
Gaming4JC bd85173562 Remove support and tests for HSTS priming from the tree. Fixes #384 2018-05-26 15:42:45 -04:00
JustOff 1c9d6206cb Revert incorrect UAO optimization that broke SSUAO 2018-05-15 00:32:07 +03:00
wolfbeast e16bcd08aa Remove MOZ_WIDGET_GONK [2/2]
Tag #288
2018-05-13 00:08:52 +02:00
janekptacijarabaci e040ed9250 moebius#158: The Performance Resource Timing (added support for "workerStart")
https://github.com/MoonchildProductions/moebius/pull/158
2018-04-29 11:49:50 +02:00
trav90 92e0c93288 Fix GCC -Wreorder warnings. 2018-04-15 14:16:41 -05:00
janekptacijarabaci 3968897fb4 Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec 2018-04-03 19:50:55 +02:00
Ben Kelly 2d689a1bc3 Bug 1440775 - Make fetch API force-cache and only-if-cached use VALIDATE_NEVER instead of LOAD_FROM_CACHE. r=mayhemer, a=RyanVM
--HG--
extra : source : 60fb09de57ec145923da102f856399d3323f632b
extra : amend_source : b42db87defcc5615773cfa4659af9ff5b9cd4b72
extra : intermediate-source : 599641c7992def734cb352d9413aa51bf0e9793f
extra : histedit_source : 1d42c837225bdf000d3a68bef46a862be87d4044
2018-03-14 12:33:47 +01:00
Valentin Gosu 879619491f Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race. r=bagder, a=ritu
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : rebase_source : d6e6886402d1e0b0afed23c25a9fb18d8ca29ad6
extra : intermediate-source : cfc9afe916091e6449f7d748991e2a19187dc817
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
2018-03-14 11:03:59 +01:00
Valentin Gosu 8f7686bd7d Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic. r=bagder, a=ritu
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : rebase_source : 2357ab0b9d1d693dac9e5f4f16f34f370c6591b5
extra : intermediate-source : 48b9f6671588c3c2b8d3b4ea6ba1267f5e297f83
extra : source : bd315ae86709c3459a3dbf0778022ff3b1908723
2018-03-14 11:03:06 +01:00
Nicholas Hurley 756fb3e145 Bug 1416529. r=mcmanus, a=ritu
MozReview-Commit-ID: CD1l5vLB4yy

--HG--
extra : rebase_source : d74f8ca96dab4e0d25d79948fcddbf8dab98bb36
2018-03-14 10:59:09 +01:00
janekptacijarabaci 644e9db109 DevTools - network - implement the secureConnectionStart property for the PerformanceTiming
https://github.com/MoonchildProductions/moebius/pull/116
("/testing" and "/toolkit" in in the previous commit)
2018-03-01 11:52:50 +01:00
wolfbeast 71119b4926 Merge branch 'security_tls_1-3_1' into TLS-1.3 2018-02-23 12:44:25 +01:00
wolfbeast b884cfd05e Merge branch '_native_52ESR_http_events_1' into TLS-1.3 2018-02-23 12:41:54 +01:00
wolfbeast 2e07719b30 Identify as Goanna + set Goanna platform version. 2018-02-21 21:42:05 +01:00
wolfbeast 12640bf26e Read Firefox UA compatmode from a pref instead of hard-coded.
In case of a missing pref, a hard-coded value is still used from the ctor.
2018-02-21 20:14:43 +01:00
wolfbeast ef9aeb6a08 Update UA construction. 2018-02-21 20:09:30 +01:00
janekptacijarabaci 83c4b04a70 Two (and more) extensions together - http resume - basilisk crashes 2018-02-18 10:30:15 +01:00