Commit Graph

4101 Commits

Author SHA1 Message Date
Daniel Stenberg
43f0c8ec63 Bug 237623 - detect broken HTTP1.1 transfers. r=mcmanus,seth
Return error when the protocol layer detects a framing error. More data
was supposed to be delivered than what actually did arrive.

Error code returned for this: NS_ERROR_NET_PARTIAL_TRANSFER

In HTTP1.1 for Content-Length: and chunked-encoding underruns

In http2 and SPDY for framing errors when data has already been received.

imgRequest::OnStopRequest will keep partially loaded images shown but
remove them from cache.
2014-06-09 00:15:00 +02:00
Nicholas Hurley
d9f98515e7 Bug 1025071 - Save header table space by not indexing :path r=mcmanus 2014-06-13 15:02:05 -07:00
Patrick McManus
93e8375c89 bug 1025075 - http2 CONNECT streams should have consistent priority r=hurley
---
 netwerk/protocol/http/Http2Session.cpp  | 3 ++-
 netwerk/protocol/http/SpdySession3.cpp  | 3 ++-
 netwerk/protocol/http/SpdySession31.cpp | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

---
 netwerk/protocol/http/Http2Session.cpp  | 3 ++-
 netwerk/protocol/http/SpdySession3.cpp  | 3 ++-
 netwerk/protocol/http/SpdySession31.cpp | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
2014-06-13 09:29:00 -04:00
Ethan Tseng
c188ea781f Bug 1021890 - [RTSP] Compiler warning - character constant too long in RTSPConnectionHandler.h. r=sworkman 2014-06-10 15:36:46 +08:00
"Kan-Ru Chen (陳侃如)"
8f452f1067 Bug 879475 - Part 006. Fix http auth prompts for nested content processes r=honzab
Based on original patch by David Zbarsky <dzbarsky@gmail.com>
2014-06-11 13:44:36 +08:00
Jeff Muizelaar
4c4e0b3541 Bug 1022049. Switch to <intrin.h>. r=nfroyd
Instead of declaring these ourselves just use intrin.h
This has the advantage of allowing them to work with clang-cl

--HG--
extra : rebase_source : b78c756edb5dcdf1fd9127ad5e1a7ae183e72e3c
2014-06-09 17:26:55 -04:00
Patrick McManus
76f71eb35a bug 1022076 - http/2 explicit gzip for post h2-12 r=hurley
bug 1022076 - http/2 explicit gzip for post h2-12 r=hurley

--HG--
extra : rebase_source : 8603c97c9ed664520e748ebba405e6a1bce6b3e8
2014-06-06 19:18:00 -04:00
Patrick McManus
0a94a75f60 bug 1021396 - duplicate spdy syn_stream can hang necko thread r=hurley
bug 1021396 - duplicate spdy syn_stream can hang necko thread r=hurley

