Граф коммитов

12443 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly aa9b3c6150 Bug 1233962 P2 Fix service worker xpcshell test to return a dispatcher from ChannelIntercepted(). r=jdm 2015-12-22 11:57:11 -08:00
Ben Kelly 3fcfa5995a Bug 1233962 P1 Call ResetInterception() if the controller is nullptr. r=jdm 2015-12-22 11:57:10 -08:00
Blake Kaplan 92c07bc4ad Bug 1229177 - Show the tracking protection shield for fetch and XHR requests. r=jduell
--HG--
extra : rebase_source : 81f1819355ee85b323cdfff4505e20613c4c5296
2015-12-21 14:12:52 -08:00
Nicholas Hurley 151ac66626 Bug 1233784 - Disallow illegal characters in cookie names. r=jduell 2015-12-17 14:41:38 -08:00
Dragana Damjanovic c2d5cae269 Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jduell 2015-12-19 16:11:39 -05:00
Josh Matthews d2cef8692f Bug 1233845 - Report an interception error and cancel the HTTP channel when encountering a known topcrash situation. r=ehsan 2015-12-19 09:40:06 -05:00
Christoph Kerschbaumer 16f9142afe Bug 1233760 - Revert test_spdy.js to use AsyncOpen2 (r=mcmanus) 2015-12-18 15:23:36 -08:00
Christoph Kerschbaumer c83699f25f Bug 1233760 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 13:31:16 -08:00
Patrick McManus ae19b61b33 Bug 513129 - Dont reuse connections after security prefs change r=hurley 2015-12-17 17:37:53 -05:00
Wes Kocher 48e8bea219 Backed out changeset 82cd6a486698 (bug 1233245) for fetch-request-redirect.https.html failures CLOSED TREE
--HG--
extra : commitid : 2O37Vand5Zd
2015-12-17 16:18:29 -08:00
Ehsan Akhgari 91432f79e5 Bug 1233245 - Propagate the interception information in the non-e10s case for all HTTP redirects, not just the internal ones; r=jdm,bkelly
Doing this work in StartRedirectChannelToURI() was causing us to not set
the bypass service worker flag properly in the case of real HTTP redirects.
This patch also fixes the incorrect test expectation value.
2015-12-17 17:32:38 -05:00
Christoph Kerschbaumer a09beee411 Bug 1232899 - Convert JS callsites to use open2 within netwerk/test (r=mcmanus) 2015-12-17 12:47:01 -08:00
Christoph Kerschbaumer 55c5c7efa6 Bug 1232567 - Convert 10 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-17 12:47:22 -08:00
Honza Bambas 5a7f903046 Bug 1229235 - Make RedirectChannelRegistrar thread-safe. r=jduell 2015-12-04 09:55:00 +01:00
Ten Thumbs 0c54b5682e Bug 234031 - broken parsing of xlen in gzip rfc 1952 r=mcmanus 2015-12-16 16:33:40 -05:00
Nicholas Hurley a6d6d5ef55 Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus
--HG--
extra : commitid : D6pRH1pTQe6
extra : rebase_source : 0b1d5f10a9ebeda7b037e2c147f426908ef241a2
2015-12-09 10:11:04 -08:00
Gijs Kruitbosch 06c03baf6f Bug 1232287 - revert bug 1224046 and fix resource: URIs to not have a base tag, r=glandium,valentin
--HG--
extra : rebase_source : 66d108d2bd4d17306df3ec3e259c9f69772613b1
2015-12-15 12:09:05 +00:00
Carsten "Tomcat" Book 5a86bca15a merge mozilla-inbound to mozilla-central a=merge 2015-12-15 12:16:29 +01:00
Tim Nguyen 8fe11e6a5d Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell 2015-12-08 09:27:00 +01:00
Christoph Kerschbaumer bd418a8bfe Bug 1232422 - Convert 5 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-14 12:36:12 -08:00
Patrick McManus 653ee2068a Bug 1228457 create pref to allow blocking .onion at dns level rfc 7687 r=valentin.gosu 2015-12-11 14:28:21 -05:00
Daniel Stenberg 07e9a26610 Bug 1231552 - Back out bug 1121800, bug 1207798 and bug 1214200 changesets. r=mcmanus 2015-12-10 07:21:00 +01:00
Patrick McManus 2c38f642a7 Bug 1228457 - backout 625248e1115c broke e10s xpcshell test CLOSED TREE r=backout 2015-12-09 13:12:19 -05:00
Patrick McManus 70d505ba42 Bug 1228457 create pref to allow blocking .onion at dns level rfc 7687 r=valentin.gosu 2015-12-04 06:20:15 -05:00
Patrick McManus 4c8ee0930e Bug 1230743 - telemtry for nsConnectionEntry hit rate r=hurley 2015-12-05 07:43:01 -05:00
Bogdan Postelnicu b0926d6bae Bug 1230939 - check the return of sGlobalEntryTables->Get(aContextKey, &diskEntries). r=mayhemer 2015-12-07 06:38:00 +01:00
Jonas Sicking 081cb24a23 Bug 1226909 followup to fix bustage. Make sure that the channel returned by NS_NewChannel doesn't have a loadinfo that indicates that the channel has already been opened 2015-12-06 23:50:49 -05:00
Jonas Sicking 0bb4231605 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-06 18:33:15 -05:00
Jonas Sicking f7193fdf30 Bug 1226909 part 4: Make AsyncOpen2 set taining information on channels. Use this information in XHR and fetch(). r=bkelly 2015-12-06 18:33:15 -05:00
Jonas Sicking 28de02f687 Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb 2015-12-06 18:33:14 -05:00
Jonas Sicking 0e0c8c52ea Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb 2015-12-06 18:33:14 -05:00
Jonas Sicking 6cc5074df0 Bug 1226909 part 1: Do security checks in a redirect handler rather than when opening the redirected channel. r=ckerschb 2015-12-06 18:33:14 -05:00
Randell Jesup a94574d60f Bug 1216837: add explicit error checks for packet length in srtp r=mcmanus rs=jesup 2015-12-05 11:06:40 -05:00
Sebastian Hengst 774236075d Backed out changeset 09d64535bcda (bug 1216687), a7f1a289dd78, 4dbf06183e6c, 26318a5e3006, 9ae2af3cf86d (bug 1226909) for M(1,2,5) oranges. r=backout 2015-12-05 16:34:47 +01:00
Jonas Sicking 993136c2c9 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-05 01:46:21 -08:00
Jonas Sicking 7fae3fd853 Bug 1226909 part 4: Make AsyncOpen2 set taining information on channels. Use this information in XHR and fetch(). r=bkelly 2015-12-05 01:46:20 -08:00
Jonas Sicking ff12f48c5a Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb 2015-12-05 01:46:20 -08:00
Jonas Sicking 918c689657 Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb 2015-12-05 01:46:20 -08:00
Jonas Sicking df33e62850 Bug 1226909 part 1: Do security checks in a redirect handler rather than when opening the redirected channel. r=ckerschb 2015-12-05 01:46:20 -08:00
Nicholas Nethercote 59bbf6548a Bug 1187134 (part 5) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : d47d5a91025ce6a06ec63155d68b0969c45e4d29
2015-12-03 14:00:04 -08:00
Nicholas Nethercote edfdcd39d9 Bug 1187134 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : 0d62ad6d5e6cad0d4202cb58ec77890e3213cecf
2015-12-03 14:00:03 -08:00
Nicholas Nethercote 2e1080a108 Bug 1187134 (part 3) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : c7de2d58545b298f362a042788531fe9e13fc52a
2015-12-03 14:00:02 -08:00
Nicholas Nethercote abd63ceb7a Bug 1187134 (part 2) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : 1c69a912e8c27cf9789057f0813ec3bbfd30c57c
2015-12-03 13:59:58 -08:00
Nicholas Nethercote b342baf62e Bug 1187134 (part 1) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
--HG--
extra : rebase_source : 0955e8f7a94794d7615c3a17650908d410b52559
2015-11-29 14:01:44 -08:00
Jan Beich 814acd7ab8 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00
Bogdan Postelnicu 797941ef16 Bug 1228342 - initialize mTainting by all constructors. r=bkelly 2015-12-03 02:39:00 +01:00
Nigel Babu e414eeae7a Backed out changeset 7b77be698443 (bug 1228342) for build bustage ON CLOSED TREE 2015-12-03 15:51:20 +05:30
Bogdan Postelnicu bdffacc229 Bug 1228342 - initialize mTainting by all constructors. r=bkelly 2015-12-02 00:43:00 +01:00
Nathan Froyd 9a956c9885 Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
Nathan Froyd ce11c393a5 Bug 1223808 - part 2 - use UniquePtr<uint8_t[]> instead of nsAutoArrayPtr<SHA1Sum::Hash> in HandleHashKey; r=michal 2015-11-18 15:56:47 -05:00
Nathan Froyd fcdd745657 Bug 1223808 - part 1 - optimize creating a WebSocketFrame with a payload; r=mcmanus
This function:

