Commit Graph

7277 Commits

Author SHA1 Message Date
Ben Kelly
af5f79a394 Bug 1244122 P1 Always support SW intercept even when http cache is disabled. r=mayhemer 2016-02-01 12:29:40 -08:00
Honza Bambas
1a086bb8f8 Bug 1211941 - Let nsICacheStorage.openTruncate impl return an HTTP cache entry write handle, r=michal 2016-01-12 07:31:00 +01:00
Andrea Bartolucci
fb064cb435 Bug 137852 - Add a new working HTTP authentication identity to the begining of the session cache list. r=honzab 2016-01-21 11:22:00 +01:00
Nicholas Nethercote
d9cbd2a95d Bug 1187137 (part 13) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 16:02:26 +11:00
Nicholas Nethercote
89f8d06d6e Bug 1187137 (part 12) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 15:58:07 +11:00
Nicholas Nethercote
38a630d281 Bug 1187137 (part 11) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 15:57:49 +11:00
Nicholas Nethercote
433a9de32b Bug 1187137 (part 10) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 15:20:55 +11:00
Nicholas Nethercote
d46d78b00f Bug 1187137 (part 9) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 15:17:28 +11:00
Nicholas Nethercote
a1d0e0be9a Bug 1187137 (part 8) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-29 15:11:36 +11:00
Phil Ringnalda
863943dfb7 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
f94b4ff6a2 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Phil Ringnalda
c6000dca8a Merge m-c to m-i 2016-01-30 09:43:42 -08:00
Phil Ringnalda
accaa766dd Merge m-i to m-c, a=merge 2016-01-30 09:28:35 -08:00
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Xidorn Quan
44aef8beda Bug 1241901 part 1 - Remove nsAutoPtr uses in nsNotifyAddrListener on Linux. r=bagder 2016-01-30 10:33:41 +11:00
Wes Kocher
033e95c521 Merge m-c to fx-team, a=merge 2016-01-29 13:44:12 -08:00
Marco Bonardo
9bb86e5052 Bug 1242961 - nsStandardURL still allows to build valid nsIURIs longer than network.standard-url.max-length. r=valentin 2016-01-26 17:23:22 +01:00
Nicholas Nethercote
db458ccbdc Bug 1187137 (part 7) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-27 19:18:33 -08:00
Nicholas Nethercote
5fd19db734 Bug 1187137 (part 6) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-27 19:04:38 -08:00
Nicholas Nethercote
03ecd95771 Bug 1187137 (part 5) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-27 18:38:45 -08:00
Nicholas Nethercote
e108e65846 Bug 1187137 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/protocol/ with iterators. r=valentin. 2016-01-27 16:05:00 -08:00
Bill McCloskey
8916b1d998 Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Wes Kocher
644a0a8c9b Merge m-c to inbound, a=merge 2016-01-28 17:50:18 -08:00
Wes Kocher
8c02f0da52 Merge fx-team to central, a=merge 2016-01-28 17:47:33 -08:00
Patrick McManus
227a29a044 Bug 1242597 - backout 7e32d3531b96def705f7e5a84045365d29716ce1 r=backout 2016-01-28 15:17:57 -05:00
Tooru Fujisawa
034d724e9d Bug 1241377 - Part 2: Add test for nsIFormPOSTActionChannel. r=mayhemer 2016-01-28 19:38:34 +09:00
Michael Madsen
7a7a57e47c Bug 1241377 - Part 1: Implement nsIFormPOSTActionChannel for the channel accepts form POST. r=mayhemer 2016-01-28 19:38:34 +09:00
Jeff Walden
c86cd2047c Bug 1079844 - Change various non-js/ files/tests/etc. to refer to detaching of ArrayBuffers rather than neutering. (DOM references to "neutering" of DOM things remain as neutering.) r=bz 2016-01-25 18:10:22 -08:00
Masatoshi Kimura
335b9a49c6 Bug 1242926 - Increase the max retry attempt number. r=mcmanus 2016-01-28 05:44:48 +09:00
Ehsan Akhgari
dc29e5f515 Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm 2016-01-27 15:26:27 -05:00
Sebastian Hengst
bec64c8499 Backed out 4 changesets (bug 1195173) for webtest failures. r=oranges on a CLOSED TREE
Backed out changeset 92b7c3c6e875 (bug 1195173)
Backed out changeset d026d6f185ab (bug 1195173)
Backed out changeset 3b51d7bae8e4 (bug 1195173)
Backed out changeset a75bb8d083e8 (bug 1195173)
2016-01-27 20:24:52 +01:00
Christoph Kerschbaumer
086741cd95 Bug 1195173 - Convert ExtensionProtocolHandler to use channel->Open2() (r=maglione) 2016-01-26 15:31:02 -08:00
Gijs Kruitbosch
36dca3c1a5 Bug 1172165 - check all nested URI schemes in CAPS. Make view-source dangerous to load, and about: URIs use per-URI flags so they keep working, r=bz
Also, add an opt-out for crashtest/reftest for the view-source thing so they don't all break, r=bz
2015-12-11 08:06:41 -05:00
Dragana Damjanovic
7bc2345a85 Bug 1243062 - Add telemetry for PR_Close time. r=mcmanus 2016-01-26 11:15:00 +01:00
Bogdan Postelnicu
3e1c7f1654 Bug 1242452 - only if PR_GetIdentitiesLayer return valid pointer continue and pass it's result to PR_GetIdentitiesLayer. r=mcmanus 2016-01-25 15:44:59 +02:00
David Keeler
4db6ac86e6 bug 1239609 - audit nsNSSShutDownObject destructors for correctness r=Cykesiopka,sworkman 2016-01-22 14:49:39 -08:00
Patrick McManus
db2c34fa4e Bug 567365 - allow bfcache for no-cache/https r=jduell r=bz 2016-01-26 13:27:46 -05:00
Carsten "Tomcat" Book
c8e497f7ea Backed out changeset e73523d185a7 (bug 567365) for m-oth failures in test_bug112564.xul 2016-01-26 16:11:13 +01:00
Patrick McManus
b4d84742e4 Bug 567365 - allow bfcache for no-cache/https r=jduell r=bz 2016-01-25 16:10:06 -05:00
Ehsan Akhgari
2002fe9e31 Bug 1243942 - Bypass service workers for WebSocket handshake channels; r=bkelly
Without this patch, the presence of a service worker that doesn't
respond to the FetchEvent that we dispatch for the handshake request
causes an internal redirect, which is unacceptable to the handshake
channel, therefore all WebSocket channels break on such pages.