--HG--
extra : rebase_source : caf1ad18fced8e9c7ef78c1eccbfb2dec2d6181c
2014-06-06 11:18:00 -04:00
Patrick McManus
6e06b87dfa bug 1022195 - http2 allow indexing of cookie crumbs with decent entropy r=hurley
--HG--
extra : rebase_source : fb48d4aaf4d81007ac5532f493a87babb23257f7
2014-06-07 11:54:38 -04:00
Ryan VanderMeulen
1c927722c9 Merge m-c to b2g-inbound. a=merge 2014-06-06 17:34:22 -04:00
Ethan Tseng
1670d8871e Bug 1020379 - [RTSP] Fix trivial compile warnings. r=sworkman 2014-06-06 11:28:45 +08:00
Ethan Tseng
61104d2f51 Bug 1020379 - [RTSP] Fix potential infinite loop in ARTPConnection.cpp. r=sworkman 2014-06-06 10:59:47 +08:00
Nicholas Hurley
3c8da7e52c Bug 1019918 - Remove pushed stream from SpdyPushCache when cleaning it up. r=mcmanus
--HG--
extra : rebase_source : 2c1c23668adf041eb27c8f0509aebfbfab9497ca
2014-06-04 15:37:00 -04: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
Nicholas Hurley
e4e5a0e568 Bug 1019921 - [http/2] Don't change to discarding padding state when all padding has been processed. r=mcmanus 2014-06-03 19:41:26 -07:00
Valentin Gosu
6633ae11f4 Bug 983243 - WSS WebSocket leaks TCP/IP connection if closed prematurely r=mcmanus
Prevent WebSocketChannel::OnTransportAvailable from reinitializing the channel's references after it has been closed.
2014-06-04 02:15:14 +03:00
Nicholas Hurley
53b38bf864 Bug 1019577 - Always make room in the table before emitting an entry. r=mcmanus 2014-06-03 13:09:08 -07:00
Robert O'Callahan
cbb8fdebfc Bug 1015664. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg 2014-06-03 00:08:21 +12:00
Phil Ringnalda
3e5340dd29 Merge f-t to m-c 2014-05-31 20:31:07 -07:00
Victor Porof
9ce7e9c089 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
David Fifield
a5c112634b Bug 1017769 - Make the CONNECT Host header the same as the Request-URI. r=mcmanus
It's possible to construct a request where the Host header differs from
the authority in the URL, for example in an extension with
nsIHttpChannel and setRequestHeader. MakeConnectString generates a
host:port string for the CONNECT Request-Line, but peeks into the
tunneled request in order to copy the Host header to the proxy request.