- Allocates a block of memory;
- Copies things into that block of memory;
- Allocates another block of memory inside nsAutoCString;
- Copies into our string from the block of memory we just allocated.

Clearly we can avoid a memory allocation and some copying by just
allocating the amount of data we need in the string first, and copying
things into the string.
2015-11-08 21:26:46 -05:00
Nathan Froyd 3071ec2419 Bug 1218454 - part 2a - fix bootlegging of nsContentUtils.h includes from nsILoadContext.h; r=bz 2015-12-01 21:49:38 -05:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Lars T Hansen 7664162964 Bug 1176214 - Part 14: Changes to netwerk. r=jduell
--HG--
extra : rebase_source : aaba474cc050b07188f6c78eb17d31f2733c91fc
2015-11-25 17:30:52 +01:00
Carsten "Tomcat" Book 5adcabb340 merge mozilla-inbound to mozilla-central a=merge 2015-12-02 15:20:57 +01:00
Carsten "Tomcat" Book 44cd9f4db8 Backed out changeset 7a9e01e904b0 (bug 1137681) for test bustage on a CLOSED TREE 2015-12-02 11:28:46 +01:00
Tim Nguyen e0f8972f78 Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell 2015-12-01 13:08:00 +01:00
Nicholas Nethercote ddc78c3b0c Bug 1229458 - Remove SizeOfIncludingThisMustBeUnshared() from string classes. r=mccr8.
The patch changes all uses of SizeOfIncludingThisMustBeUnshared() to
SizeOfIncludingThisIfUnshared(). This incurs the (tiny) cost of an unnecessary
IsReadonly() check for guaranteed-unshared strings, but avoids the possible
assertion failures that would occur when MustBeUnshared() was used incorrectly
on shared strings, which is an easy mistake to make.

