Commit Graph

4853 Commits

Author SHA1 Message Date
Ehsan Akhgari
46ece311dc Bug 1206894 follow-up: Add a null check 2015-09-21 22:13:39 -04:00
Ehsan Akhgari
5d40efa578 Bug 1206894 - Enable asynchronous dispatching of fetch events; r=jdm
This refactoring patch separates the preparation of the fetch event
object from its dispatching, so that consumers would be able to
dispatch the event asynchronously.
2015-09-21 20:59:27 -04:00
Patrick McManus
7479d7b332 bug 1206771 - fix reentrantFlag compiler warning on >= beta r=jduell 2015-09-21 13:22:23 -04:00
Patrick McManus
53b6eb3848 bug 1187239 - ontransportstatus SENDING_TO should not use request stream re-entrantly r=hurley r=bz 2015-09-15 18:12:37 -04:00
Ben Kelly
3528a43c26 Bug 1206084 Always Cancel() channel in nsCORSListenerProxy for failed redirects. r=ehsan 2015-09-18 07:15:39 -07:00
Andrea Marchesini
9462aa8c25 Bug 1163545 - Bypass AppCache completely when Service Workers supported & registered, r=jdm 2015-09-18 10:18:38 +08:00
Patrick McManus
0027642c1e Bug 1205810 - telemetry for local h2 goaway code r=hurley 2015-09-17 15:26:59 -04:00
Nicholas Nethercote
647b520991 Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07: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
Patrick McManus
9a07c5f169 Bug 1204731 - telemetry for peer h2 goaway r=hurley 2015-09-14 21:55:06 -04:00
Nigel Babu
1d36e1a565 Backed out changeset d5d0b5994149 (bug 1152046) for b2g debug hustdown hangs
CLOSED TREE
2015-09-16 11:44:12 +05:30
Patrick McManus
daaeed9ec1 bug 1152046 - Revert Make separate thread only for PRClose. r=backout
This reverts commit 760a84e7cf.
2015-09-15 21:40:28 -04:00
Nicholas Nethercote
2ee4fd783b Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru.
--HG--
extra : rebase_source : 3cdc975507170d783b02d70f7c7d95c6bf2e1bcd
2015-09-14 14:23:47 -07:00
Nicholas Nethercote
479244f7c9 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
--HG--
extra : rebase_source : 41eb939bfb5c925cba58b1af57abce9a4e5fdb30
2015-09-14 14:23:12 -07:00
Ben Kelly
16d99d45bd Bug 1203680 P8 nsCORSListenerProxy::OnStartRequest must always call outer OnStartRequest. r=ehsan 2015-09-15 10:15:45 -07:00
Ben Kelly
c1505a4206 Bug 1203680 P7 Fix e10s handling on interceptions resulting in redirect status codes. r=jdm 2015-09-15 10:15:45 -07: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
Wes Kocher
a336f83a0a Backed out 9 changesets (bug 1203680) for mochitest bustage CLOSED TREE
Backed out changeset e4733b9eb53c (bug 1203680)
Backed out changeset fb33eb2a55b0
Backed out changeset eb42e21bbb96 (bug 1203680)
Backed out changeset 86642d84e604 (bug 1203680)
Backed out changeset 1026da4b02fb (bug 1203680)
Backed out changeset 311f9810e0b3 (bug 1203680)
Backed out changeset 6fedc85dc0d9 (bug 1203680)
Backed out changeset b25230c0a193 (bug 1093357)
Backed out changeset 2369d63ef14a (bug 1203680)
2015-09-14 14:27:57 -07:00
Ben Kelly
8dc9231872 Bug 1203680 P7 Fix e10s handling on interceptions resulting in redirect status codes. r=jdm 2015-09-14 12:04:56 -07:00
Ben Kelly
35d27caaa0 Bug 1203680 P3 Add a method to ensure an http upload stream is directly cloneable. r=mcmanus 2015-09-14 12:04:56 -07:00
Dragana Damjanovic
760a84e7cf Bug 1152046 - Make separate thread only for PRClose. r=mcmanus r=mayhemer
--HG--
extra : rebase_source : a4f4845023d6cebdd56d75b1ff7afd29447d2167
2015-09-10 19:07:00 +02:00
Ehsan Akhgari
48f31cf19f Bug 1199049 - Part 15: Add a missing include 2015-09-12 20:13:23 -04:00
Ehsan Akhgari
13d849f40c Bug 1199049 - Part 14: Cancel the original channel in case a CORS preflight fails using AsyncAbort(); r=jduell 2015-09-12 19:21:17 -04:00
Ehsan Akhgari
c30d38ac4d Bug 1199049 - Part 13: Cancel the preflight channel if the original channel gets canceled when a CORS preflight is in progress; r=jduell,sicking 2015-09-12 19:21:15 -04:00
Ehsan Akhgari
c22d4dd15d Bug 1199049 - Part 12: Move the calls on the listener object to OnPreflightFailed(); r=jduell 2015-09-12 19:21:13 -04:00
Ehsan Akhgari
b511946ddc Bug 1199049 - Part 11: Make it impossible to start CORS preflights from outside of Necko; r=jduell,ckerschb,sicking 2015-09-12 19:21:11 -04:00
Ehsan Akhgari
c9ef5ad84e Bug 1199049 - Part 7: Remove entries from the CORS preflight cache in the parent process when a CORS check in the child process fails; r=jduell
This is necessary because it's possible for one request triggered from
a child to start a CORS preflight in the parent process and get an entry
into the preflight cache, and then a CORS check for the same URL to fail
in the child process later on.  In this case, we need to tell the parent
process to clear its CORS preflight cache entry.
2015-09-12 19:21:03 -04:00
Ehsan Akhgari
d1029ccc78 Bug 1199049 - Part 6: Transfer the preflight parameters to the parent process in e10s mode; r=jduell 2015-09-12 19:21:01 -04: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
0ef16139a6 Bug 1199049 - Part 4: Perform CORS preflights from nsHttpChannel before connecting to the network; r=jduell,ckerschb,sicking 2015-09-12 19:20:58 -04:00
Ehsan Akhgari
f2a6c6863d Bug 1199049 - Part 3: Add a CORS preflight result notification API; r=jduell,ckerschb,sicking 2015-09-12 19:20:55 -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
Ehsan Akhgari
a4ac3ec0b4 Bug 1199049 - Part 1: Move nsCORSListenerProxy.* to necko; r=jduell
--HG--
rename : dom/security/nsCORSListenerProxy.cpp => netwerk/protocol/http/nsCORSListenerProxy.cpp
rename : dom/security/nsCORSListenerProxy.h => netwerk/protocol/http/nsCORSListenerProxy.h
2015-09-12 19:20:52 -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
Ehsan Akhgari
063ce7de72 Add a couple of missing #includes to nsHttpNTLMAuth.cpp, no bug CLOSED TREE 2015-09-08 12:58:21 -07:00
Wes Kocher
7265977859 Backed out changeset f136c4f7e6fe for windows xpcshell bustage CLOSED TREE 2015-09-08 10:42:23 -07:00
Dragana Damjanovic dd.mozilla@gmail.com
94779891d5 Bug 1202421 - Rename the network.auth.allow-subresource-auth pref. r=michal 2015-09-08 08:21:19 -07:00
Ehsan Akhgari
09186aac75 Add a couple of missing #includes to nsHttpNTLMAuth.cpp, no bug 2015-09-08 10:50:18 -04:00
Dragana Damjanovic dd.mozilla@gmail.com
dde37f1cca Bug 1199862 - In the case of a DivertToParent a message or error prompt may block in a OnStartRequest or OnDataAvailable and therefore we need to suspend receiving further OnDataAvailable or OnStopRequest, etc. r=jduell 2015-09-03 03:11:00 +02:00
Henry Chang
d0d222b8de Bug 1178525 - Introduce PackagedAppVerifier and use it to control the timing we serve packaged content. r=valentin. 2015-09-07 19:12:02 +08:00
Dragana Damjanovic
6243a9efb2 Bug 1201174 - For FTP - in case of divertToParent, it myst be possible to delay delivering of OnDataAv./OnStopR. r=jduell
--HG--
extra : rebase_source : 5c59317dd43d5e0448b44ed3d0c26dd6262e80da
2015-09-04 03:55:00 +02:00
Nikhil Marathe
8dbf443150 Bug 1167809 - Add skip size check flag to cache for use with ServiceWorkers. r=mayhemer
For non-e10s Service Worker, we use Cache entries to achieve interception.
While this is a temporary measure, the fact that cache enforces size limits on
cache entries (which make sense for the purpose it was designed) prevents large
files from being served via a Service Worker. This patch adds a skip size check
flag to CacheStorage that is relayed to CacheEntry and CacheFile. It is set to
false by default leading to normal cache behaviour.
The patch also adds nsICacheStorageService.synthesizedCacheStorage() that
retrieves a cache storage with this flag set to true, which is used by
nsHttpChannel in case of possible interception.
2015-09-03 16:05:42 -07:00
Patrick McManus
0c1bb97999 bug 1196882 - dont enforce h1 framing on non 2xx r=bagder 2015-08-28 10:57:16 -04:00
Kalpesh Krishna
180a94bf7c Bug 1198387 - Remove use-cache preference and its references. r=mcmanus 2015-09-01 01:09:00 -04:00