Moreover, the integration of Web Sockets and Service Workers is unclear
yet, so these channels should bypass service workers completely.
2016-01-29 09:31:24 -05:00
Tooru Fujisawa
2c4cc067ba Bug 1241100 - Part 2: Add testcase. r=mayhemer, a=abillings 2016-01-29 16:47:15 +09:00
Patrick McManus
bba8caf2b0 Bug 1242597 - Fix nsSocketTransport reference loop r=dragana 2016-01-19 17:48:15 -05:00
Dragana Damjanovic
b4c426b4b8 Bug 1241295 - Limit time for PR_Close calls during shutdown in nsUDPScket. r=mcmanus 2016-01-20 16:01:00 -05:00
Patrick McManus
35c8316933 Bug 1233774 - fix Leak EventTokenBucket on shutdown r=dragana 2016-01-21 12:40:15 -05:00
Andrea Marchesini
e03a50542a Bug 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz 2016-01-22 11:55:54 +00:00
Carsten "Tomcat" Book
eb8bd09a81 Backed out changeset b1bbd5c1d6c0 (bug 772528) for xpcshell test failures 2016-01-22 11:46:50 +01:00
Andrea Marchesini
be6fc8d36f Bug 1221320 - XMLHttpRequest authentication should not require auth prompt dialog, r=honzab.moz 2015-12-30 18:47:55 +00:00
Eden Chuang
fde8eb33eb Bug 772528 - Remove nsFileInputStream::Seek() from nsPartialFileInputStream::Init(). r=baku 2016-01-21 14:08:18 +08:00
Randell Jesup
0ebfe23923 Bug 1194259: Make ICE IP restriction to default routes work in E10S r=jesup,mcmanus,drno 2016-01-22 02:47:01 -05:00
Honza Bambas
1268c0083f Bug 1064378 - Don't rewrite custom Authorization header set on a channel by cached credential. r=jduell 2016-01-21 09:33:00 -05:00
Honza Bambas
0ebd02e31f Bug 1154124 - Prevent recursion when calling HTTP cache entry's callbacks. r=michal 2016-01-14 21:16:06 +01:00
Patrick McManus
9ed7547c17 Bug 366023 - Allow h/1.0 chunked encodings r=bagder 2016-01-19 14:22:50 -05:00
Carsten "Tomcat" Book
d6d7f5602f merge mozilla-inbound to mozilla-central a=merge 2016-01-21 11:49:16 +01:00
Carsten "Tomcat" Book
79359c90a2 Merge mozilla-central to fx-team 2016-01-20 15:37:48 +01:00
Honza Bambas
21b84bf0aa Bug 1165256 - Make appcache fully work with OriginAttribues. r=jduell 2016-01-18 20:20:08 +01:00
Honza Bambas
288ccaaaf4 Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
Ehsan Akhgari
b01875643e Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Kate McKinley
2eedabd0f6 Bug 1195881 - Contextual Identity working under e10s. r=tanvi r=sicking r=baku 2016-01-20 00:28:00 +01:00
Honza Bambas
f10ecff680 Bug 451081 - Introduce ORIGIN_IS_FULL_SPEC protocol handler flag, r=bz+standard8 IGNORE IDL 2016-01-20 20:02:23 +01:00
Bogdan Postelnicu
6d16bf7cd1 Bug 1240515 - change allocator for addr and localaddr from malloc to new, since the smart pointer that is used uses delete operator. r=dragana 2016-01-20 12:31:01 +02:00
Honza Bambas
b9ec7368d6 Bug 1239687 - Leak invalid/doomed file handles immediately after HTTP cache shutdown. r=michal 2016-01-14 08:14:00 +01:00
Dragana Damjanovic
3205549e19 Bug 1238017 - Remove ClosingService. r=mcmanus 2016-01-08 10:20:00 -05:00
Ryan VanderMeulen
89c1dece78 Bug 1234548 - Remove unused variables. r=bustage 2016-01-17 13:07:38 -05:00
Dragana Damjanovic
40a6cd7f23 Bug 1240269 - Do not open UDP socket during shutdown. r=mcmanus 2016-01-16 01:19:00 -05:00
Dragana Damjanovic
804586ceb5 Bug 1234548 - Don't send network change events if routes are changed. r=mcmanus, r=bagder 2016-01-11 07:40:00 -05:00
Patrick McManus
5204a00fcf Bug 1240122 - threadsafe fix for getselfaddr() r=dragana 2016-01-15 12:16:01 -05:00
Christoph Kerschbaumer
a133946ebd Bug 1234368 - Convert netwerk/test/unit/test_bug203271.js to use asyncOpen2 (r=mcmanus) 2016-01-15 11:38:21 -08:00
Christoph Kerschbaumer
558c941198 Bug 1234757 - Use channel.asyncOpen2 within netwerk/test/unit/test_protocolproxyservice.js (r=mcmanus) 2016-01-15 11:34:34 -08:00
Patrick McManus
f7787419e4 Bug 1234757 - test_protocolproxyservice does not need 2nd arg to asyncopen r=ckerschb 2016-01-15 11:01:20 -05:00
Dragana Damjanovic
14ef312de9 Bug 1239655 - Do not do PR_ConnectContinue during the shutdown. r=mcmanus 2016-01-14 08:53:00 -05:00
Christoph Kerschbaumer
bae3325563 Bug 1233098 - Refactor CSP upgrade insecure requests flag within loadInfo (r=sicking) 2016-01-14 12:38:15 -08:00
Honza Bambas
0ceed7c5e9 Bug 913822 - Shutdown I/O time limit for HTTP cache. r=michal 2016-01-13 16:11:00 -05:00
Dragana Damjanovic
edb40f9117 Bug 1238910 - Rework shutdown necko. r=mcmanus 2016-01-14 04:42:00 -05:00
Patrick McManus
8549951f61 Bug 1240254 - necko tests assumed synchronous error reporting r=dragana 2016-01-15 22:56:06 -05:00
Dragana Damjanovic
d8d93049f4 Bug 1240481 - Limit PR_Close calls during shutdown. r=mcmanus 2016-01-18 08:20:00 +01:00
Dragana Damjanovic
d8321b590f Bug 1239961 - Minimize amount of PR_Poll and PR_Read calls during shutdown. r=mcmanus 2016-01-15 08:21:00 +01:00
Honza Bambas
ca68c1f3ae Bug 1220272 - Fix signalling in HTTP cache test code suspender. r=michal 2016-01-14 11:24:00 +01:00
Henry Chang
9338408eb7 Bug 1216443 - "moz-safe-about:blank" to signed content should switch process. r=kanru 2016-01-18 00:07:00 +01:00
Andrea Marchesini
3b27179f66 Bug 1199466 - part 1 - Expose originAttributes in nsICookie, r=jduell 2016-01-14 08:03:50 +00:00
Nigel Babu
944804400b Backed out changeset f51b921e1ccf (bug 1233098) for browser-chrome bustage 2016-01-14 08:04:37 +05:30
Christoph Kerschbaumer
719db9a7f7 Bug 1233098 - Refactor CSP upgrade insecure requests flag within loadInfo (r=sicking) 2016-01-13 15:51:43 -08:00
Dragana Damjanovic
95b5f3b7b3 Bug 1235509 - Link monitor should not fire link change events for the refresh of the ipv6 lifetime. r=bagder 2016-01-11 06:42:36 -08:00
Bogdan Postelnicu
25341e0a6a Bug 1226526 - NS_ENSURE_ARG_POINTER on result to remove warning added by scan-build. r=mcmanus 2016-01-13 11:41:04 +02:00
Honza Bambas
bc7deb81b7 Bug 1121672 - Make CacheFile::IsDoomed() protect mHandle with lock, r=michal 2016-01-12 09:24:00 +01:00
Andrea Marchesini
2d7253a040 Bug 1231378 - part 4 - Fix uninitialized members of classes in netwerk/widget/storage/uriloader/memory/tools, r=smaug 2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book
8ce45e3221 Backed out changeset d6b0ffe1a7b3 (bug 1231378) 2016-01-12 15:48:54 +01:00
Andrea Marchesini
f98d215bd8 Bug 1231378 - part 4 - Fix uninitialized members of classes in netwerk/widget/storage/uriloader/memory/tools, r=smaug 2016-01-12 13:57:37 +00:00
Dragana Damjanovic
7a7bbbb341 Bug 1236277 - Retry all connections not just the reused one. r=mcmanus 2016-01-11 05:20:00 +01:00
Eric Rahm
03a18ab1cb Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Xidorn Quan
fd62659376 Bug 1238404 - Use 'using' directive instead of having separate Dispatch impl in subclasses of nsIEventTarget. r=froydnj 2016-01-12 15:18:47 +11:00
Phil Ringnalda
b65942359b Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
32a42d191e Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Patrick McManus
7371eb3c6a Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu
---
 netwerk/base/ARefBase.h                            |  2 ++
 netwerk/base/CaptivePortalService.cpp              |  1 +
 netwerk/base/CaptivePortalService.h                |  1 +
 netwerk/base/EventTokenBucket.cpp                  |  4 +++-
 netwerk/base/LoadContextInfo.cpp                   |  3 +++
 netwerk/base/LoadInfo.cpp                          |  3 +++
 netwerk/base/MemoryDownloader.cpp                  |  1 +
 netwerk/base/Predictor.cpp                         |  1 +
 netwerk/base/RedirectChannelRegistrar.h            |  1 +
 netwerk/base/nsBaseChannel.cpp                     |  1 +
 netwerk/base/nsChannelClassifier.cpp               |  1 +
 netwerk/base/nsDirectoryIndexStream.cpp            |  3 ++-
 netwerk/base/nsDownloader.cpp                      |  1 +
 netwerk/base/nsIOService.cpp                       |  1 +
 netwerk/base/nsIncrementalDownload.cpp             |  3 +++
 netwerk/base/nsNetUtil.cpp                         |  4 ++++
 netwerk/base/nsNetUtil.h                           |  1 +
 netwerk/base/nsProtocolProxyService.cpp            |  1 +
 netwerk/base/nsSecCheckWrapChannel.cpp             |  2 ++
 netwerk/base/nsUDPSocket.cpp                       |  4 +++-
 netwerk/cache/nsDiskCacheBinding.cpp               |  2 +-
 netwerk/cache/nsDiskCacheDeviceSQL.cpp             |  2 ++
 netwerk/cache/nsMemoryCacheDevice.cpp              |  2 +-
 netwerk/cache2/CacheFileUtils.cpp                  |  2 ++
 netwerk/cache2/CacheStorageService.h               |  1 +
 netwerk/ipc/NeckoParent.cpp                        |  1 +
 netwerk/ipc/RemoteOpenFileChild.cpp                |  1 +
 netwerk/protocol/about/nsAboutBloat.cpp            |  1 +
 netwerk/protocol/about/nsAboutCacheEntry.cpp       |  1 +
 netwerk/protocol/about/nsAboutProtocolHandler.cpp  |  1 +
 netwerk/protocol/data/DataChannelParent.cpp        |  1 +
 netwerk/protocol/file/nsFileProtocolHandler.cpp    |  1 +
 netwerk/protocol/ftp/FTPChannelParent.cpp          |  2 ++
 netwerk/protocol/ftp/FTPChannelParent.h            |  1 +
 netwerk/protocol/ftp/nsFtpConnectionThread.cpp     |  1 +
 netwerk/protocol/ftp/nsFtpProtocolHandler.h        |  1 +
 netwerk/protocol/http/Http2Compression.cpp         |  1 +
 netwerk/protocol/http/Http2Session.cpp             |  1 +
 netwerk/protocol/http/Http2Stream.h                |  2 ++
 netwerk/protocol/http/HttpBaseChannel.cpp          |  4 ++++
 netwerk/protocol/http/HttpBaseChannel.h            |  1 +
 netwerk/protocol/http/HttpChannelChild.cpp         | 25 ++--------------------
 netwerk/protocol/http/HttpChannelChild.h           | 24 +++++++++++++++++++++
 netwerk/protocol/http/HttpChannelParent.cpp        |  1 +
 netwerk/protocol/http/HttpChannelParent.h          |  1 +
 .../protocol/http/HttpChannelParentListener.cpp    |  1 +
 netwerk/protocol/http/HttpChannelParentListener.h  |  1 +
 netwerk/protocol/http/InterceptedChannel.cpp       |  1 +
 netwerk/protocol/http/NullHttpChannel.cpp          |  1 +
 netwerk/protocol/http/NullHttpTransaction.cpp      |  1 +
 netwerk/protocol/http/PackagedAppService.cpp       | 14 ++++++++++--
 netwerk/protocol/http/PackagedAppService.h         |  4 +++-
 netwerk/protocol/http/PackagedAppVerifier.cpp      |  1 +
 netwerk/protocol/http/nsCORSListenerProxy.cpp      |  2 +-
 netwerk/protocol/http/nsHttpBasicAuth.cpp          |  1 +
 netwerk/protocol/http/nsHttpChannel.cpp            |  2 ++
 netwerk/protocol/http/nsHttpChunkedDecoder.cpp     |  1 +
 netwerk/protocol/http/nsHttpConnectionInfo.cpp     |  2 ++
 netwerk/protocol/http/nsHttpConnectionMgr.cpp      |  1 +
 netwerk/protocol/http/nsHttpDigestAuth.cpp         |  1 +
 netwerk/protocol/viewsource/nsViewSourceHandler.h  |  4 ++++
 .../protocol/websocket/BaseWebSocketChannel.cpp    |  1 +
 .../websocket/WebSocketEventListenerParent.cpp     |  1 +
 .../protocol/websocket/WebSocketEventService.cpp   |  3 +++
 netwerk/protocol/websocket/WebSocketFrame.cpp      |  2 ++
 netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp      |  1 +
 .../protocol/wyciwyg/nsWyciwygProtocolHandler.cpp  |  1 +
 netwerk/streamconv/converters/mozTXTToHTMLConv.cpp |  1 +
 .../streamconv/converters/nsFTPDirListingConv.cpp  |  1 +
 .../streamconv/converters/nsHTTPCompressConv.cpp   |  2 ++
 netwerk/streamconv/converters/nsHTTPCompressConv.h |  1 +
 netwerk/streamconv/converters/nsIndexedToHTML.cpp  |  1 +
 netwerk/streamconv/converters/nsMultiMixedConv.cpp |  2 ++
 netwerk/streamconv/converters/nsTXTToHTMLConv.cpp  |  2 ++
 netwerk/streamconv/converters/nsUnknownDecoder.cpp |  2 ++
 75 files changed, 147 insertions(+), 32 deletions(-)
