Commit Graph

396 Commits

Author SHA1 Message Date
Shih-Chiang Chien
46c7569f25 Bug 1382380 - ensure mListener/mListenerContext/mCompressListener is released on main thread. r=dragana
During abnormal shutdown, HttpChannelChild might be released on STS thread. However, not all stream listener
that attached to the HTTP channel is thread-safe to be released on non-main thread. By following
HttpBaseChannel::ReleaseListener, we should ensure mListener/mListenerContext/mCompressListener is released on
main thread for both normal channel close and abnormal shutdown scenario.

MozReview-Commit-ID: Gqbk7dUOIcI
2017-07-21 09:51:04 +08:00
Patrick McManus
f75e6f88c2 Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza
Implements PerformanceTiming, nsITimedChannel, and devtools 'tls setup'

Also captures telemetry on this as we do for all other attributes of timedChannel

Also propogates some null transaction timings onto first real
transaction of a connection

MozReview-Commit-ID: 47TQJYVHnKC
2017-07-10 15:01:35 -04:00
Bill McCloskey
ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Honza Bambas
d9b2cc5343 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz, r=mikedeboer 2017-05-30 18:07:59 +02:00
Ben Kelly
88a0dc57fc Bug 1363848 P2 Do not intercept internal redirects regardless of LOAD_BYPASS_SERVICE_WORKER flag. r=dragana 2017-06-15 07:52:41 -07:00
Ben Kelly
3d40621b7f Bug 1363848 P1 Record the last redirect flags on the http channel. r=dragana 2017-06-15 07:52:41 -07:00
Kershaw Chang
b7801b9adb Bug 1360581 - Part3: Add setTopWindowURIIfUnknown in nsIHttpChannelInternal, r=mayhemer
Since the uri classifier needs topWindowURI to decide whether or not to enable channel annotation, we have to allow to change this attribute in js for passing the test.
2017-06-13 01:21:00 +02:00
Honza Bambas
de4216109d Bug 1370340 - Carry TopLevelOuterContentWindowId to redirected HTTP channels. r=mcmanus 2017-06-10 03:47:00 -04:00
Shih-Chiang Chien
c4eb7112a1 Bug 1015466 - Part 0, fix warning/error covered by unified build. r=mayhemer
MozReview-Commit-ID: KUHl1ZBuddC
2017-01-16 18:20:42 +08:00
Honza Bambas
f5d211b759 Bug 1356538 - Carry class-of-service flags to redirected channels. r=mcmanus 2017-05-31 05:06:00 -04:00
Dragana Damjanovic
5bb170e34c Bug 1357678 - Make stream converters do omt. r=mayhemer 2017-05-30 14:11:34 +02:00
Thomas Nguyen
bbb4c84e53 Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface. r=dragana
MozReview-Commit-ID: s61VV5CLx8
2017-05-25 19:42:00 +02:00
Honza Bambas
00cefdc449 Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me 2017-05-25 18:16:02 +02:00
Honza Bambas
77023ca826 Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley 2017-05-18 14:09:00 -04:00
Honza Bambas
0487f42c85 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz 2017-05-23 08:09:00 -04:00
Honza Bambas
f3b5a77a73 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher
7b49a483cc Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas
b05b600614 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Wes Kocher
af381f31ec Backed out changeset 0a25a0fa3b32 (bug 1362822) for osx debug devtools timeouts a=merge
MozReview-Commit-ID: 3LMChZJEBHp
2017-05-11 15:23:43 -07:00
Ehsan Akhgari
269253d660 Bug 1362822 - Avoid needlessly holding locks when setting headers during the initialization of HTTP channel objects; r=schien,dragana
The channel objects cannot be handed off to other threads before the creation
process has been finished, so there is no point in trying to hold these locks
while the initialization code is running.  These lockings have shown up in
profiles as being expensive.
2017-05-11 09:23:30 -04:00
Jonathan Watt
bea80fc0b6 Bug 1362891, part 2 - Make use of XRE_IsE10sParentProcess in code that could use it. r=froydnj
MozReview-Commit-ID: 81PFEgNH37m
2017-04-24 10:40:12 +01:00
Honza Bambas
e8227e774f Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Ehsan Akhgari
4b7408f99d Bug 1360973 - Don't do the work needed for same origin referrer policies unless if we need to; r=tnguyen
CheckSameOriginURI() can be expensive and shows up under profiles, so we
should try to avoid calling it unless if we are going to use
isCrossOrigin.
2017-05-04 13:30:13 -04:00
Dragana Damjanovic
2392afc0e0 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Kershaw Chang
c32bbb29b6 Bug 1343745 - Label runnables in /http, r=honzab 2017-04-23 19:59:00 +02:00
Valentin Gosu
7e8ca8ee92 Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor
MozReview-Commit-ID: K28Opd9JTr2
2017-04-20 10:15:06 +08:00
Carsten "Tomcat" Book
fc32e97d4c Backed out changeset ec9fb39f7133 (bug 1354349) for bustage 2017-04-18 08:52:14 +02:00
Valentin Gosu
a4d4a67955 Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor
MozReview-Commit-ID: K28Opd9JTr2
2017-04-18 11:25:47 +08:00
Ho-Pang Hsu
a4eb4640dc Bug 1168875 - Part 1: Extend nsITimedChannel for logging service worker interception related timestamps. f=bkelly, r=valentin 2017-04-10 21:13:21 +08:00
Christoph Kerschbaumer
b7cd89da26 Bug 1353975 - Fix nullPrincipal edge case. r=bz, r=mcmanus 2017-04-07 20:35:00 +02:00
Sebastian Hengst
f9949f74e7 Backed out changeset 96596bdeb7ec (bug 1353975) for failing mochitest test_CrossSiteXHR.html and xpcshell test test_allowedDomainsXHR.js. r=backout 2017-04-07 20:00:06 +02:00
Christoph Kerschbaumer
ee53214de3 Bug 1353975 - Use a NullPrincipal as the principalToInherit when undergoing an http redirect. r=bz, r=mcmanus 2017-04-06 21:35:40 +02:00
Nicholas Hurley
4144de0ff3 Bug 1348461 - Use a process-unique uint64 instead of a uuid for channel ids r=mcmanus 2017-04-04 08:36:51 -07:00
Nicholas Hurley
e6544ae502 Bug 1348462 - Use a process-unique uint64 instead of a uuid for request context ids r=mcmanus 2017-03-23 07:40:36 -07:00
Carsten "Tomcat" Book
3e2ace1f04 merge mozilla-inbound to mozilla-central a=merge 2017-03-28 13:03:25 +02:00
Shih-Chiang Chien
c147e8fc9f Bug 1320744 - Part 3, implement nsIThreadRetargetableRequest in HttpChannelChild. r=mayhemer
MozReview-Commit-ID: FyLXlkQde3h
2017-03-20 17:29:07 +08:00
Kershaw Chang
66ab47e3d8 Bug 1312782 - Part 3: Test case. r=honzab 2017-03-27 04:10:00 -04:00
Valentin Gosu
c3bd7bfa12 Bug 1341343 - Make sure the channel returns the correct contentLength for alt-data without saving it to the metadata r=michal
MozReview-Commit-ID: 1pXspJwLfJa
* * *
[mq]: fixing.patch

