Andrea Marchesini
359ae91eac
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Yoshi Huang
2ceecc22f5
Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug
2016-12-21 14:59:21 +08:00
Thinker K.F. Li
db61896b15
Bug 1319669 - Handle TaskTracer at STS thread and Cache thread. r=honzab
2016-12-09 14:09:00 -05:00
Ehsan Akhgari
1488007b30
Bug 1318206 - Remove some unused code for clearing app data; r=baku,mcmanus
2016-11-17 08:30:21 -05:00
Tim Huang
fc4cdaf096
Bug 1304219 - Part 1: Add a nsISpeculativeConnect.speculativeConnect2() interface which takes a principal as an additional argument. r=mayhemer, sr=mcmanus
...
--HG--
extra : rebase_source : 5fbcafd208b3136d168725b0a57e35bb70304f6a
extra : histedit_source : 2f9e0606a13b41deea3675d9435dcc7ef52f37c3
2016-10-24 12:18:25 +08:00
Andi-Bogdan Postelnicu
204bb10a86
Bug 1311669 - replace string literals containing escaped characters with raw string literals. r=valentin
...
MozReview-Commit-ID: 2e9j55eNTop
--HG--
extra : rebase_source : e633f6731ebabbca1a128fcc995b2dbf5d7c6a0b
2016-11-01 14:44:09 +02:00
Andi-Bogdan Postelnicu
5ca687e238
Bug 1311669 - use auto type specifier for variable declarations to improve code readability and maintainability. r=valentin
...
MozReview-Commit-ID: F5YO9pVK5O8
--HG--
extra : rebase_source : 7c8d22df9ec2ade3421d5f34229827f9c419b4d2
2016-11-01 14:44:09 +02:00
Valentin Gosu
e825b942e9
Bug 1307456 - Remove PackagedAppService/Verifier r=bagder
...
MozReview-Commit-ID: LgT7RQAbEf8
--HG--
extra : rebase_source : 25ac286f8b0b69dfb0c80966a78926751f955284
2016-10-31 15:21:14 +01:00
Kershaw Chang
02e0599818
Bug 1257782 - Limit the HTTP response header size, r=mcmanus
2016-10-24 09:01:00 +02:00
Francois Marier
54d1778d66
Bug 1307596 - Add a preference for trimming third-party referrers. r=dragana
...
MozReview-Commit-ID: EL2L4yMnwAi
--HG--
extra : rebase_source : 6046849abb11560b7073b7fe30f46297e45d16e9
2016-10-05 16:36:16 -07:00
Francois Marier
65552ada0a
Bug 1308725 - Remove network.http.sendSecureXSiteReferrer pref. r=dragana
...
MozReview-Commit-ID: LQgxMijXIaF
--HG--
extra : rebase_source : 62482337ee35edbdcd0cb76efd8614f295ea9099
2016-10-08 12:06:03 -07:00
Nicholas Hurley
8739dd3c4e
Bug 1297554 - Perform a gNeckoParent-ectomy r=billm,mcmanus
...
MozReview-Commit-ID: 7WQE8MhWlYr
--HG--
extra : rebase_source : 46545fa7485c8ba7ce4b0b4dc48a377b68a2ff80
2016-09-21 12:21:00 -07:00
Kate McKinley
c57d400961
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
--HG--
extra : rebase_source : 2ac6c93c49f2862fc0b9e595eb0598cd1ea4bedf
2016-09-27 11:27:00 -04:00
Nicholas Hurley
01c12cb1ef
Bug 1296280 (part 2) - Add pref for our SETTINGS_MAX_TABLE_SIZE. r=mcmanus
...
MozReview-Commit-ID: 44CYEvJOno0
--HG--
extra : rebase_source : 5317d25981bf83ab8cc9b921055cc9028a1d4470
2016-08-24 14:35:43 -07:00
Nicholas Nethercote
37301e25ad
Bug 1297300 - Add missing checks to GetSpec() calls in netwerk/. r=hurley,dragana.
...
--HG--
extra : rebase_source : 961a82fb6e723688837e5250f57121c14ca958cb
2016-08-26 16:40:57 +10:00
Jinank Jain
f2776091ea
Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger
...
--HG--
extra : rebase_source : b3e4c3e7c81799f2b1f3ec62ba3ff3b5d3adba27
2016-08-23 11:24:54 -04:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jonathan Hao
bc22b048bf
Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer
...
--HG--
extra : rebase_source : a3f95ed223d6658e78daba0268407b7be0b7e16f
2016-08-04 01:17:00 -04:00
Igor
175543fda8
Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj
2016-08-14 23:43:21 -07:00
Nicholas Hurley
c520425d6e
Bug 1248197 - Remove spdy/3.1 support. r=mcmanus
...
MozReview-Commit-ID: 1RgzxOY00Le
--HG--
extra : rebase_source : 6b37c087fcffcea7e5dd56d1e6ad5d099e8f5e49
2016-07-15 15:13:49 -07:00
Andrew Sutherland
4d5d691957
Bug 1274250 - Referrer host should be IDN encoded when trimmed by policy. r=valentin
...
Since bug 822869 the referrer trimming has relied on using prePath when
trimming resulting in non-ASCII hosts being passed through in UTF-8 (or
whatever their encoding was.)
Prior to this patch, the logic when trimming was to generate the referrer
string using prePath and possibly nsIURL.filePath, then re-derive the
nsIURI from that string.
Concerned about the cost of introducing asciiPrePath just for this consumer,
I opted to have the code just combine the scheme and asciiHostPort to
approximate the prior use of prePath. (userPass is explicitly cleared by
the code.)
Concerned about weirdness/loss of fidelity in the nsIURI, I replaced the
code that re-derived the URI from the spec string with manual clearing
of the parts of the URI/URL we were not including. This may not be the
right thing to do.
I modified the existing Gecko-specific test coverage of SetReferrerPolicy.
The existing web platform tests and referrer policy didn't seem concerned
with this case, and the bug is indeed localized to a very small segment
of Gecko code. Note that the userReferrerTrimmingPolicy=1 bug case can
only be triggered by explicit user preference setting and this is only
tested in test_referrer.js. userReferrerTrimmingPolicy=2 need not be
set by preference if REFERRER_POLICY_ORIGIN or
REFERRER_POLICY_ORIGIN_WHEN_XORIGIN (when cross origin) is used.
2016-07-13 11:08:53 -04:00
dimi
74a630e7b1
Bug 1258033 - Part 3: Set DNT header based on preference and tracking protection. r=mcmanus
...
MozReview-Commit-ID: JIOIomOvUhN
--HG--
extra : rebase_source : a3b7780ad1a3f71e18b4cdd15a40eb281b0e0c82
2016-06-02 10:23:46 +08:00
Jarda Snajdr
4948ad52d6
Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley
2016-06-01 12:29:21 -07:00
Dragana Damjanovic
7cf5152088
Bug 669259 - Expose original header received from a peer. r=mcmanus
2016-05-12 14:33:00 -04:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Dragana Damjanovic
485736ee81
Bug 1247982 - Lock request headers. r=mcmanus
2016-05-03 00:06:00 +02:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Valentin Gosu
c8a94789bb
Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh
...
* Rename SchedulingContext to RequestContext
* Move SetLoadGroupUserAgentOverride to nsHttpChannel
* Cache the userAgentOverride in RequestContext instead of LoadGroup
MozReview-Commit-ID: FQS9uSRR8kd
--HG--
rename : netwerk/base/SchedulingContextService.cpp => netwerk/base/RequestContextService.cpp
rename : netwerk/base/SchedulingContextService.h => netwerk/base/RequestContextService.h
rename : netwerk/base/nsISchedulingContext.idl => netwerk/base/nsIRequestContext.idl
2016-04-21 16:59:17 +02:00
Michael Kaply
e9bc8bf7d5
Bug 1264076 - Allow customized device string for user agent on Fennec; r=mcmanus
2016-04-13 20:46:13 -05:00
Michael Kaply
c1e1c769af
Bug 1262591; Need to put unused function in ANDROID #ifdef; r=bustage
2016-04-11 14:06:35 -05:00
Michael Kaply
aecd563cf7
Bug 1262591 - Add ability to add device ID to user agent for Fennec; r=jduell
...
--HG--
extra : rebase_source : 6abc6abd4a5fd41c2c274647b522df8798d30fc7
2016-04-11 13:49:53 -05:00
Nicholas Hurley
ccbf76c675
Bug 1260498 - Make test_rel_preconnect work in e10s mode. r=mcmanus
...
MozReview-Commit-ID: 3PGA2N73foH
--HG--
extra : rebase_source : b3837c38a8bf1847d207ebfc2d3ce60ddf826a01
2016-03-28 16:43:01 -07:00
Franziskus Kiefer
156284d9a8
Bug 1256248 - allow disabling content-signatures for about:newtab on certain channels, r=mayhemer
2016-03-15 16:12:21 +01:00
Daniel Holbert
447b3ae749
Bug 1249450 part 2: Convert some nsIURI SetScheme("https") calls to use NS_GetSecureUpgradedURI instead. r=mcmanus
2016-03-10 15:23:46 -08:00
Shih-Chiang Chien
2624c1bfd1
Bug 1231416 - fix Mulet UA string generation rule. r=fabrice.
...
MozReview-Commit-ID: 69fIxw0FO9l
--HG--
extra : rebase_source : c3720d20001096b1775cdade418de27983720c40
2016-02-16 18:54:12 +08:00
Dragana Damjanovic dd.mozilla@gmail.com
483a342274
Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus
...
--HG--
extra : rebase_source : 762aa4b8f1e03c7422cd9416dfb724ac8926820d
2016-02-04 04:14:00 +01:00
Patrick McManus
cbb7790bab
Bug 1246778 - dont loop in nshttpconnection during shutdown r=dragana
...
--HG--
extra : rebase_source : e3a787fbb6a188d45530ab77f914cfeb4bdd9777
2016-02-08 17:21:43 -05:00
Sebastian Hengst
3de13c67e0
Backed out changeset 28188ac5d84a (bug 1242755) for XPCshell failures on Linux x64. r=backout
2016-02-08 13:17:43 +01:00
Dragana Damjanovic dd.mozilla@gmail.com
8939aa6688
Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus
2016-02-04 04:14:00 +01:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Masatoshi Kimura
e7df5bd97a
Bug 1242926 - Increase the max retry attempt number. r=mcmanus
2016-01-28 05:44:48 +09:00
Patrick McManus
d1286944d6
Bug 1233774 - fix Leak EventTokenBucket on shutdown r=dragana
2016-01-21 12:40:15 -05:00
Dragana Damjanovic
198debd13b
Bug 1238910 - Rework shutdown necko. r=mcmanus
2016-01-14 04:42:00 -05:00
Bogdan Postelnicu
43ffa675aa
Bug 1226526 - NS_ENSURE_ARG_POINTER on result to remove warning added by scan-build. r=mcmanus
...
--HG--
extra : rebase_source : 73ee1126287bbc2865568a074678564fd3372032
2016-01-13 11:41:04 +02:00
Dragana Damjanovic
bdee941ae5
Bug 1236277 - Retry all connections not just the reused one. r=mcmanus
2016-01-11 05:20:00 +01:00
Patrick McManus
90c978fb27
Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu
2015-12-23 11:43:41 -05:00
Patrick McManus
ae19b61b33
Bug 513129 - Dont reuse connections after security prefs change r=hurley
2015-12-17 17:37:53 -05:00
Nathan Froyd
c381a6b86c
Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
...
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Nathan Froyd
0d181baf2d
Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
...
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places. For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00