2016-01-08 20:20:50 -05:00
Dragana Damjanovic
e602884667 Bug 1238010 - Turn off ClosingService. r=mcmanus 2016-01-08 15:10:00 -05:00
Phil Ringnalda
fa9e3b8541 Merge f-t to m-c, a=merge 2016-01-09 11:44:32 -08:00
Patrick McManus
a502c34fd8 Bug 1236968 - autodial telemetry r=mayhemer 2016-01-05 12:16:02 -05:00
Henry Chang
2ce27011b8 Bug 1234739 - Disable test on all platforms other than linux. r=kchen 2015-12-23 23:42:00 +01:00
Chris Peterson
659b30fd0b Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus 2015-11-22 21:58:33 -08:00
Phil Ringnalda
e565403cbd Back out 194d7968bf59 (bug 1195881) for e10s failures in browser_sessionStoreContainer.js 2016-01-07 20:28:38 -08:00
Nicholas Nethercote
84b71404df Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Carsten "Tomcat" Book
50268f979f Merge mozilla-central to fx-team on a CLOSED TREE 2016-01-08 15:24:08 +01:00
Florian Quèze
f576883866 Bug 1237648 - remove the defaultEngine implementation and forward the getter/setter to currentEngine, r=adw. 2016-01-08 11:27:49 +01:00
Shu-yu Guo
f2f1b10394 Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Kyle Huey
87126f00d7 Bug 1237371: Asynchronously shutdown the predictor IO thread. r=hurley 2016-01-06 13:18:29 -08:00
Mike Taylor
e4151b743e Bug 1237091. Remove WAP telemetry probe. r=mcmanus 2016-01-06 12:15:41 -06:00
Ehsan Akhgari
ff3a203b11 Bug 1229369 - Part 2: Drop the aChannel argument to HttpChannelChild::ShouldInterceptURI() 2016-01-06 11:19:50 -05:00
Ehsan Akhgari
56180baf47 Bug 1229369 - Intercept redirected network fetches that have their request mode set to manual; r=jdm
In the non-e10s case, this is done by simply avoiding to set the
LOAD_BYPASS_SERVICE_WORKER flag when we detect a non-internal redirect
in the manual redirect mode.

