Commit Graph

763 Commits

Author SHA1 Message Date
Iris Hsiao
0dff672b64 Backed out changeset 5593f1b533da (bug 1328121) for bustage 2017-01-05 11:33:51 -05:00
Patrick McManus
8ca6ec2aed Bug 1328121 - hold ref on mlistener when calling onstartrequest r=smaug r=jduell 2017-01-03 16:15:23 -05:00
Ehsan Akhgari
bbba4de2e9 Bug 1170190 - Part 3: Add tests for the e10s case too; r=mayhemer 2016-12-23 14:40:11 -05:00
Patrick McManus
10262ed43c Bug 1324872 - quic change from alt-protocol to alt-svc r=hurley 2016-12-20 15:38:45 -05:00
Ehsan Akhgari
584975d4df Bug 1324053 - Ensure that speculative connect and DNS prefetching aren't disabled when annotating tracking channels; r=mayhemer 2016-12-19 10:52:55 -05:00
Kris Maglione
11c7320128 Bug 1321528: Part 1 - Support suspending requests when processing response headers. r=honzab
MozReview-Commit-ID: 8ZtbvqLDksO
2016-12-16 13:45:40 -08:00
Honza Bambas
a7b59f7374 Bug 1318759 - Properly query final class in HttpChannelParent::OnStartRequest to prevent evil static_cast, r=jduell 2016-12-09 05:52:00 +01:00
Thinker K.F. Li
b11f188442 Bug 1319669 - Handle TaskTracer at STS thread and Cache thread. r=honzab 2016-12-09 14:09:00 -05:00
Patrick McManus
1889ab84d2 Bug 1321783 - Make updater be networking conservative r=dkeeler r=rstrong r=dragana 2016-12-02 16:49:23 -05:00
Kershaw Chang
d1a656deb1 Bug 1141814 - Part 2: Lower the priority of channel loading tracking resource. r=honzab 2016-11-30 23:13:00 -05:00
Kirk Steuber
845ef3d6da Bug 1319571 - Change the output format of nsUrlClassifierDBService::ClassifyLocalWithTables from comma separated string to an array of strings r=francois
MozReview-Commit-ID: TXln2EQnZS
2016-11-29 13:04:43 -08:00
Carsten "Tomcat" Book
01b5098830 merge mozilla-inbound to mozilla-central a=merge 2016-11-29 11:39:49 +01:00
Carsten "Tomcat" Book
3eaae7ba4b Backed out changeset 3472d9d9dd47 (bug 1313595) for hopefully reducing crashes 2016-11-29 10:25:07 +01:00
Honza Bambas
c64aa7d6bd Bug 1309438 - Don't reuse sticky connection after authentication failure. r=jduell 2016-11-25 03:33:00 -05:00
Honza Bambas
c9c3714ca2 Bug 1300642 - Set default UA request header before on-opening-request notification to allow its override. r=mcmanus 2016-11-16 08:57:00 -05:00
Kate McKinley
4ecb050912 Bug 1313595 Reduce timeout for HSTS priming channels r=mayhemer
Default is 3 seconds

MozReview-Commit-ID: 47hoaTEL9hV
2016-11-08 17:49:39 +09:00
Phil Ringnalda
54a37ccac0 Backed out changeset a8be4ebc85cf (bug 1313595) for permaorange unexpected assertion in test_referrerdirective.html, a=backout
MozReview-Commit-ID: GxBqDrHHg7z
2016-11-14 18:30:58 -08:00
Kate McKinley
20f3987424 Bug 1313595 Reduce timeout for HSTS priming channels r=mayhemer
Default is 3 seconds

MozReview-Commit-ID: 47hoaTEL9hV
2016-11-08 17:49:39 +09:00
Kate McKinley
836bc83d19 Bug 1313596 - Increase HSTS Priming default cache timeout. r=mayhemer
MozReview-Commit-ID: 6sHuB4wIEu4
2016-11-10 00:30:00 -05:00
Valentin Gosu
26420618ae Bug 1313095 - Set different limits for cache queue size telemetry for priority and non-priority requests r=michal
MozReview-Commit-ID: 3BzAa1NOAKc
2016-11-10 17:13:10 +01:00
Valentin Gosu
7fedf4b525 Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal
MozReview-Commit-ID: C6kMSPw8gxv
* * *
[mq]: bug1313095-telemetry-reval.patch

MozReview-Commit-ID: 8jwMgq0cx3Z
2016-11-10 16:14:34 +01:00
Dragana Damjanovic
21db30916f Bug 1313923 - Drop reference to the cache pump after a cache partial read finishes. r=mayhemer 2016-11-03 01:48:00 +01:00
Dragana Damjanovic
a654de8353 Bug 1259305 - If nsHttpChannel has been suspended before divert to parent starts, suspend message diversion. r=mayhemer 2016-11-03 03:29:00 +01:00
Valentin Gosu
a416d1ea74 Bug 1307456 - Remove PackagedAppService/Verifier r=bagder
MozReview-Commit-ID: LgT7RQAbEf8
2016-10-31 15:21:14 +01:00
Phil Ringnalda
9da1dbbb7c Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Honza Bambas
7238041612 Bug 1311720 - Stick HTTP connection to its channel when NTLM/Negotiate auth challenge is received more early, r=mcmanus 2016-10-21 09:49:00 +02:00
Cykesiopka
5d7434747c Bug 1312158 - Stop using Scoped.h NSS types under netwerk/. r=nwgh
Scoped.h is deprecated.