Instead, use the same host:port string for Host as is used in the
Request-URI, to avoid revealing the plaintext of the Host header outside
of the tunnel.
2014-05-29 11:01:02 -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
Nicholas Hurley
c69ead23da Bug 1017692 - More logging for HPACK. r=mcmanus 2014-05-30 16:16:23 -07:00
Wes Kocher
51289d72ba Merge b2g-inbound to m-c 2014-05-29 17:44:25 -07:00
Ryan VanderMeulen
3dd20ce014 Merge m-c to b2g-inbound. 2014-05-29 14:36:11 -04:00
Honza Bambas
77f07df0e3 Bug 1017636 - Remove all conditional request headers when cache entry's sec-info or input fails to open. r=mcmanus 2014-05-29 19:42:33 +02:00
Ethan Tseng
29ee3c0241 Bug 1015169 - Cannot play RTSP streaming after reloading web page. r=vchang 2014-05-27 16:49:34 +08:00
Monica Chew
6fe994703a Bug 974018: Implement nsIRedirectHistory (r=mayhemer) 2014-05-22 12:58:23 -07:00
Patrick McManus
3ad35f2407 bug 1014589 - problem with https proxying and http pipelines r=hurley
--HG--
extra : rebase_source : 7c4f9f80d37102baa8951961d54b6ff842a19afb
2014-05-22 17:49:04 -04:00
Birunthan Mohanathas
085f40aff8 Bug 869836 - Part 11: Use Append('c') instead of AppendLiteral("c"). r=ehsan
--HG--
extra : rebase_source : 08bcbfd804f1adcab40c7d59fa56deda1f6e0829
2014-05-26 21:54:58 +03:00
Carsten "Tomcat" Book
5f4bdd154a merge b2g-inbound to mozilla-central 2014-05-26 15:26:11 +02:00
Ethan Tseng
a4ff778249 Bug 1009497 - Crash happened while device plays MP3 stream over RTSP. r=sworkman 2014-05-23 11:37:18 +08:00
Vincent Chang
331930e1bd Bug 1006484 - [RTSP][V2.0] Cannot replay RTSP streaming. r=sworkman 2014-05-22 10:11:38 +08:00
Carsten "Tomcat" Book
2b06f4758f merge b2g-inbound to mozilla-central 2014-05-22 15:21:43 +02:00
Wes Kocher
d8940fe139 Merge m-c to b2g-inbound 2014-05-21 20:38:07 -07:00
Birunthan Mohanathas
aea8617b92 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
58641805f1 Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
f65339b9ff Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
189593520f Bug 869836 - Part 4: Use EqualsLiteral instead of Equals(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:51 +03: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
a5ab25c973 Bug 869836 - Part 1: Use EqualsLiteral instead of == NS_LITERAL_STRING(...). r=ehsan 2014-05-22 06:48:50 +03:00
Honza Bambas
76d3e0b447 Bug 779899 - Move nsHttpChannel::CreateNewURI to a different place in the file, r=mcmanus 2014-05-21 23:42:08 +02:00
Patrick McManus
4a968470a6 bug 1013934 - NS_ERROR_CORRUPTED_CONTENT should be a stream local error in http2 r=hurley 2014-05-21 14:09:48 -04:00
Patrick McManus
1e47ba1448 bug 1013623 - make nsHttpPipeline.mConnection a smart pointer r=hurley 2014-05-21 10:01:56 -04:00
Wes Kocher
4777505208 Merge m-c to inbound 2014-05-23 17:37:56 -07:00
Kyle Huey
8c5cca136c Bug 996133: Remove unnecessary NS_DISPATCH_NORMAL arguments to NS_DispatchToMainThread. r=ehsan 2014-05-23 12:53:17 -07:00
Vincent Chang
78dd44da11 Bug 951278 - [RTSP][V1.3] The RTSP streaming always stops at the last 1st or 2nd second. r=sworkman 2014-03-18 14:30:51 +08:00
Honza Bambas
162eb32023 Bug 1017636 - Remove all conditional request headers when cache entry's sec-info or input fails to open, r=mcmanus, a=ryanvm on a CLOSED TREE 2014-05-29 19:42:33 +02:00
Doug Turner
da491f36e8 Bug 995430 - send header when user is signed into a children\'s account. r=mcmanus 2014-05-05 14:30:42 -07:00
Patrick McManus
eb93537c6c bug 1012827 - release https proxy connect serialization earlier r=hurley 2014-05-19 15:37:58 -04:00
Patrick McManus
803055099a bug 1012825 - https proxying over http/2 connect stream r=hurley 2014-05-19 15:37:35 -04:00
Trevor Saunders
42ad93c2a2 bug 1004746 - part 1 - Remove a bunch of usage of nsAutoPtr's copy ctor r=froydnj 2014-05-07 18:05:37 -04:00
Honza Bambas
63bb0ff62c Bug 998608 - Intermittent netwerk/test/unit/test_range_requests.js | request reports itself as not pending from onDataAvailable, r=michal 2014-05-17 15:38:50 +02:00
Ryan VanderMeulen
7cac2ebe8e Merge m-c to inbound. 2014-05-16 15:28:18 -04:00
Patrick McManus
fe0987759a bug 378637 part 15 - pipeline::setconnection(nullptr) is never assertable r=hurley
--HG--
extra : rebase_source : e408216599be91fa3c33e84fa3ef41c0d93b8d7d
2014-05-16 11:46:13 -04:00
Patrick McManus
d52c2946ac bug 378637 part 14 - https proxying for spdy31 and http2 r=hurley
--HG--
extra : rebase_source : 03a62d69b08f725c85f092b182a95de9c4eb7288
2014-05-16 11:46:13 -04:00
Patrick McManus
0a3b1e638a bug 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley
--HG--
extra : rebase_source : 9ba1d5a5c97e6fb42956433dd6738cbec0e8e90c
2014-05-16 11:46:12 -04:00
Carsten "Tomcat" Book
d59003cabf Merge mozilla-central to b2g-inbound 2014-05-16 14:35:35 +02:00
Ethan Tseng
cc73f37817 Bug 996765 - [RTSP] Support TCP-interleaved RTP transport. r=sworkman 2014-05-12 16:27:07 +08:00
Wes Kocher
738f9f9b41 Merge inbound to m-c 2014-05-15 15:59:45 -07:00
John Shih
e23b619846 Bug 966625 - Make RTSP be tracked by NetworkActivityMonitor. r=sworkman
--HG--
extra : rebase_source : 526906c9e13236acb8356018c6994d5f357f3cdd
2014-05-13 16:51:58 +08:00
Daniel Stenberg
5f64f2d036 Bug 1007024 - CopyAsNetwork32 inserts 32bit network byte order values. r=mcmanus
CopyAsNetwork32 is a convenience function to make the PR_htonl() +
memcpy use in the code less repetitive.
2014-05-14 01:01:00 +02:00
Patrick McManus
173d1dc1d2 bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley
--HG--
extra : rebase_source : 85b4f6b3eb1a3977ff888fa70214055a41f72da5
2014-04-16 09:52:43 -04:00
Patrick McManus
1b05a32805 bug 378637 part 11 - move MakeConnectString() to nsHttpHandler r=hurley
--HG--
extra : rebase_source : 683d8c5203a17d8869bbce0bbdaeee0dc683442a
2014-04-22 15:46:06 -04:00
Patrick McManus
b48b19cab3 bug 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley
--HG--
extra : rebase_source : b4b955c652b14e750013130428b71e2e308fead3
2014-04-20 12:01:35 -04:00
Patrick McManus
7df71d973e bug 378637 part 9 - https proxy info added to connection info and reqeuest head r=hurley
--HG--
extra : rebase_source : 30bfa9973c18e2a53ece4ea5056b38c151f49cf0
2014-04-16 09:23:20 -04:00
Patrick McManus
4438318a70 bug 378637 part 7 - new spdysession() no longer takes first transaction r=hurley
--HG--
extra : rebase_source : af83fcffa83f1da4250b0a9528e148619f9e3838
2014-05-16 11:46:11 -04:00
Patrick McManus
f641c574a8 bug 378637 part 6 - implement nsAHttpTransaction::QueryHttpTransaction r=hurley
--HG--
extra : rebase_source : d2981bb9e47cf9a8f6d038a0c6db6a85f3170f97
2014-04-15 17:40:23 -04:00
Patrick McManus
d267633487 bug 378637 part 5 - move Spdy*::EnsureBuffer to nsHttp r=hurley
--HG--
extra : rebase_source : 147ffb4842069ac7531e99d7decb9362a2566556
2014-04-15 17:06:59 -04:00
Patrick McManus
6038b536dc bug 378637 part 4 - more proactive failed to connect detection in nsHttpConnection r=hurley
--HG--
extra : rebase_source : 65004f57b9c464f03050a8597b28a678c6ca8f47
2014-04-02 17:26:58 -04:00
Patrick McManus
c72c71a34e bug 378637 part 3 - fix http style: comments, whitespace, formatters r=hurley
--HG--
extra : rebase_source : 9d2b0692298fca2655023b3bc6295386a96625e6
2014-04-17 19:55:04 -04:00
Patrick McManus
23bd6d3e13 bug 378637 part 2 - change some stack nscstrings to spdystream* autocstring r=hurley
--HG--
extra : rebase_source : 9b88e9c875416576c8770e1b1f1d6de8b2402ac5
2014-04-25 16:01:23 -04:00
Patrick McManus
94cb48efb9 bug 378637 part 1 - add leak detection macros to http classes r=hurley
--HG--
extra : rebase_source : c846cba060509be22a2a3387929ffa724dba7f40
2014-04-21 08:54:07 -04:00
Ryan VanderMeulen
9e342ce37a Revert to revision 63dfac3c9c87 due to mass bustage pile-ups that landed after it on a CLOSED TREE. 2014-05-16 12:29:37 -04:00
Honza Bambas
e8ceeb1152 Bug 998608 - Intermittent netwerk/test/unit/test_range_requests.js | request reports itself as not pending from onDataAvailable!, r=michal 2014-05-16 17:13:04 +02:00
Shian-Yow Wu
29e21bb5f7 Bug 945152 - Part 3-1: New libjar APIs. r=aklotz 2014-05-16 13:34:43 +08:00
Nicholas Hurley
4f66bb13b6 Bug 1006804 - Enforce TLS key type and size restrictions in HTTP/2. r=mcmanus. 2014-05-14 10:37:05 -07:00
Sylvestre Ledru
2c31abd95e Bug 1003929: Remove some useless declarations in netwerk/protocol/ found by scan-build, the LLVM/Clang static analyzer. r=mcmanus 2014-05-13 17:18:20 +02:00
Ethan Tseng
9c5f6c7691 Bug 1007577 - [RTSP] Remove nsIInterfaceRequestor from RtspControllerParent. r=sworkman 2014-05-09 15:08:09 +08:00
Ethan Tseng
4b189402f3 Bug 1006530 - Closing a audio RTSP streaming via tab page causes system crash. r=sworkman 2014-05-08 16:16:11 +08:00
Carsten "Tomcat" Book
a3c8c6b85e Merge mozilla-central to b2g-i 2014-05-09 14:20:02 +02:00
John Shih
09d8a647d2 Bug 996535 - Convert linux socket to NSPR/PRFileDesc. r=sworkman 2014-04-15 14:39:57 +08:00
Neil Rashbrook
5b1f7b4a77 Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg 2014-05-08 20:08:38 +01:00
Daniel Stenberg
9b3002ffb1 Bug 1007029 - GenerateGoAway: Remove pointless memset(). r=mcmanus 2014-05-08 09:27:00 -04:00
Robert O'Callahan
7043c985ba Bug 1006248. Part 1: Add MOZ_EXPORT in various places. r=glandium
--HG--
extra : rebase_source : cfe209a412cae28d405eae413415cebb6959072a
2014-05-06 17:26:46 +12:00
Daniel Stenberg
620f55a660 Bug 1005821 - http2: store streamID on correct index within frame. r=hurley
Http2Session::GenerateGoAway() inserts the 'mOutgoingGoAwayID' at index
7 while the comment (and the current http2 spec draft-12) says it should
be at index 8.
2014-05-05 10:58:00 +02:00
Ed Morley
b107d7de01 Merge mozilla-central and inbound 2014-05-01 16:23:05 +01:00
Ed Morley
8cd8e828e7 Merge latest green inbound changeset and mozilla-central; r=khuey to work around bug 1002652 comment 13 2014-05-01 15:49:37 +01:00
Honza Bambas
ec884e84a0 Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN 2014-05-01 13:28:12 +02:00
Patrick McManus
1366b6fd61 bug 1003935 - call dontreuse() on reclaimed conns with transaction refs r=sworkman 2014-04-30 13:15:46 -04:00
Nicholas Hurley
dad13d622c Bug 1003320 - Send HPACK buffer size updates when receiving SETTINGS_HEADER_TABLE_SIZE. r=mcmanus 2014-04-29 18:46:07 -07:00
Nicholas Hurley
f0e5a8c1c1 Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
Nicholas Hurley
b75cd1cf68 Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
Nathan Froyd
84041459a1 Bug 1003306 - part 2 - use services::GetPermissionManager everywhere that's appropriate; r=ehsan 2014-04-29 13:27:26 -04:00
Honza Bambas
fcfec4dbfa Backing out bug 916052 (2557b51a47a0) for build bustage on linux/osx, r=bustage on CLOSED TREE 2014-04-30 13:05:43 +02:00
Honza Bambas
bbabececf4 Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN 2014-04-30 12:39:18 +02: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
R Kent James
9d2752314f Bug 698730 - Add username to connection cache hash so NTLM gets correct connection, r=mcmanus 2014-04-26 12:01:39 -07:00
Honza Bambas
ffa0366ff3 Bug 913810 - make nsHttpChannel properly react to FILE_NOT_FOUND from the cache, r=michal 2014-04-26 18:42:07 +02:00