MozReview-Commit-ID: KKS2x2aeHY3
2017-03-13 12:06:55 +01:00
Kershaw Chang
efd55bce36 Bug 1326339 - Store top level outer content window id in http transaction and connMgr. r=mayhemer 2017-03-09 02:55:00 -05:00
Andrea Marchesini
313424057b Bug 1345168 - Get rid of OriginAttributes::Inherit, r=tjr 2017-03-08 07:41:51 +01:00
Wei-Cheng Pan
60a2861056 Bug 1310127 - Part 4: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
This patch contains some changes that may alter control flows.

MozReview-Commit-ID: Kcc2DWJZ8L5
2016-12-28 14:43:47 +08:00
Wei-Cheng Pan
9f134bdbf1 Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
Add assertions.

MozReview-Commit-ID: DPvgKzVr3ip
2017-01-12 17:48:45 +08:00
Wei-Cheng Pan
f9654c1dca Bug 1310127 - Part 2: Use MOZ_MUST_USE in netwerk/protocol/http r=Cykesiopka,mcmanus
Log failures or just ignore them, no control flow change.

MozReview-Commit-ID: D748DEjl3Fv
2016-12-27 19:05:13 +08:00
Patrick McManus
b282fad49d Bug 1340655 - remove h1 pipeline support r=mayhemer 2017-02-17 15:35:37 -05:00
Sebastian Hengst
0db5f85cf8 Backed out changeset 379093669b39 (bug 1340655) for warning as err.or at nsHttpConnection.cpp(875). r=backout on a CLOSED TREE 2017-03-01 20:20:57 +01:00
Patrick McManus
62881745c6 Bug 1340655 - remove h1 pipeline support r=mayhemer
HTTP/1.1 pipelines have been subsumed by the more effective mux of spdy, h2, and soon quic.

The feature was never able to overcome the limitations of HoL blocking
and TCP reset, and their impact on performance and reliability.

Fundamentally mux is the only way we should be approaching that problem.

The massive amount of code - mostly heuristics to try and deal with
the HoL problem (by classifying things onto different transactions,
timers for broken servers, etc..) has become a maintenance burden with
minimal value given the default off state of the feature.

h2 is the new (working) strategy.
2017-02-17 15:35:37 -05:00