The e10s solution is a bit more complicated.  Only the child process
knows whether a URI needs to be intercepted, so we piggy back on the
code written to support the |event.respondWith(Response.redirect())|
case where we know in the child that the target of the redirect needs to
be intercepted.

This means that we need to check the same condition as in the non-e10s
case, but we also need to check whether the target of the redirection
needs to be intercepted, which means we need to properly take secure
upgrades into account as well.  This is done by computing both whether
we should intercept and whether we should do a secure upgrade in
HttpChannelChild::SetupRedirect() and saving the information on the
HttpChannelChild for later usage in HttpChannelChild::AsyncOpen().
2016-01-05 21:02:00 -05:00
Patrick McManus
7c89af8c09 Bug 1121447 - trust cache less for error codes r=mayhemer 2015-12-22 16:06:07 -05:00
Patrick McManus
9d4026a087 Bug 299031 - heuristic cache rule for 410 should be longer r=mayhemer 2015-12-22 14:58:44 -05:00
Ehsan Akhgari
62802f2dd0 Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm 2016-01-05 15:04:41 -05:00
Patrick McManus
7f7481d8f6 Bug 524232 - cache about: protocol handlers r=mayhemer 2015-12-17 10:39:41 -05:00
Nicholas Hurley
3923917714 Bug 1236170 - Make Http2Session::UncompressAndDiscard push-aware. r=mcmanus 2016-01-04 12:17:39 -08:00
Ehsan Akhgari
67cc13b89b 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.
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
05ceb87136 Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus 2016-01-04 16:30:02 -05:00
Ehsan Akhgari
23687693ad Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm 2016-01-04 16:30:02 -05:00
Ehsan Akhgari
f2ad4b5636 Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus 2016-01-04 16:30:02 -05:00
Ehsan Akhgari
aa4deb91de Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus 2016-01-04 16:30:02 -05:00
Wes Kocher
c9a8c6a192 Backed out 10 changesets (bug 1214305) for leaks on linux debug m-e10s(bc7)
Backed out changeset 1f482566235a (bug 1214305)
Backed out changeset 001b31489756 (bug 1214305)
Backed out changeset 4e94d2088219 (bug 1214305)
Backed out changeset fba4a5bcea41 (bug 1214305)
Backed out changeset 100f8e249007 (bug 1214305)
Backed out changeset a59c453192dc (bug 1214305)
Backed out changeset 2daa86fc1fb9 (bug 1214305)
Backed out changeset c04efb57b0ed (bug 1214305)
Backed out changeset 52046e843c60 (bug 1214305)
Backed out changeset ac4fd6615828 (bug 1214305)
2016-01-04 10:34:24 -08:00
Ehsan Akhgari
ca726f1c16 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.
2016-01-04 09:52:47 -05:00
Ehsan Akhgari
f955bea7b5 Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus 2016-01-04 09:52:45 -05:00
Ehsan Akhgari
12615bef93 Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm 2016-01-04 09:52:40 -05:00
Ehsan Akhgari
c7f392be4c Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus 2016-01-04 09:52:39 -05:00
Ehsan Akhgari
a5d7a10301 Bug 1214305 - Part 1: Refactor the logic for querying whether a connection should go through a secure upgrade into NS_ShouldSecureUpgrade; r=mcmanus 2016-01-04 09:52:37 -05:00
Ehsan Akhgari
d32bdf13af Bug 1219469 - Part 2: Make HttpChannelParentListener be the controller; r=jdm,jduell
The controller needs to be able to handle redirects.
HttpChannelParentListener is a listener object that can attach to
multiple HttpChannelParent objects as part of a single logical Necko
channel (meaning that the listener object will be reused for redirected
channels) so it seems like the better choice for the object that should
implement nsINetworkInterceptController.  This patch moves the
implementation of the nsINetworkInterceptController interface to
HttpChannelParentListener.
2016-01-04 09:39:12 -05:00
Ehsan Akhgari
e36c3836c2 Bug 1219469 - Part 1: Revert the error reporting added in bug 1233845; r=jdm 2016-01-04 09:39:10 -05:00
Ehsan Akhgari
8d8169b3e0 Bug 1233245 - Propagate the interception information in the non-e10s case for all HTTP redirects, not just the internal ones; r=jdm
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.
2016-01-04 09:39:09 -05:00
Kate McKinley
ccb9cc3f1f Bug 1195881 - Pass userContext through NeckoParent and TabChild. r=tanvi, r=sicking 2016-01-07 10:51:04 -08:00
Honza Bambas
871b5c83aa Bug 996836 - Merge CLOSE and WRITE priority in cache2 I/O thread. r=michal 2016-01-05 11:50:00 -05:00
Valentin Gosu
de4df18ddb Bug 1233610 - IDN service should return NS_ERROR_MALFORMED_URI instead of NS_ERROR_FAILURE r=mcmanus 2016-01-07 14:31:22 +01:00
Jason Duell
90c057d1e3 Bug 1199841 - Restructure private browsing to remember status after OnStopRequest r=jdm 2015-12-30 17:51:21 -05:00
Jeff Walden
0195fbed46 Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence 2015-12-28 16:15:52 -06:00
Mike Hommey
2d82d50b87 Bug 1225384 - Change how the default resource "host names" are handled. r=michal
The meaning of resource:///, resource://app/ and resource://gre/ needs to
remain constant. Unfortunately, the model of the resource protocol handler
is that it is possible to set substitutions that change their meaning.