--HG--
extra : rebase_source : b1e91f1c19bcbe0521b0ce461d6c90512ca938ef
2015-12-01 15:36:26 -08:00
Mike Hommey b2e31e6ade Bug 1225682 - Don't use nsAuto{,C}String as class member variables in netwerk/. r=mcmanus 2015-12-02 11:04:37 +09:00
Yury Delendik b984c50fec Bug 1218029 - Adds ScriptLoadHandler and implements OnIncrementalData callback. r=djvj
--HG--
extra : commitid : 7TyrlgQ2f2Z
2015-12-01 08:00:58 -06:00
Yury Delendik 66199890c4 Bug 1218029 - Adds IncrementalStreamLoader interface stubs. r=djvj
--HG--
extra : commitid : J0UubFG9gvz
2015-11-30 08:54:11 -06:00
Mark Goodwin 31cec702e0 Bug 1228451 - Set short-lived cert lifetime to the max OCSP response lifetime. r=keeler
--HG--
extra : commitid : LMpRTyagmR3
extra : rebase_source : 3fe739c7d448b4a587a31eded6e7cd2cf4334afe
2015-11-30 22:05:07 +00:00
Christoph Kerschbaumer 413a60a063 Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking) 2015-11-17 17:35:30 -08:00
Blake Kaplan b62a6327bd Bug 1171215 - Compute third-partyness in the loadinfo instead of nsIHttpChannelInternal so that other protocols correctly respect the third-party cookie pref. r=sicking/ckerschb 2015-11-30 13:25:29 -08:00
Nicholas Nethercote dab3f8a4f6 Bug 1186783 (follow-up) - Bustage fix for Gonk. 2015-11-29 15:25:32 -08:00
Nicholas Nethercote f5561f39f2 Bug 1186783 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 16:46:35 -08:00
Nicholas Nethercote 4a7f327575 Bug 1186783 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 16:46:24 -08:00
Nicholas Nethercote 5fd362d4cf Bug 1186783 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 16:46:10 -08:00
Nicholas Nethercote 9f8635cffa Bug 1186783 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 16:44:24 -08:00
Nicholas Nethercote 7123371a1f Bug 1186783 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 15:31:28 -08:00
Patrick McManus cff263f5f6 Bug 1133873 - some spdy logs r=hurley 2015-11-29 16:11:16 -05:00
Simon Montagu 6ca8e09bc1 Bug 1218179: move from transitional to non-transitional IDNA2008 processing, r=jfkthame 2015-10-25 23:53:21 -07:00
Valentin Gosu 0779b66d18 Bug 1228640 - Backout bug 1183781 (changeset b9b6a1567ef6) for causing crash a=me 2015-11-28 00:20:01 +01:00
Carsten "Tomcat" Book 358e4575c4 merge mozilla-inbound to mozilla-central a=merge 2015-11-26 16:54:27 +01:00
Daniel Stenberg 1a4f344e08 Bug 1227931 - init Http2Stream::mReceivedData in the constructor. r=nwgh 2015-11-25 05:15:00 +01:00
Yoshi Huang 4b500464f5 Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Jonathan Hao 7882aa6f0e Bug 1225422 - Update the PrivilegedPackageRoot certificate. r=keeler 2015-11-19 15:08:05 +08:00
Valentin Gosu 3890536ca3 Bug 1222352 - Resource Timing - nextHopProtocol does not work in e10s r=nwgh 2015-11-24 13:42:47 +01:00
Andrew McCreight a29a644203 Bug 1226709 - Enable two mochitests that seem to work with e10s. r=bz
--HG--
extra : rebase_source : df2d5629f3e9f3d7cbef7cbbaa773a064d88856b
2015-11-20 11:19:00 +01:00
Jonas Sicking 66bbe5bc72 Bug 1217456: Add a security flag for controlling redirects. Use this flag in fetch() implementation. r=bkelly,jduell 2015-11-23 18:47:10 -08:00
Carsten "Tomcat" Book 4e4b15962c Merge mozilla-central to mozilla-inbound 2015-11-25 13:57:30 +01:00
Valentin Gosu c62bdbfd66 Bug 1226760 - ViewSource doesn't work for packaged app resources r=mcmanus
* The packaged app service should use the URI of the channel, not the URI of the channel's principal.
2015-11-25 12:44:43 +01:00
Ben Bucksch 2572e8c3db Bug 1200802 - Accept RFC1929 SOCKS credentials in proxyInfo. r=michal 2015-11-24 22:56:00 +01:00
Shih-Chiang Chien 215c71de0b Bug 1225726 - enable nsDNSServiceDiscovery on OS X. r=mcmanus. 2015-11-18 14:02:31 +08:00
Patrick McManus ad7e5f708d Bug 1174899 - discarded spdy data with fin attributed to wrong stream r=bagder 2015-11-22 16:23:18 -05:00
Patrick McManus cb590dc42e Bug 1174899 - fixup log format strings for spdy/h2 r=bagder 2015-11-20 15:33:04 -05:00
Valentin Gosu 8a5616fdc5 Bug 1183781 - Small leak in DNS.cpp and nsHostResolver.cpp r=sworkman
* makes AddrInfo extend nsISupports
* uses RefPtr for managing AddrInfo and nsHostResolver in nsHostResolver.cpp
2015-11-23 13:02:41 +01:00
Jan Varga c1c950896a Bug 961049 - Part 3: Move PersistenceType serializer from indexedDB to quota module; r=baku 2015-11-22 10:43:34 +01:00
Ehsan Akhgari 5daec7e3a8 Bug 1210302 - Part 6: Update the documentation of the methods in the IDL file; r=mcmanus 2015-11-20 16:32:56 -05:00
Ehsan Akhgari 9b27b6fe61 Bug 1210302 - Part 5: Add a unit test for parseRequestContentType; r=mcmanus 2015-11-20 16:32:54 -05:00
Wes Kocher 5d41c4ca14 Merge m-c to fx-team, a=merge
--HG--
extra : commitid : D0yQXR2v0Qz
2015-12-01 16:11:47 -08:00
Kris Maglione 758d568a88 Bug 1209184: Part 2 - [webext] Localize CSS files served from moz-extension: channels. r=jdm
--HG--
extra : commitid : AydP9pd8Oa0
extra : rebase_source : 11dfd5aff943faa3472577241a502ace3f87996e
extra : source : 9c63ffd499ebc4ed4f164d4b35e09a7a03c36387
2015-11-27 16:03:01 -08:00
Christoph Kerschbaumer 143b334dd4 Bug 1182546 - Use channel->Open2() in parser/htmlparser/nsExpatDriver.cpp (r=bz) 2015-11-20 10:55:54 -08:00
Christoph Kerschbaumer 1a042dd25b Bug 1226444 - Use helper function to identify preloads. r=sicking 2015-11-19 17:02:40 -08:00
Nigel Babu ba8444d785 Backed out changeset 95069f2ce648 (bug 1182546) for Android M(c) bustage ON A CLOSED TREE 2015-11-19 14:26:33 +05:30
Christoph Kerschbaumer ab10273998 Bug 1182546 - Use channel->Open2() in parser/htmlparser/nsExpatDriver.cpp (r=bz) 2015-11-18 19:23:28 -08:00
Nicholas Nethercote 7226cb18c8 Bug 1187137 (part 3) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
--HG--
extra : rebase_source : 14445e0a69e5fdff108857b443e1e8fa2829415f
2015-11-03 17:05:34 -08:00
Nicholas Nethercote 1b73f741f6 Bug 1187137 (part 2) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
--HG--
extra : rebase_source : 07e6ca520d40492fe5ab7975c0026ed5511298bd
2015-11-03 17:00:30 -08:00
Nicholas Nethercote 7af30fe1a6 Bug 1187137 (part 1) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=michal.
--HG--
extra : rebase_source : 7448eda5a80a75d3b117599da849ae2e9df0b255
2015-11-03 16:31:40 -08:00
Mike Hommey 05bb883ae6 Bug 1225407 - Replace nsInterfaceHashtable::EnumerateRead() call in SubstitutingProtocolHandler with an iterator. r=michal 2015-11-19 08:05:51 +09:00
Valentin Gosu b691ca8d67 Bug 1142083 - Add test for IDN Unicode domain redirect r=mcmanus 2015-06-20 00:03:57 +03:00
Valentin Gosu c91754df8d Bug 1218918 - Issues with devtools "work offline" when connectivity changes r=mcmanus,dao
* Flip the network.offline-mirrors-connectivity pref, so that ioservice.offline means the same as devtools work offline
* ioService.manageOfflineStatus shouldn't be changed when going to offline mode.
* Add logging to nsIOService in order to track offline/connectivity issues
2015-11-18 15:25:39 +01:00
Valentin Gosu 67b179e6f9 Bug 412457 - should unescape hostname first, then perform IDNA r=mcmanus 2015-11-18 15:25:27 +01:00
Mike Hommey 329021a041 Bug 1224046 - Remove <base href> from directory listings. r=mcmanus
There was an attempt to remove it in bug 358128, but that was backed out
because of FTP listings, where e.g. a 'mozilla' link on the
ftp://ftp.mozilla.org/pub listing (without a trailing slash) would go to
ftp://ftp.mozilla.org/pubmozilla instead of ftp://ftp.mozilla.org/pub/mozilla.