MozReview-Commit-ID: AKfsw0lqTfw
2016-10-23 13:27:33 +08:00
Valentin Gosu
69e93335ce Bug 1307491 - (Part 1) Remove support for per-app-offline in netwerk/ [nukeb2g] r=bagder
* * *
Bug 1307491 - Remove support for per-app-offline [nukeb2g] r=bagder

MozReview-Commit-ID: FoweWBv9QyE
2016-10-17 03:54:46 +02:00
Tim Huang
91e4a3505d Bug 1277803 - Part 4 : Make the NS_CompareLoadInfoAndLoadContext() skiping test if the request is the favicon loading from the XUL image. r=honzab 2016-10-13 15:43:59 +08:00
Wes Kocher
85edded572 Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Tim Huang
b35f331a1c Bug 1277803 - Part 4 : Make the NS_CompareLoadInfoAndLoadContext() skiping test if the request is the favicon loading from the XUL image. r=honzab 2016-10-12 17:32:08 +08:00
Christoph Kerschbaumer
50be3aa99d Bug 1302539 - X-Content-Type-Options: nosniff should not apply to images (temporarily). r=dveditz 2016-09-30 09:38:44 +02:00
Kate McKinley
90c8afbeac Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

MozReview-Commit-ID: ES1JruCtDdX
2016-09-27 11:27:00 -04:00
Valentin Gosu
c6d15872bc Bug 1231565 - (Part 3) Make alt-data responses report the correct content length r=michal
MozReview-Commit-ID: DvQP7NB4SqW
2016-09-27 10:26:00 +02:00
Valentin Gosu
02eefbf4c3 Bug 1231565 - (Part 2) Allow storing alternate data in the HTTP cache r=honzab
* Add PAltDataOutputStream.ipdl to be able to open an OutputStream to the cache entry in the child process
* AltDataOutputStreamChild/Parent are Main Thread only for now.
* Adds methods for reading and writing alt-data to nsICacheInfoChannel.idl
* Keep a ref of the cache entry after OnStopRequest in case the consumer tries to open the alt-data output stream

MozReview-Commit-ID: jlraDI97Hg
2016-04-11 05:17:02 +02:00
Patrick McManus
1996d5e7ac Bug 1302488 - Alt-Svc Hard Refresh Race r=hurley 2016-09-13 13:24:19 -04:00
Patrick McManus
414e1bab08 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Nicholas Nethercote
7b5df070f0 Bug 1297300 - Add missing checks to GetSpec() calls in netwerk/. r=hurley,dragana. 2016-08-26 16:40:57 +10:00
Christoph Kerschbaumer
4fb6a6e8af Bug 1300891 - Rename SCRIPT_BLOCK_WRONG_MIME to avoid confusing the telemetry probe. r=gfritzsche 2016-09-08 09:29:17 +02:00
Tom Schuster
adb8aa1ca3 Bug 1299267 - Add additonal telemetry types. r=ckerschb 2016-09-05 20:02:52 +02:00
Tom Schuster
eac31ec067 Bug 1299267 - Block additional wrong mime types for scripts. r=ckerschb 2016-09-05 20:02:52 +02:00
Jonathan Hao
c7a4c048ab Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer 2016-08-04 01:17:00 -04:00
Christoph Kerschbaumer
7c916ee147 Bug 1288361 - Return a network error for requests whose type is script and response has a MIME type that starts with image. r=dveditz 2016-08-22 08:55:35 +02:00
Honza Bambas
f1b9832b13 Bug 1293765 - Don't release upload stream in HTTP channel until authentication loop is done. r=valentin 2016-08-17 07:08:00 -04:00
Chris Peterson
d4a6fed530 Bug 1295085 - Replace PR_snprintf and s[n]printf calls with SprintfLiteral in netwerk/. r=jduell 2016-08-15 01:09:06 -07:00
Yoshi Huang
932b2340e4 Bug 1292450 - Check mPrivateBrowsingId is correct in LoadInfo and LoadContext. r=smaug, ehsan
Make sure the mPrivateBrowsingId of Origin Attributes is consistent
between LoadInfo and LoadContext.

For chrome docshell, its mPrivateBrowsingId remains 0 even if its
UserPrivateBrowsing() is true (bug 1278664). So we sync the
mPrivateBrowsingId field in LoadInfo in the same way.
2016-08-15 19:03:24 +08:00
Christoph Kerschbaumer
33d29aadfc Bug 1294411 - Update XCTO: nosniff implementation to accept images which content type starts with 'image/'. r=dveditz 2016-08-11 14:49:02 +02:00
Nicholas Nethercote
1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Decky Coss
f652fbf31f Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer
MozReview-Commit-ID: 7ZNwvnTMCzo
2016-05-31 12:42:15 -04:00
Iris Hsiao
c4499a7d59 Backed out changeset 8dc198cd46ff (bug 1246540) for Mochitest failures 2016-07-27 13:14:07 +08:00