So, we forbid setting overwriting the substitutions for those three
special "host names".

Unfortunately, with e10s, the full list of substitutions is also sent to
the content process, which then sets substitutions, making it harder to
know in which cases SetSubstitution is valid for those three "host names"
or not.

So instead of trying to find the right heuristics, use the recently added
SubstitutingProtocolHandler::ResolveSpecialCases API to handle the three
"host names" instead of storing them as "normal" substitutions.

Still actively reject SetSubstitution with the three special "host names"
so as to find issues such as bug 1224000 instead of allowing the chrome
manifest entry and have it silently ignored.

Additionally, make GetSubstitution return the URIs for the three special
"host names" through GetSubstitutionInternal, replacing what was originally
added in bug 257162. Those changes from bug 257162 relied on the
resource:app string being handled by nsXREDirProvider::GetFile, but that was
removed in bug 620931, effectively making that code now in
GetSubstitutionInternal useless.
2015-12-28 06:49:05 +09:00
Shih-Chiang Chien
d1276d8617 Bug 1229726 - fix the data copy from sockaddr to NetAddr on OSX/FreeBSD. r=mcmanus. 2015-12-23 14:13:58 +08:00
Patrick McManus
000d13007f Bug 1234591 - Use channel.asyncOpen2 within netwerk/test/unit/test_http2.js r=ckerschb 2015-12-23 17:46:31 -05:00
Patrick McManus
475de50576 Bug 1234366 - Convert netwerk/test/unit/test_spdy.js to use asyncOpen2 r=ckerschb 2015-12-23 17:36:33 -05:00
Ben Kelly
18582bdb34 Bug 1220681 P5 Don't double suspend parent channel during synthesized divert to parent. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
31d9e6df91 Bug 1220681 P4 Automatically suspend the parent channel after synthesizing the response for diverison. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
de50895f4d Bug 1220681 P3 Delay diversion on parent side until response head has been synthesized. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
d06b414410 Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm 2015-12-23 12:20:53 -08:00
Patrick McManus
5a66dfc304 Bug 1218297 - eventtokenbucket shutdown leak r=valentin 2015-12-23 10:47:13 -05:00
Patrick McManus
09b3342d78 Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu 2015-12-23 11:43:41 -05:00
Carsten "Tomcat" Book
8b8104669f merge mozilla-inbound to mozilla-central a=merge 2015-12-23 12:00:09 +01:00
Christoph Kerschbaumer
d5c9c30d37 Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 20:57:57 -08:00
Wes Kocher
0116ee6d8b Backed out changeset 7459e0c97939 (bug 1234596) for test_protocolproxyservice.js failures in xpcshell CLOSED TREE 2015-12-22 18:37:37 -08:00
Christoph Kerschbaumer
1e88722352 Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 13:09:31 -08:00
Kannan Vijayan
446695a1b9 Bug 1233813 - Fix mDNS bug in resolving services with no TXT records. r=schien 2015-12-22 16:24:56 -05:00
Kris Maglione
06342fb5bb Bug 1210996: [webext] Check host permissions in the browser.cookies API. r=billm 2015-12-02 21:20:01 -08:00
Henry
e79049a1f2 Bug 1223678 - Use package-identifier from argument to create principal. r=kanru. 2015-12-22 11:08:56 +08:00
Christoph Kerschbaumer
c02330459a Bug 1234369 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 16:29:26 -08:00
Sebastian Hengst
e306a91da9 Backed out changeset e8c63b932647 (bug 1225384) for bustage in netwerk/test/unit/test_bug580508.js in e.g. XPCshell tests. r=bustage 2015-12-22 01:33:26 +01:00
Mike Hommey
802df4ef5e Bug 1225384 - Change how the default resource "host names" are handled. r=michal
The meaning of resource:///, resource://app/ and resource://gre/ needs to
remain constant. Unfortunately, the model of the resource protocol handler
is that it is possible to set substitutions that change their meaning.

