Commit Graph

4816 Commits

Author SHA1 Message Date
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
Marco Fornaro
2f23d39464 Bug 1168033 - Add a comment to nsHttpConnectionMgr.cpp explaining the assignment of attemptedOptimisticPipeline. r=mcmanus 2015-06-02 01:40:00 -04:00
Patrick McManus
db9909beda bug 1194818 - h2 header priority handling r=hurley 2015-08-18 14:57:07 -04:00
Michal Novotny
de0d5cc746 Bug 1186160 - WebSocketChannel accesses nsDocShell and nsDocument off the main thread, r=mcmanus 2015-09-01 02:47:23 +02:00
Ryan VanderMeulen
d7989bc78a Backed out changeset af935eae9bed (bug 1194818) for Windows build bustage.
CLOSED TREE

--HG--
extra : histedit_source : 8dbea2416a40964e2879a86941ca2024bf82f972
2015-08-31 18:33:47 -04:00
Michal Novotny
eac1f62ecb Bug 1182515 - WebSocketChannel leaked when WebSocketChannel::AsyncOpen fails, r=mcmanus 2015-08-31 23:34:59 +02:00
Ben Kelly
02091a795c Bug 1184607 P10 Expose channel security info during e10s redirect. Support security info in redirecting interceptions. r=jduell 2015-08-31 14:26:30 -07: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
Patrick McManus
3ed993ff6a bug 1194820 - h2 push promise padding handling r=hurley 2015-08-18 15:16:14 -04:00
Patrick McManus
4f2eaec422 bug 1194818 - h2 header priority handling r=hurley 2015-08-18 14:57:07 -04:00
Henry Chang
95952c0098 Bug 1195713 - Set the proper notification callbacks for the inner channel. r=valentin
--HG--
extra : rebase_source : 6aefee28f21986d8e6e8ead5b2d142b5bf2d2270
2015-08-31 17:47:10 +08:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Nikhil Marathe
34c0975909 Bug 1176988 - Patch 1 - Always hit cache irrespective of HTTP method if channel is being intercepted. r=jdm
--HG--
extra : commitid : HogM6wG4Osv
extra : rebase_source : 6260406a8c8e29e8c5e0bb196c29849d91ceab47
2015-08-18 11:30:38 -07:00
Ting-Yu Chou
f4c170044f Bug 1119692 - Part 2: Always use scheme jar:remoteopenfile: for out-of-process apps to ease sandboxing code. r=fabrice
--HG--
extra : rebase_source : 3a5ece0177967f5b142abd48885a9a4ff2600c63
2015-08-17 10:30:22 +08:00
Dragana Damjanovic
aa661c39f5 Bug 979359 - Add telemetry to to collect stats about how often Http Authentication occurs and how often it is for top-level doc, cross-origin, etc. r=jduell
--HG--
extra : rebase_source : f5c1fd99880411dc09e6baee104d535a400e28b9
2015-08-27 07:50:00 -04:00
Yoshi Huang
4347bb2318 Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley 2015-08-17 17:03:19 +08:00
Ryan VanderMeulen
baa08d9528 Backed out changesets 1620bf9f8f2a and 0d75db15b6ed (bug 1119692) for nsZipReaderCache::GetFd crashes.
CLOSED TREE
2015-08-26 11:20:54 -04:00
Ting-Yu Chou
2f8976ba67 Bug 1119692 - Part 2: Always use scheme jar:remoteopenfile: for out-of-process apps to ease sandboxing code. r=fabrice
--HG--
extra : rebase_source : 43d4156f9943d7ded6c98e14fb27d962be73d276
2015-08-17 10:30:22 +08:00
Chris Peterson
1416e566de Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium 2015-08-25 09:14:38 -07:00
Ehsan Akhgari
5816445c61 Bug 1194847 - Part 1: Make it possible to tell whether the response of a channel has been synthesized; r=michal 2015-08-25 21:26:14 -04:00
Bobby Holley
edfe287f26 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Valentin Gosu
7833654240 Bug 1196021 - Pass requesting channel to PackagedAppService::GetResource r=ckerschb 2015-08-25 03:06:24 +02:00
Valentin Gosu
ac53c9a29f Bug 1196021 - Use asyncOpen2 in PackagedAppService r=ckerschb 2015-08-25 03:06:18 +02:00
Yoshi Huang
12efacfa8c Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley 2015-08-24 01:31:00 -04:00
Christoph Kerschbaumer
94e2721c34 Bug 1194519 - call AsyncOpen2 within child and parent if securityFlags are present (r=jduell) 2015-08-21 20:33:56 -07:00
Cykesiopka
b4174da7d8 Bug 1195615 - Log a web console warning when a HPKP header is ignored due to a non-built in root cert. r=keeler 2015-08-20 14:33:29 -07:00
Honza Bambas
cb0925e6e8 Bug 1172992 - Send security info override from HttpChildChannel to the parent, r=jduell
--HG--
extra : rebase_source : 72df514bb695ccdfc280ef124254da3107905a59
2015-08-19 14:50:34 -07:00
Christoph Kerschbaumer
3e6c68863f Bug 1193552 - Remove baseURI from LoadInfo (r=sicking,jkitch) 2015-08-19 10:43:30 -07:00
Arnaud Bienner
2755fa9a57 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
--HG--
extra : rebase_source : 81df1495200d3734ea1c4c13818ae764a445f4b3
2015-08-14 00:49:15 +02: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
Fabrice Desré
d0a42c5e92 Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Fabrice Desré
4bccca4c8b Bug 1190995 - backout 0450f02a2b3b for M1 failures 2015-08-14 17:57:34 -07:00
Fabrice Desré
dc4738feca Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Christoph Kerschbaumer
a2927d618d Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking) 2015-08-12 21:36:33 -07:00
Ryan VanderMeulen
ec552557f5 Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
ecdc701ca0 Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking) 2015-08-12 21:36:33 -07:00
Valentin Gosu
b489e23bca Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus 2015-08-12 00:43:48 +02:00
Michal Novotny
a2ea01da63 Bug 1179255 - (fatal) Assertion failure: aRequest == mCancelable, at netwerk/protocol/websocket/WebSocketChannel.cpp:2766, r=mcmanus 2015-08-11 14:50:08 +02:00