Commit Graph

7175 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
9aa835db02 merge mozilla-inbound to mozilla-central a=merge 2016-01-21 11:49:16 +01:00
Carsten "Tomcat" Book
7feabac83d Merge mozilla-central to fx-team 2016-01-20 15:37:48 +01:00
Honza Bambas
a5a23218e9 Bug 1165256 - Make appcache fully work with OriginAttribues. r=jduell 2016-01-18 20:20:08 +01:00
Honza Bambas
c0585d2bda 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
98a69d988d Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Kate McKinley
3488aa3cfb Bug 1195881 - Contextual Identity working under e10s. r=tanvi r=sicking r=baku 2016-01-20 00:28:00 +01:00
Honza Bambas
e7a618658f 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
28f8f114c9 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
9c7ec4a08b Bug 1239687 - Leak invalid/doomed file handles immediately after HTTP cache shutdown. r=michal 2016-01-14 08:14:00 +01:00
Dragana Damjanovic
696b4f524b Bug 1238017 - Remove ClosingService. r=mcmanus 2016-01-08 10:20:00 -05:00
Ryan VanderMeulen
d9596e014d Bug 1234548 - Remove unused variables. r=bustage 2016-01-17 13:07:38 -05:00
Dragana Damjanovic
852b7ce707 Bug 1240269 - Do not open UDP socket during shutdown. r=mcmanus 2016-01-16 01:19:00 -05:00
Dragana Damjanovic
37b646b979 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
96ab3c52d0 Bug 1240122 - threadsafe fix for getselfaddr() r=dragana 2016-01-15 12:16:01 -05:00
Christoph Kerschbaumer
1f7508f2fd Bug 1234368 - Convert netwerk/test/unit/test_bug203271.js to use asyncOpen2 (r=mcmanus) 2016-01-15 11:38:21 -08:00
Christoph Kerschbaumer
39ea40404c Bug 1234757 - Use channel.asyncOpen2 within netwerk/test/unit/test_protocolproxyservice.js (r=mcmanus) 2016-01-15 11:34:34 -08:00
Patrick McManus
7c8730a8f8 Bug 1234757 - test_protocolproxyservice does not need 2nd arg to asyncopen r=ckerschb 2016-01-15 11:01:20 -05:00
Dragana Damjanovic
936c701429 Bug 1239655 - Do not do PR_ConnectContinue during the shutdown. r=mcmanus 2016-01-14 08:53:00 -05:00
Christoph Kerschbaumer
43f2ac564b Bug 1233098 - Refactor CSP upgrade insecure requests flag within loadInfo (r=sicking) 2016-01-14 12:38:15 -08:00
Honza Bambas
8ed36ecd9a Bug 913822 - Shutdown I/O time limit for HTTP cache. r=michal 2016-01-13 16:11:00 -05:00
Dragana Damjanovic
3a74ed0623 Bug 1238910 - Rework shutdown necko. r=mcmanus 2016-01-14 04:42:00 -05:00
Patrick McManus
2689e4d9d8 Bug 1240254 - necko tests assumed synchronous error reporting r=dragana 2016-01-15 22:56:06 -05:00
Dragana Damjanovic
94619712b9 Bug 1240481 - Limit PR_Close calls during shutdown. r=mcmanus 2016-01-18 08:20:00 +01:00
Dragana Damjanovic
520e8f8f53 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
66f6850864 Bug 1220272 - Fix signalling in HTTP cache test code suspender. r=michal 2016-01-14 11:24:00 +01:00
Henry Chang
02e2edd269 Bug 1216443 - "moz-safe-about:blank" to signed content should switch process. r=kanru 2016-01-18 00:07:00 +01:00
Andrea Marchesini
c77ebf3fee Bug 1199466 - part 1 - Expose originAttributes in nsICookie, r=jduell 2016-01-14 08:03:50 +00:00
Nigel Babu
faf7199c98 Backed out changeset f51b921e1ccf (bug 1233098) for browser-chrome bustage 2016-01-14 08:04:37 +05:30
Christoph Kerschbaumer
a2c54b7e80 Bug 1233098 - Refactor CSP upgrade insecure requests flag within loadInfo (r=sicking) 2016-01-13 15:51:43 -08:00
Dragana Damjanovic
e69ef3aad1 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
a1d8943231 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
f86b489302 Bug 1121672 - Make CacheFile::IsDoomed() protect mHandle with lock, r=michal 2016-01-12 09:24:00 +01:00
Andrea Marchesini
4da9fc8b33 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
c88a9066ca Backed out changeset d6b0ffe1a7b3 (bug 1231378) 2016-01-12 15:48:54 +01:00
Andrea Marchesini
a692c8f184 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
eec1da031c Bug 1236277 - Retry all connections not just the reused one. r=mcmanus 2016-01-11 05:20:00 +01:00
Eric Rahm
4bc1bf34cb Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Xidorn Quan
65754e4e13 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
c1b50a8035 Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
a177a88494 Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Patrick McManus
054278e1ac 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
91b4223dea Bug 1238010 - Turn off ClosingService. r=mcmanus 2016-01-08 15:10:00 -05:00
Phil Ringnalda
9af9eba961 Merge f-t to m-c, a=merge 2016-01-09 11:44:32 -08:00
Patrick McManus
076b79144e Bug 1236968 - autodial telemetry r=mayhemer 2016-01-05 12:16:02 -05:00
Henry Chang
ba55e4d118 Bug 1234739 - Disable test on all platforms other than linux. r=kchen 2015-12-23 23:42:00 +01:00
Chris Peterson
176c851700 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
3a4e845dae Back out 194d7968bf59 (bug 1195881) for e10s failures in browser_sessionStoreContainer.js 2016-01-07 20:28:38 -08:00
Nicholas Nethercote
4676f038a8 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Carsten "Tomcat" Book
5917804a66 Merge mozilla-central to fx-team on a CLOSED TREE 2016-01-08 15:24:08 +01:00
Florian Quèze
aff6fdd777 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
cfb7759eb5 Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Kyle Huey
d165791693 Bug 1237371: Asynchronously shutdown the predictor IO thread. r=hurley 2016-01-06 13:18:29 -08:00
Mike Taylor
573f5f75e2 Bug 1237091. Remove WAP telemetry probe. r=mcmanus 2016-01-06 12:15:41 -06:00
Ehsan Akhgari
04b89d9cd3 Bug 1229369 - Part 2: Drop the aChannel argument to HttpChannelChild::ShouldInterceptURI() 2016-01-06 11:19:50 -05:00
Ehsan Akhgari
a8309fe356 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
7c947e0c1e Bug 1121447 - trust cache less for error codes r=mayhemer 2015-12-22 16:06:07 -05:00
Patrick McManus
bf11c35c29 Bug 299031 - heuristic cache rule for 410 should be longer r=mayhemer 2015-12-22 14:58:44 -05:00
Ehsan Akhgari
a20fc73729 Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm 2016-01-05 15:04:41 -05:00
Patrick McManus
37e3c4d2f4 Bug 524232 - cache about: protocol handlers r=mayhemer 2015-12-17 10:39:41 -05:00
Nicholas Hurley
85cb62d4bd Bug 1236170 - Make Http2Session::UncompressAndDiscard push-aware. r=mcmanus 2016-01-04 12:17:39 -08:00
Ehsan Akhgari
3457b198a3 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
535ed49572 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
d3ebf82c06 Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm 2016-01-04 16:30:02 -05:00
Ehsan Akhgari
76912f8c3d 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
ab9da7edc7 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
aa6d0f0be9 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
6db2998a7e 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
43d55a657e 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
894c6b5e6b Bug 1214305 - Part 3: Add a nsIInterceptedChannel.secureUpgradedChannelURI helper; r=jdm 2016-01-04 09:52:40 -05:00
Ehsan Akhgari
15283ac51f 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
6c4aeb7df8 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
7793cdfbe8 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
647dbf595d Bug 1219469 - Part 1: Revert the error reporting added in bug 1233845; r=jdm 2016-01-04 09:39:10 -05:00
Ehsan Akhgari
0de497f00c 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
42f9491eee Bug 1195881 - Pass userContext through NeckoParent and TabChild. r=tanvi, r=sicking 2016-01-07 10:51:04 -08:00
Honza Bambas
03af02f7d7 Bug 996836 - Merge CLOSE and WRITE priority in cache2 I/O thread. r=michal 2016-01-05 11:50:00 -05:00
Valentin Gosu
9904005e9d 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
90dc49a329 Bug 1199841 - Restructure private browsing to remember status after OnStopRequest r=jdm 2015-12-30 17:51:21 -05:00
Jeff Walden
58b3e9a269 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
03bf4d2f21 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
135fc58e8a 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
7a6b945c72 Bug 1234591 - Use channel.asyncOpen2 within netwerk/test/unit/test_http2.js r=ckerschb 2015-12-23 17:46:31 -05:00
Patrick McManus
c04ac799bb Bug 1234366 - Convert netwerk/test/unit/test_spdy.js to use asyncOpen2 r=ckerschb 2015-12-23 17:36:33 -05:00
Ben Kelly
bbbb4dd4fa 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
d6efdcc1b2 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
d8a0508b5d 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
3b5a98c999 Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm 2015-12-23 12:20:53 -08:00
Patrick McManus
a045ede9aa Bug 1218297 - eventtokenbucket shutdown leak r=valentin 2015-12-23 10:47:13 -05:00
Patrick McManus
3f8074f84e Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu 2015-12-23 11:43:41 -05:00
Carsten "Tomcat" Book
f4e045afb4 merge mozilla-inbound to mozilla-central a=merge 2015-12-23 12:00:09 +01:00
Christoph Kerschbaumer
adc1fb8a68 Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 20:57:57 -08:00
Wes Kocher
6e041766e1 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
13c3f1b822 Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 13:09:31 -08:00
Kannan Vijayan
cdcb685435 Bug 1233813 - Fix mDNS bug in resolving services with no TXT records. r=schien 2015-12-22 16:24:56 -05:00
Kris Maglione
39604c7340 Bug 1210996: [webext] Check host permissions in the browser.cookies API. r=billm 2015-12-02 21:20:01 -08:00
Henry
47b84e8bad Bug 1223678 - Use package-identifier from argument to create principal. r=kanru. 2015-12-22 11:08:56 +08:00
Christoph Kerschbaumer
2cd1144000 Bug 1234369 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 16:29:26 -08:00
Sebastian Hengst
b8f6d2958b 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
97ceae44af 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
4ae8cf4851 Bug 1234251 - Remove HttpChannelChild::mSynthesizedResponseHead; r=jdm 2015-12-21 17:01:28 -05:00
Christoph Kerschbaumer
f7fd3ba710 Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 13:06:46 -08:00
Wes Kocher
ec637658d3 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
c74eb97764 Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 14:56:57 -08:00
Gian-Carlo Pascutto
c24b453e48 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
0a3396ebfc Bug 1211090 - Add fallocate support to nsIOutputFileStream and use it. r=froydnj 2015-12-21 17:50:53 +01:00
Ben Kelly
f84d17376b 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
2626a6d72a Bug 1233962 P1 Call ResetInterception() if the controller is nullptr. r=jdm 2015-12-22 11:57:10 -08:00
Blake Kaplan
1240a56d34 Bug 1229177 - Show the tracking protection shield for fetch and XHR requests. r=jduell 2015-12-21 14:12:52 -08:00
Nicholas Hurley
1718112824 Bug 1233784 - Disallow illegal characters in cookie names. r=jduell 2015-12-17 14:41:38 -08:00
Dragana Damjanovic
465b97cc6a Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jduell 2015-12-19 16:11:39 -05:00
Josh Matthews
3a9abc2f2d 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
ca592eaae5 Bug 1233760 - Revert test_spdy.js to use AsyncOpen2 (r=mcmanus) 2015-12-18 15:23:36 -08:00
Christoph Kerschbaumer
67322a5503 Bug 1233760 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 13:31:16 -08:00
Patrick McManus
9cd8a99443 Bug 513129 - Dont reuse connections after security prefs change r=hurley 2015-12-17 17:37:53 -05:00
Wes Kocher
ed9f67c711 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
8bb87cb3b3 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
017530c660 Bug 1232899 - Convert JS callsites to use open2 within netwerk/test (r=mcmanus) 2015-12-17 12:47:01 -08:00
Christoph Kerschbaumer
d9184cb30c Bug 1232567 - Convert 10 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-17 12:47:22 -08:00
Honza Bambas
a30ef34f19 Bug 1229235 - Make RedirectChannelRegistrar thread-safe. r=jduell 2015-12-04 09:55:00 +01:00
Ten Thumbs
00946babd9 Bug 234031 - broken parsing of xlen in gzip rfc 1952 r=mcmanus 2015-12-16 16:33:40 -05:00
Nicholas Hurley
ea2d001b1b 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
599c57cddf 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
fe48173913 merge mozilla-inbound to mozilla-central a=merge 2015-12-15 12:16:29 +01:00
Tim Nguyen
57ef8e6498 Bug 1137681 - Make user agent docshell overrides affect network requests. r=jduell 2015-12-08 09:27:00 +01:00
Christoph Kerschbaumer
907fd1f1d2 Bug 1232422 - Convert 5 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-14 12:36:12 -08:00
Patrick McManus
1867298a29 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
db24053060 Bug 1231552 - Back out bug 1121800, bug 1207798 and bug 1214200 changesets. r=mcmanus 2015-12-10 07:21:00 +01:00
Patrick McManus
fc493dd389 Bug 1228457 - backout 625248e1115c broke e10s xpcshell test CLOSED TREE r=backout 2015-12-09 13:12:19 -05:00
Patrick McManus
4eb2511852 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
7c9cc0e030 Bug 1230743 - telemtry for nsConnectionEntry hit rate r=hurley 2015-12-05 07:43:01 -05:00
Bogdan Postelnicu
5508fc7ef4 Bug 1230939 - check the return of sGlobalEntryTables->Get(aContextKey, &diskEntries). r=mayhemer 2015-12-07 06:38:00 +01:00
Jonas Sicking
dc10e69700 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
a062cb8f52 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-06 18:33:15 -05:00
Jonas Sicking
88a22fc149 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
6549564d7d 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
e1f48deddb 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
b044ea0003 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
04716291b6 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
b154080e9d 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
d6cf0f17c9 Bug 1216687: Add nsILoadInfo flags for cookie policies. r=ckerschb 2015-12-05 01:46:21 -08:00
Jonas Sicking
ff59e44428 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
eff1555d4d 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
2a483ecd9f 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
954d705e60 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
ef8fa93310 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
c68ec3c80d 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
5205a2122a 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
a8f282f439 Bug 1187134 (part 2) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-12-03 13:59:58 -08:00
Nicholas Nethercote
f8b9c491bc Bug 1187134 (part 1) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin. 2015-11-29 14:01:44 -08:00
Jan Beich
c592cbd9e4 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00