So, we forbid setting overwriting the substitutions for those three
special "host names".

Unfortunately, with e10s, the full list of substitutions is also sent to
the content process, which then sets substitutions, making it harder to
know in which cases SetSubstitution is valid for those three "host names"
or not.

So instead of trying to find the right heuristics, use the recently added
SubstitutingProtocolHandler::ResolveSpecialCases API to handle the three
"host names" instead of storing them as "normal" substitutions.

Still actively reject SetSubstitution with the three special "host names"
so as to find issues such as bug 1224000 instead of allowing the chrome
manifest entry and have it silently ignored.
2015-12-22 07:55:40 +09:00
Ehsan Akhgari
7111302065 Bug 1234251 - Remove HttpChannelChild::mSynthesizedResponseHead; r=jdm 2015-12-21 17:01:28 -05:00
Christoph Kerschbaumer
f7e3010165 Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 13:06:46 -08:00
Wes Kocher
1bd1042511 Backed out changeset 28da91dbe6c5 (bug 1233843) for failures in test_bug203271.js in various test suites 2015-12-21 12:29:10 -08:00
Christoph Kerschbaumer
26ae26cac9 Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 14:56:57 -08:00
Gian-Carlo Pascutto
953ea6bc74 Bug 1211090 - Don't fail to open databases if we can't do buffered IO. r=froydnj 2015-12-21 17:51:03 +01:00
Gian-Carlo Pascutto
aca95000a9 Bug 1211090 - Add fallocate support to nsIOutputFileStream and use it. r=froydnj 2015-12-21 17:50:53 +01:00
Ben Kelly
abc96cfb34 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
6714ec2c49 Bug 1233962 P1 Call ResetInterception() if the controller is nullptr. r=jdm 2015-12-22 11:57:10 -08:00
Blake Kaplan
7810d396a4 Bug 1229177 - Show the tracking protection shield for fetch and XHR requests. r=jduell 2015-12-21 14:12:52 -08:00
Nicholas Hurley
b926029043 Bug 1233784 - Disallow illegal characters in cookie names. r=jduell 2015-12-17 14:41:38 -08:00
Dragana Damjanovic
3e80ef0bc1 Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jduell 2015-12-19 16:11:39 -05:00
Josh Matthews
ff346a44fd 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
87acee754c Bug 1233760 - Revert test_spdy.js to use AsyncOpen2 (r=mcmanus) 2015-12-18 15:23:36 -08:00
Christoph Kerschbaumer
82e194a709 Bug 1233760 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 13:31:16 -08:00
Patrick McManus
6f3ded9e53 Bug 513129 - Dont reuse connections after security prefs change r=hurley 2015-12-17 17:37:53 -05:00
Wes Kocher
74655ae5df Backed out changeset 82cd6a486698 (bug 1233245) for fetch-request-redirect.https.html failures CLOSED TREE 2015-12-17 16:18:29 -08:00
Ehsan Akhgari
654dee50c8 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
eb9c71d87f Bug 1232899 - Convert JS callsites to use open2 within netwerk/test (r=mcmanus) 2015-12-17 12:47:01 -08:00
Christoph Kerschbaumer
f80d94e9d6 Bug 1232567 - Convert 10 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-17 12:47:22 -08:00
Honza Bambas
1f8c498a46 Bug 1229235 - Make RedirectChannelRegistrar thread-safe. r=jduell 2015-12-04 09:55:00 +01:00
Ten Thumbs
dd331b6b54 Bug 234031 - broken parsing of xlen in gzip rfc 1952 r=mcmanus 2015-12-16 16:33:40 -05:00
Nicholas Hurley
fa29701467 Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus 2015-12-09 10:11:04 -08:00
Gijs Kruitbosch
2f80e0a7cf Bug 1232287 - revert bug 1224046 and fix resource: URIs to not have a base tag, r=glandium,valentin 2015-12-15 12:09:05 +00:00
Carsten "Tomcat" Book
2c5f71c734 merge mozilla-inbound to mozilla-central a=merge 2015-12-15 12:16:29 +01:00
Tim Nguyen
072c013c17 Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell 2015-12-08 09:27:00 +01:00
Christoph Kerschbaumer
75f7de2fc3 Bug 1232422 - Convert 5 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-14 12:36:12 -08:00
Patrick McManus
b98ea26a76 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
42f16e7822 Bug 1231552 - Back out bug 1121800, bug 1207798 and bug 1214200 changesets. r=mcmanus 2015-12-10 07:21:00 +01:00
Patrick McManus
1e40b9dacb Bug 1228457 - backout 625248e1115c broke e10s xpcshell test CLOSED TREE r=backout 2015-12-09 13:12:19 -05:00
Patrick McManus
e8ed8c95e0 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
8115ff26c0 Bug 1230743 - telemtry for nsConnectionEntry hit rate r=hurley 2015-12-05 07:43:01 -05:00
Bogdan Postelnicu
8fd9e0aea6 Bug 1230939 - check the return of sGlobalEntryTables->Get(aContextKey, &diskEntries). r=mayhemer 2015-12-07 06:38:00 +01:00
Jonas Sicking
2714a720a2 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
4e8258d392 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-06 18:33:15 -05:00
Jonas Sicking
f82c1655d9 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
9d711c3aaf 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
ad3a5c7f5d 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
87a045db11 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
e2898d0176 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
2d6490dc4b 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
a35bcbf76e Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-05 01:46:21 -08:00
Jonas Sicking
c76eed0c04 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
83a2fbd789 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
05f8d577f3 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
224b3b9b00 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
0df63629ad Bug 1187134 (part 5) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-12-03 14:00:04 -08:00
Nicholas Nethercote
c6eb443078 Bug 1187134 (part 4) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-12-03 14:00:03 -08:00
Nicholas Nethercote
ebabc765c0 Bug 1187134 (part 3) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-12-03 14:00:02 -08:00
Nicholas Nethercote
523f2e6b26 Bug 1187134 (part 2) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-12-03 13:59:58 -08:00