Ben Kelly
ce0c9e1623
Bug 1208755 HttpBaseChannel::ShouldIntercept() should not assume every channel has a LoadInfo. r=ckerschb
2015-09-30 13:48:37 -07:00
Michael Layzell
59b6510302
Bug 1207233 - Don't provide a default content-type header if user calls XHR.setRequestHeader('Content-Type', ''), r=jduell
2015-09-24 16:54:11 -04:00
Patrick McManus
c32c5be689
bug 366559 - patch 7, content-encoding brotli for https r=bagder
...
--HG--
extra : rebase_source : 7723eb77ac22aa5000d8e00bf68c83427e3411bb
2015-09-22 12:55:23 -04:00
Nikhil Marathe
48d53f38df
Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm
...
--HG--
extra : commitid : KSrA2sDx3MI
extra : rebase_source : c28988811316aa40e38752669a928d27750001b6
2015-09-17 11:56:41 -07:00
Patrick McManus
94bbb268e4
bug 366559 - backout due to android build bustage patch 7 on CLOSED TREE r=backout
...
--HG--
extra : amend_source : c5d7b9ed27860c9aff9598814762fea9b1c00089
2015-09-22 12:47:25 -04:00
Patrick McManus
24ea44733e
bug 366559 - patch 7, content-encoding brotli for https r=bagder
2015-09-18 18:04:28 -04:00
Patrick McManus
5fd5ee712e
bug 366559 - patch 6, support different content encodings for http vs https r=bagder
2015-09-19 18:51:32 -04:00
Phil Ringnalda
92751c5b3e
Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
...
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari
b2a35e80cb
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-09-16 20:38:19 -04:00
Patrick McManus
60d6db97ae
bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley
2015-09-11 15:53:27 -04:00
Ben Kelly
6195e9f02c
Bug 1203680 P3 Add a method to ensure an http upload stream is directly cloneable. r=mcmanus
2015-09-15 10:15:45 -07:00
Ehsan Akhgari
661f3173cd
Bug 1199049 - Part 5: Preserve the CORS preflight information when setting up a replacement channel; r=jduell
2015-09-12 19:21:00 -04:00
Ehsan Akhgari
25a1bb1191
Bug 1199049 - Part 2: Add a channel API for requesting CORS preflights; r=jduell
2015-09-12 19:20:54 -04:00
Michael Layzell
fb6ddae47f
Bug 1200337 - Part 1: Don't expose standard HTTP headers during interception in non-e10s mode, r=mcmanus
2015-09-12 12:46:09 -04:00
Ehsan Akhgari
90f77f08b9
Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana
2015-09-09 07:53:09 -04:00
Nigel Babu
8d308b5e0a
Backed out changeset 8a798c03d76c (bug 815299) for M4 bustage ON A CLOSED TREE
2015-09-09 09:12:41 +05:30
Ehsan Akhgari
6ac40622c3
Bug 1201229 - Return an empty string for a header when an error occurs; r=dragana
...
This fixes nsIHttpChannel::GetRequestHeader() and
nsIHttpChannel::GetResponseHeader() to always empty out their string
argument even when they fail. This prevents programming mistakes of
passing the same string object to multiple of these calls and using the
string value without checking the nsresult error code, since otherwise
the string value may be unchanged from a previous call.
Note that this doesn't affect JS consumers of these APIs since we only
empty out the string argument in case the method fails, which will be
translated to a JS exception, and the JS code will never get to see the
emptied string.
2015-09-08 20:08:35 -04:00
Ehsan Akhgari
f0128c4423
Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana
2015-09-08 20:08:31 -04:00
Ben Kelly
0c633816f2
Bug 1184607 P3 Add a RedirectMode flag to nsIHttpChannelInternal. r=nsm
...
* * *
Bug 1184607 P3 interdiff 001 http channel nits
2015-08-31 14:26:29 -07:00
Josh Matthews
d81dcd0407
Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer
...
Landed on a CLOSED TREE
2015-08-17 16:42:46 -04:00
Nicholas Hurley
16407ea724
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
...
--HG--
extra : rebase_source : 24dd37c6eaec83a1776d77632b97106e8abb8015
2015-07-31 13:50:08 -07:00
Eric Rahm
fb657a2076
Bug 1184275 - Remove warnings that URI is not a file URI. r=jduell
...
This error is handled properly and appears to happen due to legitimate usage.
The warnings are updated to just return the proper error code.
2015-07-23 11:03:25 -07:00
Christoph Kerschbaumer
2ddb4064ec
Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - channel changes (r=mcmanus,sicking)
2015-05-15 13:21:20 -07:00
Christoph Kerschbaumer
bcc6bfffb4
Bug 1175803 - Store redirect chain within loadInfo - part 2 (r=sicking,mayhemer)
2015-07-19 19:43:09 -07:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Dragana Damjanovic
b5075f0de3
Bug 1170197 - If a channel is suspended in http-on-modify-request, it should not send any trafic untill resumed. r=mayhemer
2015-06-18 10:57:00 -04:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Michal Novotny
671167c884
Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan
2015-06-17 13:16:33 +02:00
Eric Rahm
0edf5974e9
Bug 1171716 - Part 5: Use NS_ReleaseOnMainThread in HttpBaseChannel dtor. r=froydnj
2015-06-10 08:33:32 -07:00
Wes Kocher
54bccdc15f
Backed out 5 changesets (bug 1171716) for android bustage
...
Backed out changeset 4986f8464f9c (bug 1171716)
Backed out changeset bc8405b07d10 (bug 1171716)
Backed out changeset 10e18e494630 (bug 1171716)
Backed out changeset be499a3cae5d (bug 1171716)
Backed out changeset f75717d3eba0 (bug 1171716)
2015-06-09 18:48:37 -07:00
Eric Rahm
3d28a45468
Bug 1171716 - Part 5: Use NS_ReleaseOnMainThread in HttpBaseChannel dtor. r=froydnj
2015-06-09 18:25:48 -07:00
Ehsan Akhgari
4472ebdffd
Bug 1164397 - Part 2: Add an API for overriding the original URI on HttpChannelBase; r=mcmanus
2015-06-05 15:57:37 -04:00
Josh Matthews
f5fb27939c
Bug 1157283 - Recreate IPC redirected HTTP channels as necessary after intercepting the request in the child. r=mayhemer
2015-05-28 10:47:35 -04:00
Franziskus Kiefer
7f55aa3206
Bug 1163743 - Change origin-when-crossorigin to origin-when-cross-origin. r=sstamm
2015-05-11 16:18:05 -07:00
Eric Rahm
25a263c237
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 12:52:45 -07:00
Eric Rahm
58dea0dee9
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher
28c02e1e6d
Backed out 2 changesets (bug 1162336) for breaking at least windows builds
...
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Eric Rahm
b9dd7823ea
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 10:35:29 -07:00
Eric Rahm
ba22eb7fee
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Ehsan Akhgari
1ed354c8e8
Bug 1134325 - Part 1: Add an API for cloning a channel's upload stream; r=mcmanus
2015-05-05 13:20:53 -04:00
Patrick McManus
2bc676b831
Bug 1153936 - nsIHttpChannelInteral attribute to opt out of alt-svc on per channel basis r=hurley
2015-04-13 12:59:34 -04:00
Ryan VanderMeulen
579da75a70
Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes.
...
CLOSED TREE
2015-04-09 20:05:49 -04:00
Nicholas Hurley
0b4c1de637
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj
...
--HG--
extra : rebase_source : 3da2229082ccd041a1ec47ba77d9f0940020f3c9
2015-04-08 14:42:00 +02:00
Henry Chang
90b7e51843
Bug 1053650 - Part 2: Populate networkInterfaceId to SocketTransport. r=mcmanus
...
--HG--
extra : rebase_source : a198156d6d430d7f92801c0f2db51cb297820867
2015-04-07 11:45:57 -04:00
Dragana Damjanovic
ef6b522bde
Bug 1136969 - Add a check that OnStartRequest is called just once during the lifetime of a channel. r=mcmanus
...
--HG--
extra : rebase_source : 756ae3c377788dfe9cf4b073fddc8d99f6021b77
2015-04-02 06:12:00 -04:00
Nikhil Marathe
7a7e74fe7c
Bug 1134324 - Set CORS mode and credentials on Fetch event Request. r=michal
...
renames fetch to fetchXHR() since fetch() is now a superpower.
--HG--
extra : transplant_source : %DA%00%E38%A6%0Fw%DA%26%D3%A9q%AE%A6%FE%BA%81%AA%EEB
2015-03-17 08:47:02 -07:00
Olli Pettay
dcff05ecb2
Bug 1124206, don't release nsCORSListenerProxy so early, r=mcmanus
...
--HG--
extra : rebase_source : c3b7d883d0a64abc7714d55f05fdf66248885f8f
2015-03-18 00:26:33 +02:00
Ehsan Akhgari
876c77c8e4
Bug 1133763 - Part 5: Allow the security info on intercepted HTTP channels to be overridden; r=michal
2015-03-13 14:37:21 -04:00
Josh Matthews
86618832b4
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 20:34:29 -05:00
Ryan VanderMeulen
5abea51e9a
Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures.
2015-02-18 16:00:33 -05:00
Josh Matthews
cb61a019fc
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 14:10:52 -05:00
Patrick McManus
f109af329a
bug 1132808 - HttpBaseChannel::GetPrincipal should return URI prinicipal r=ckerschb r=sicking
2015-02-13 15:54:04 -05:00
Honza Bambas
3f9fa46e24
Bug 1128219 - Re-check mListener while calling OnStopRequest after OnStartRequest in HttpBaseChannel::DoNotifyListener. r=michal
2015-02-13 07:56:00 -05:00
Mark Goodwin
c0c1f9286c
Bug 1092055 - Show security messages for subresources. r=mcmanus
2015-02-09 07:04:00 -05:00
Arthur Edelstein
dd318c4d2a
Bug 436344 - Allow filtering of proxies by channel. r=mcmanus
2015-01-21 21:13:00 +01:00
Honza Bambas
c0d4e14e92
Bug 1123732 - Null-check uri before trying to use it. r=mcmanus
...
CLOSED TREE
2015-01-20 08:30:00 -05:00
Francois Marier
1346294463
Bug 1113004 - Add IsPrivateResponse to HttpChannel. r=mayhemer
2015-01-08 22:38:00 +01:00
Monica Chew
269c62c45e
Bug 1100024: Don't call Connect if the principal is on a local or remote blocklist (r=mcmanus)
...
* * *
Bug 1120547 - Mark the overrides of nsIHttpChannelInternal::ContinueBeginConnect as override and rev the uuid of the interface; r=mmc
2015-01-09 13:25:13 -08:00
Monica Chew
d2b4dc884c
Bug 1100024: CLOSED TREE Backout https://hg.mozilla.org/integration/mozilla-inbound/rev/671ad56e6e12 for causing crashes on ClassifyLocal lookups (r=backout)
2015-01-12 10:05:58 -08:00
Monica Chew
3023f46c51
Bug 1100024: Don't call Connect if the principal is on a local or remote blocklist (r=mcmanus)
2015-01-09 13:25:13 -08:00
Alex Verstak
4149a976d9
Bug 1113438 - Update SetReferrerWithPolicy to (a) send referrer when https->http and policy is ORIGIN_WHEN_XORIGIN and (b) use the triggering principal for this cross-origin check. r=sstamm,mcmanus
2015-01-08 01:46:00 +01:00
Ehsan Akhgari
52593ee3bd
Bug 1117042 follow-up: Fix a build bustage
2015-01-02 09:28:37 -05:00
Patrick McManus
7edbeec28f
bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley
2014-12-06 14:26:50 -05:00
Nicholas Nethercote
d159649494
Bug 1098703 - Zero HttpBaseChannel::{mSelfAddr,mPeerAddr} on construction to avoid Valgrind complaints in e10s builds. r=michal.
...
--HG--
extra : rebase_source : b95ade0b14397103711f74a53e75c514df2e1e1b
2014-11-13 19:27:31 -08:00
Owen Chu
50259ae67d
Bug 704320 - Parse and implement meta tag-based referrer policies for documents and nsHttpChannels. (r=bz,mcmanus)
2014-11-18 08:46:29 -05:00
Monica Chew
43fa6ed7e2
Bug 1088183: Propagate the top window URI to the parent http channel through HttpChannelOpenArgs (a=kwierso,r=jduell,mrbkap)
2014-10-29 17:22:22 -07:00
Blake Kaplan
afa69fda4d
Bug 1049299 - Correctly calculate 3rd-party cookie status for content-process HTTP channels. r=jduell
2014-10-28 14:23:00 +01:00
Steve Workman
49393025ca
Bug 1012917 - Send HttpBaseChannel::mApplyConversion with ChannelDiverter constructor in IPDL r=mayhemer
2014-10-21 16:40:08 -07:00
Josh Matthews
162208d7d0
Bug 898524 - Part 1: Permit certain HTTP channels to be intercepted before initiating a network connection. r=mayhemer
2014-07-09 16:35:02 -04:00
Valentin Gosu
80fd26828f
Bug 1064706 - Move nsHttpChannel::GetPerformance to HttpBaseChannel so it can be used in HttpChannelChild r=honzab
2014-10-06 14:33:13 +03:00
Christoph Kerschbaumer
0d523437b3
Bug 1073282 - Proxy release of mLoadInfo in cannel dtors (r=jduell)
2014-09-29 08:48:11 -07:00
Dragana Damjanovic
3d407d6aac
Bug 1067346 - Fix "apply conversion" when channel is diverted to parent. r=jduell
2014-09-16 06:30:00 -04:00
Valentin Gosu
96eb6b1308
Bug 936814 - Part 1: Implement the _timing allow check algorithm_ for cross-origin Resource Timing r=bz,honzab
2014-05-15 08:26:07 +03:00
Christoph Kerschbaumer
68de320099
Bug 1062529 - Split GetChannelPrincipal into GetChannelResultPrincipal and GetChannelURIPrincipal. r=bz
2014-08-06 16:05:40 -07:00
Dragana Damjanovic
7da0afd3c8
Bug 1043256 - If unKnownDecoder needs to be used, Content_Encodings will be loaded before OnStartRequest is called on the listener. This makes an error in e10s because Content_Encodings will be loaded before HttpChannelParent can disable them. r=bagder
2014-08-13 10:52:00 -04:00
Patrick McManus
7b3d6bf83d
Bug 354493 - revert Add nsINetworkZonePolicy to protect resources loaded from private IPs r=backout a=backout
2014-07-24 10:05:36 -04:00
Ben Kelly
0d01c09be4
Bug 1029620 P4 Make HTTP token and header value validation accessible via nsNetUtil.h r=ehsan r=mcmanus
2014-07-24 12:38:55 -04:00
Steve Workman
111df17ab2
Bug 354493 - Add nsINetworkZonePolicy to protect resources loaded from private IPs r=mcmanus
2014-07-17 11:08:20 -07:00
Dragana Damjanovic
2cd40ad8a5
Bug 915024 - Add ForcePending for HttpChannel. r=jduell
2014-07-10 10:13:00 -04:00
Boris Zbarsky
67a99f4507
Bug 965413 part 13. Stop propagating null principal owners across redirects in nsHttpChannel, since we now handle that via loadInfo. r=smaug
2014-07-10 02:56:38 -04:00
Boris Zbarsky
744cc503d7
Bug 965413 part 8. Make HTTP redirects propagate along the load info. r=smaug
2014-07-10 02:56:37 -04:00
Boris Zbarsky
2d81966ba3
Bug 965413 part 3. Add a .loadInfo property to channels. r=mcmanus
2014-07-10 02:56:36 -04:00
Wes Kocher
b4cf7d16de
Backed out changeset 7b5a6cc2a244 (bug 354493) for frequent intermittent xpcshell oranges
2014-07-09 18:20:54 -07:00
Steve Workman
ce5c9f601f
Bug 354493 - Add nsINetworkZonePolicy to restrict private resource loads from public networks r=mcmanus
2014-07-09 11:16:39 -07:00
Dragana Damjanovic
9c72743446
Bug 748117 - Make sure http channel is pending in OnStartRequest & OnDataAvailable r=jduell
2014-06-26 18:51:49 -07:00
Valentin Gosu
f26166e672
Bug 1006575 - Redirected iframe inserts 2 entries into resource timing buffer
2014-06-05 22:24:47 +03:00
Patrick McManus
b17f6374d4
bug 1003566 - part 1 - allowSTS attribute to nsIHttpChannel r=honzab
2014-06-04 09:57:15 -07:00
Bob Owen
742337c540
Bug 985135 - When owner is a null principal, propagate to replacement channel on redirect. r=bz
2014-05-28 15:04:04 +01:00
Monica Chew
6fe994703a
Bug 974018: Implement nsIRedirectHistory (r=mayhemer)
2014-05-22 12:58:23 -07:00
Birunthan Mohanathas
19bebbc68d
Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan
2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
5f1fde8824
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Valentin Gosu
bd28245b1f
Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab
...
* Move nsITimedChannel to HttpBaseChannel which is inherited by HttpChannelChild
* Return mZeroTime instead of 0 in nsPerformanceTiming
* Pass redirect count from parent to child channel
2014-04-21 09:34:33 -04:00
Adrian Lungu
864ffca9e7
Bug 822480 - Add in the Resource Timing API. r=honzab, r=jst
2013-10-15 18:35:44 -07:00
Patrick McManus
ae599f9845
bug 477578 - http methods should be case sensitive r=hurley
2014-03-18 12:36:18 -04:00
Girish Sharma
1511ede395
Bug 970246 - Create an http-on-response-set-cookie notification to tell when cookies are created via SET-COOKIE response header. r=honzab
2014-02-27 00:14:42 +05:30
Scott West
195da932bf
Bug 401564 - Test and fix for redirection losing Accept header. r=mcmanus
...
The test has a redirect where the initial GET request had Accept:
application/json, and ensures that this is also the type of the
redirected request.
The fix is done in the setup of the replicated HttpBaseChannel, where
the previous channel's Accept header is copied to the new one, if it
exists.
2014-02-26 09:03:14 -05:00
Steve Workman
5664e66826
Bug 947391 - Add a timeout for initial HTTP responses r=mcmanus
2013-12-18 15:03:48 -08:00