It appears that versions of Firefox at the time of that bug wouldn't "redirect"
directories to the same url with a trailing slash when one was not provided.
It also appears that current versions of Firefox *do* "redirect" in such a way,
such that the <base href> is now unnecessary.

That <base href> prevents links from resource://... directory listings to work
properly because of security contraints added in bug 1184387, as they force
links to go to a jar/file url instead of the equivalent resource://... url,
which removing <base href> allows.
2015-11-18 08:41:40 +09:00
Ben Kelly d6cd5e961e Bug 1217909 P8 Track navigation interceptions per scope in ServiceWorkerManager. r=catalinb 2015-11-16 08:04:11 -08:00
Henry c5b6b535ec Bug 1224508 - Use URI path without reference as the callback key. r=valentin. 2015-11-13 02:15:00 +01:00
Henry daec939f23 Bug 1178526 - Create docshell with packageId from TabContext. r=sicking. 2015-10-29 00:52:40 +08:00
sajitk 8eb3a68c9e Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn 2015-11-15 14:48:08 +01:00
Daniel Stenberg 9dad85ec49 Bug 1207798 - add pref to toggle proxy behavior when inaccessible. r=mcmanus 2015-11-10 15:27:45 +01:00
Magnus Melin 12d47d0d77 Bug 1221758 - don't run cache2 tests when cache2 isn't used. r=michal.novotny
Was causing test failures for Thunderbird where cache2 isn't in use yet.
2015-11-12 22:12:50 +02:00
Christoph Kerschbaumer d9f1276ace Bug 663570 - MetaCSP Part 3: Upgrade insecure requests changes (r=bz) 2015-11-14 19:28:38 -08:00
Phil Ringnalda 596e8ff827 Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Ehsan Akhgari f51834eac5 Bug 1214305 - Part 7: Decide in the child process whether an intercepted channel should go through a secure upgrade; r=mcmanus
This is OK from a security perspective, since this decision only affects
whether the channel will be intercepted with the secure URI in the child
process.  If the intercepting service worker decides to fall back to an
actual network request, we send the request to the parent process with
the original pre-upgrade URI, and the parent process will still be in
charge of whether a network visible HTTP request should be upgraded.
2015-11-02 11:27:00 -05:00
Ehsan Akhgari cef4c60f16 Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus 2015-11-02 11:27:00 -05:00
Ehsan Akhgari 03d8835f92 Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm 2015-11-02 11:27:00 -05:00
Ehsan Akhgari 1295fc0d03 Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus 2015-11-02 11:27:00 -05:00
Ehsan Akhgari 39d5e41384 Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus 2015-11-02 11:27:00 -05:00
Michal Novotny a040388dea Bug 1222782 - TSan: data race netwerk/cache2/CacheIOThread.cpp:148 Target (race on mXPCOMThread), r=jseward 2015-11-13 18:49:29 +01:00
Nicholas Hurley 31010dbad5 Bug 1224328 - Don't infinite loop when parsing headers with newlines. r=mcmanus
--HG--
extra : rebase_source : c044f7bd991b7e48010d6bb6997585b1fc846d1d
2015-11-12 14:44:31 -08:00
Nicholas Nethercote caf1f67d29 Bug 1186783 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/. r=michal.
--HG--
extra : rebase_source : ca2350bb6cc806972841347430265d6b1b374a53
2015-11-03 16:25:22 -08:00
Nigel Babu 9fdcc7ce00 Backed out changeset 80a79987da8b (bug 1221758) for xpcshell bustage on CLOSED TREE 2015-11-13 14:49:14 +05:30
Magnus Melin 95a949dd6a Bug 1221758 - don't run cache2 tests when cache2 isn't used. r=michal.novotny
Was causing test failures for Thunderbird where cache2 isn't in use yet.
2015-11-13 08:12:30 +02:00
Michal Novotny 4eff3a14a2 Bug 1190951 - TSan: data race netwerk/cache2/CacheIndex.cpp:1397 CacheIndex::IsUpToDate, r=valentin.gosu 2015-11-12 11:07:48 +01:00
Nathan Froyd a701380ad7 Bug 1222170 - fix initialization order in ScopedWLANObject; r=jimm
Member fields are supposed to be initialized in the order they are
declared, but the constructor of ScopedWLANObject initialized mObject
prior to mLibrary.  This is probably harmless, but it does cause a
warning on clang-cl, so let's fix it.
2015-11-05 14:50:02 -05:00
Nathan Froyd 245e39afde Bug 1222867 - part 2 - be smarter about transferring ownership of WebSocketFrame; r=mcmanus
WebSocketFrames are created only to be transferred in to
WebSocketEventService::Frame{Sent,Received}, where a strong reference is
taken to them by a runnable posted to the main thread.  Let's avoid an
extra AddRef/Release cycle by passing through already_AddRefed
structures.
2015-11-08 20:52:27 -05:00
Nathan Froyd bb66fde0a0 Bug 1222867 - part 1 - return already_AddRefed from WebSocketEventService::CreateFrameIfNeeded; r=mcmanus
The result of CreateFrameIfNeeded is always assigned to a RefPtr, so we
can save a little code space by moving the AddRef into the callee,
rather than doing it in the caller.
2015-11-08 20:44:11 -05:00
Jonas Sicking 69d737d7df Bug 1222829: Remove URIChecker. r=mcmanus 2015-11-09 13:48:05 -08:00
Christoph Kerschbaumer c209162622 Bug 1222297 - Use channel->Open2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-08 18:54:38 -08:00
Nathan Froyd 0d181baf2d Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus
Many places that (re-)declared gSocketThread already included
nsSocketTransportService2.h; we can delete the declaration for those
places.  For all the other places, we need to include
nsSocketTransportService2.h.
2015-11-06 12:00:37 -05:00
Henry ba8fe97d17 Bug 1214079 - Doom the package cache if the signature verification failed. r=valentin 2015-11-05 23:44:00 +01:00
Mike Hommey 4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Mike Hommey 762aba02cd Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Ethan Tseng 8364215e41 Bug 1220570 - Potential cookie lost while downgrading from Aurora 44 to 43. r=jduell
--HG--
extra : rebase_source : f5fdca0cca8b67dd2ffb702993dfa3559cab08b9
2015-11-03 18:40:58 +08:00
Gijs Kruitbosch 3718ce387c Bug 1221444, r=bz
--HG--
extra : commitid : KNAjQV8ZZZG
extra : rebase_source : aae0193c47347b32a85a3c374b8dc6f2f2fb0fb8
2015-11-04 16:54:44 +00:00
Nathan Froyd f8a4c9d877 Bug 1221151 - use [infallible] in nsILoadInfo.idl instead of manual %{C++ blocks; r=jduell
Using [infallible] generates the exact same code as we already have in
the %{C++ blocks.  Let's get rid of the %{C++ blocks.
2015-11-03 10:51:24 -05:00
Jonathan Watt d507cbda58 Bug 1221103 - Add a comment to nsIChannel::securityInfo noting that this info may appear on non-nsHttpChannels and how that may happen. r=bz IGNORE IDL 2015-10-06 18:25:10 +01:00
Ben Kelly 8267928bb3 Bug 1220007 P2 Make InterceptedChannel's collect logs locally and only flush to nsIChannel on main thread r=bz 2015-11-03 11:20:56 -08:00
Ben Kelly c59018c14a Bug 1220007 P1 Allow ConsoleReportCollectors to flush to another collector. r=bz 2015-11-03 11:20:56 -08:00
Andrea Marchesini 0391daa755 Bug 1219939 - make nsTemporaryFileInputStream nsISeekableStream, r=jduell 2015-11-03 15:12:23 +00:00
Julian Seward c93c98f458 Bug 1218506 - Uninitialised value use in nsHttpTransaction::OnTransportStatus. r=mcmanus. 2015-11-03 15:03:16 +01:00
Carsten "Tomcat" Book 3e511b9fbb Merge mozilla-central to mozilla-inbound 2015-11-03 14:09:31 +01:00
Carsten "Tomcat" Book 507e90cf52 Backed out changeset c253b6bd00b1 (bug 1220007) for causing a bustage on B2g-emulator L builds which is only visible on b2g-inbound on a CLOSED TREE 2015-11-03 14:08:50 +01:00
Carsten "Tomcat" Book 042b4d64cd Backed out changeset d8d75be11275 (bug 1220007) 2015-11-03 14:08:04 +01:00
Chris Peterson 5cb548e84b Bug 1125947 - Fix clang warnings in netwerk/sctp/datachannel. r=jesup
netwerk/sctp/datachannel/DataChannel.cpp:727:11 [-Wunreachable-code] code will never be executed
netwerk/sctp/datachannel/DataChannel.cpp:1835:19 [-Wshadow] declaration of 'i' shadows a previous local
netwerk/sctp/datachannel/DataChannel.h:531:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-01 23:03:32 -08:00
Patrick McManus 073d4a9803 bug 1219466 - convert netwerk to LazyLogModule r=valentin.gosu 2015-11-02 23:35:29 -05:00
Christoph Kerschbaumer 1ee2473768 Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-02 17:31:08 -08:00
Liang-Heng Chen 95414d19cc Bug 1217807 - Part 1: use ServiceWatcher to extend life cycle of mDNS operators; r=schien
--HG--
extra : rebase_source : 8a3db0a321e666e8dc297958e085954530a33571
2015-11-03 01:03:00 +01:00
Wes Kocher 5c94e0f593 Merge m-c to inbound, a=merge
--HG--
extra : commitid : 2sVZQRwbKyB
2015-11-02 15:57:48 -08:00
Wes Kocher 3696443a14 Merge inbound to m-c a=merge
--HG--
extra : commitid : Iy93sktRpdv
2015-11-02 15:12:16 -08:00
Fabrice Desré 5f7f5f2afc Bug 1220061 - Android UA is not correct when MOZ_UA_OS_AGNOSTIC is set r=gerv 2015-11-02 09:23:28 -08:00