Commit Graph

6259 Commits

Author SHA1 Message Date
Eric Rahm
197f5bb9c4 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 22:17:34 -07:00
Eric Rahm
18bd3de863 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm
99ffec18c4 Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-01 22:17:26 -07:00
Eric Rahm
ef5ac6fa3d Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 22:17:21 -07:00
Eric Rahm
dca9287933 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Nicholas Nethercote
8e8a67b198 Bug 1168007 (part 10) - Use PLDHashTable2 in nsDiskCacheBindery. r=froydnj.
Like the last patch, the Clear() call in nsDiskCacheBindery::Init() is
cautious.
2015-05-18 21:52:14 -07:00
Nicholas Nethercote
4cd7a27d44 Bug 1168007 (part 9) - Use PLDHashTable2 in nsCacheEntry. r=froydnj.
It's not entirely clear if it's necessary to call Clear() in
nsCacheEntryHashTable::Init(). There is lots of inheritance around this code
and the calling patterns of Init() and Shutdown() aren't clear. Better safe
than sorry.
2015-05-18 21:45:30 -07:00
Birunthan Mohanathas
ec383264f0 Bug 1167420 - Handle fallible AppendElement call in netwerk/base/Dashboard.cpp. r=valentin 2015-05-27 17:46:19 -07:00
Birunthan Mohanathas
2e77719e3d Bug 1164714 - Move netwerk/base/nsISiteSecurityService.idl into security/manager/ssl. r=keeler,mcmanus 2015-05-26 10:31:30 -07:00
Mike Hommey
d03760e105 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Mike Hommey
2c863b9fe4 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Ehsan Akhgari
5fc491f5bb Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly 2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
a96f90d7e7 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari
1d4e673188 Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly 2015-05-27 08:25:03 -04:00
Botond Ballo
0fe06cffa0 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-26 14:33:55 -04:00
Josh Matthews
e37f0a7835 Bug 1157468 - Avoid leaking the intercepting channel stream listener for redirected IPC channels. r=mayhemer 2015-05-26 09:40:41 -04:00
Phil Ringnalda
f3d4dd7e09 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo
9a8e8b29e8 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-25 20:45:17 -04:00
Nicholas Nethercote
adcd365f5e Bug 1166598 (part 8) - Use PLDHashTable2 in nsHostResolver. r=froydnj. 2015-05-12 17:33:45 -07:00
Nicholas Nethercote
4cdc3dfb3c Bug 1166598 (part 7) - Use PLDHashTable2 in nsLoadGroup. r=froydnj.
Things to note:

- nsLoadGroupConnectionInfo and its methods were just moved higher up in the
  file so it could be referenced in nsLoadGroup's constructor; none of that
  code has been changed;

- ~nsLoadGroup() is made public because NS_GENERIC_AGGREGATED_CONSTRUCTOR
  requires it to be.
2015-05-12 17:33:44 -07:00
Fernando Jimenez
e36586f901 Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Valentin Gosu
0d76e1473e Bug 1162690 - Remove malformed uri warning in nsURLParser::ParseURL r=mcmanus 2015-05-23 17:27:13 +03:00
Michal Novotny
4243030890 Bug 1159280 - TSan: data race netwerk/protocol/websocket/WebSocketChannel.cpp:3156 WebSocketChannel::Close, r=mcmanus 2015-05-23 10:07:01 +02:00
Michal Novotny
e717a20a81 Bug 1159500 - crash in mozilla::net::CacheIndexIterator::GetNextHash(unsigned char (*)[20]), r=honzab 2015-05-23 09:12:43 +02:00
Nicholas Hurley
41ce73ce60 Bug 1132357 - remove h2-draft* support. r=mcmanus 2015-05-22 14:29:15 -07:00
Ryan VanderMeulen
68db6db2d8 Merge m-c to inbound. a=merge
CLOSED TREE
2015-05-22 14:18:25 -04:00
Ryan VanderMeulen
ecdd625f1a Merge inbound to m-c. a=merge 2015-05-22 14:02:47 -04:00
Cervantes Yu
a5bfba878f Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Christoph Kerschbaumer
23614d5d71 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - remove newChannel2,asyncFetch2 (r=sicking,paolo) 2015-05-21 19:52:20 -07:00
Christoph Kerschbaumer
459f85fe51 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update newChannel2 (r=sicking,paolo) 2015-05-21 19:52:03 -07:00
Christoph Kerschbaumer
e8ffc95969 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Dragana Damjanovic
2e4d918553 Bug 1152041 - Do not try to reconnect if we are offline. r=mayhemer 2015-05-09 09:27:00 -04:00
Ryan VanderMeulen
d120cdfa29 Backed out 2 changesets (bug 1120487) for card_manager_test.js Gaia unit test failures.
Backed out changeset 357fcbe1de45 (bug 1120487)
Backed out changeset 33c588a14445 (bug 1120487)

CLOSED TREE
2015-05-20 14:12:13 -04:00
Patrick McManus
589bb41b25 bug 1165286 - java plugin no longer finds browser proxy settings r=hurley 2015-05-19 17:15:53 -04:00
Christoph Kerschbaumer
ec029a6080 Bug 1120487 - Implement shim before moving security checks into AsyncOpen, ioservice changes (r=sicking,jduell) 2015-05-20 09:32:29 -07:00
Christoph Kerschbaumer
f5be25ea2a Bug 1120487 - Implement shim before moving security checks into AsyncOpen; adding wrapper (r=sicking,jduell) 2015-05-20 09:32:12 -07:00
Steve Workman ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E)
44a3bb1e74 Bug 1138242 - Use sequential A and AAAA requests to get DNS record TTLs on Windows r=sworkman 2015-05-01 16:49:00 +03:00
Sebastian Hengst
ea72bb2b97 Backout 068cc6419d1e (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:48:03 +02:00
Fernando Jimenez
0d44288db9 Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Eric Rahm
ccf1ec07c6 Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Dragana Damjanovic
bbb1e8f65a Bug 1166133 - If proxy is available and an error happens, onStart/onStopRequest can be called twice. r=mcmanus 2015-05-19 11:28:00 -04:00
Patrick McManus
6530957a5b bug 1144602 - preconnect test handler should only count 1 syn r=test-only 2015-05-22 12:04:50 -04:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Michal Novotny
e866037fa8 Bug 1152047 - mozilla::net::nsWSAdmissionManager::GetSessionCount may deadlock during shutdown, r=mcmanus 2015-05-19 11:35:33 +02:00
Nicholas Nethercote
5888ef1c0f Bug 1165768 (part 4) - Convert |sAtomTable| to |PLDHashTable2*|. r=froydnj. 2015-05-18 00:52:07 -07:00
Nicholas Nethercote
35fffb1333 Back out a1f7ae44c7bb (bug 1164373) for causing intermittent test failures. 2015-05-18 19:00:54 -07:00
Birunthan Mohanathas
f9c058aaf6 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Ethan Hugg
a4822276d9 Bug 1165423 - WebRTC Fix DTLS handshake by expanding UDP buffer. r=rjesup 2015-05-15 16:58:56 -07:00
Franziskus Kiefer
8117a1b468 Bug 1163743 - Change origin-when-crossorigin to origin-when-cross-origin. r=sstamm 2015-05-11 16:18:05 -07:00
Piotr Tworek
14b6ead77d Bug 1163419 - Make nsQtNetworkLinkService destructor private. r=dougt 2015-05-13 11:17:00 -04:00
Neil Rashbrook
441960eebc Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-16 09:07:10 +01:00
Nicholas Nethercote
0addd071a9 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).
2015-05-14 21:48:43 -07:00
Bobby Holley
572201a12c Bug 1164292 - Switch nsIPrincipal::origin to ACString. r=gabor 2015-05-15 11:51:51 -07:00
Brian O'Keefe
c6a1261439 Bug 924187 - Deal with interfaces.manifest from the backend. r=mshal 2015-02-13 08:11:57 -05:00
Ehsan Akhgari
123f153e5a Bug 1156084 - Disallow AddRef() and Release() calls on the return value of methods returning XPCOM objects; r=jrmuizel
When a method returns type D derived from RefCounted type B, there is an
ImplicitCastExpr (or an ExplicitCastExpr, if there is an explicit cast
to the base type in the code) in the AST between the CallExpr and
MemberExpr, which we didn't take into account before.  This caused the
analysis to not work on common patterns such as
nsCOMPtr<nsIXPCOMInterface>.
2015-05-15 08:39:55 -04:00
Wes Kocher
484229a7ff Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds 2015-05-14 16:35:18 -07:00
Neil Rashbrook
5b5c002aaf Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-15 00:00:33 +01:00
Michal Novotny
813043df3e Bug 1163900 - crash in mozilla::net::nsHttpChannelCacheKey::GetData(unsigned int*, nsACString_internal&), r=jduell 2015-05-14 19:05:34 +02:00
Christoph Kerschbaumer
de75624572 Bug 1162657 - Turn NewChannel deprecation warnings into assertions (r=sworkman,sicking,paolo) 2015-05-13 17:58:52 -07:00
Nicholas Nethercote
8d5e9cca79 Bug 1164373 - Remove two static constructors involving PR_NewLogModule(). r=froydnj. 2015-05-13 18:02:56 -07:00
Nicholas Nethercote
8a397036c0 Bug 1161377 (part 2.5) - Move all static PLDHashTable instances onto the heap to avoid static constructors. r=froydnj. 2015-05-12 17:33:22 -07:00
Nicholas Nethercote
a1d964e932 Bug 1163909 - Remove nsFtpState::mSessionStartTime, which is dead. r=mcmanus.
This eliminates a static constructor.
2015-05-12 00:28:31 -07:00
Michal Novotny
b0d39ba194 Bug 1152334 - StartWebsocketData null deref mSocketIn, r=bagder 2015-05-11 08:12:19 +02:00
Michal Novotny
abaaa8071c Bug 1156493 - e10s: move .cacheKey to nsICacheInfoChannel so child channels can get/set it, r=jduell 2015-05-10 02:26:39 +02:00
Patrick McManus
8a74cf2efa bug 1162821 - filter dns name collision records r=sworkman IGNORE IDL 2015-05-08 14:18:20 -04:00
Ehsan Akhgari
1a3375d154 Bug 1130101 - Part 1: Store the value of the Service-Worker-Allowed header in the CompareManager object; r=nsm 2015-05-07 21:06:33 -04:00
Valentin Gosu
cc676c87f5 Bug 1153929 - Add assertions and null checks to fix windows crash in nsHttpTransaction r=mcmanus 2015-05-08 03:54:06 +03:00
Ehsan Akhgari
821813a96c Bug 1159378 - Part 1: Enable nsIStreamLoader to optionally notify an nsIRequestObserver; r=mcmanus 2015-05-04 10:17:47 -04:00
Patrick McManus
3b3c157525 Bug 1162243 - add anonymous speculative connections r=hurley 2015-05-05 21:15:36 -04:00
Eric Rahm
8b49142b57 Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 12:52:45 -07:00
Eric Rahm
633ddeb4f9 Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher
e81f5e76ce Backed out 2 changesets (bug 1162336) for breaking at least windows builds
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Patrick McManus
726e9673d3 bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL
Allow necko to simultaneously track the dual concept of routed host
and origin (authenticated host). The origin is given to the socket
provider and the routed host is inserted at DNS lookup time as if it
were a SRV or CNAME.
2015-04-09 11:31:59 -04:00
Patrick McManus
a2982caa07 bug 1153212 - 1/2 revert 90d6a38931fa to make room for better fix r=backout 2015-05-07 13:16:26 -04:00
Eric Rahm
0390ac6e64 Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 10:35:29 -07:00
Eric Rahm
9ad4604e33 Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Patrick McManus
a8d7288fe5 bug 1161253 close pconns on background notification r=bagder 2015-05-05 10:10:21 -04:00
Patrick McManus
3848c469e4 Bug 1161558 cleanup some nsIObserver shutdown paths r=bagder 2015-05-05 10:04:34 -04:00
Simon Montagu
34c854a6b8 Bug 1162084: Check back in TLDs for Pakistan, r=gerv 2015-05-07 05:08:20 -07:00
Gervase Markham
12c7d23192 Bug 1161823 - Remove Pakistan entries from the PSL because our UTF-8 converter doesn't like them. r=gerv
CLOSED TREE
2015-05-06 11:23:37 -04:00
Gervase Markham
5e45ffba84 Bug 1161936 - New TLD additions for TLDs contracted with ICANN from 2015-04-03 to 2015-05-05. r=gerv 2015-05-06 02:52:00 -04:00
Gervase Markham
87a7b4fc78 Bug 1161823 - Comprehensive update to ICANN IDN ccTLD Section. r=gerv 2015-05-06 02:50:00 -04:00
Gervase Markham
3b1d70928a Bug 1161787 - Add net.et to PSL. r=gerv 2015-05-06 02:55:00 -04:00
Gervase Markham
4f2f66952d Bug 1157442 - Add ac.lk to PSL. r=gerv 2015-05-06 02:57:00 -04:00
Carsten "Tomcat" Book
3dbf546d58 merge mozilla-inbound to mozilla-central a=merge 2015-05-06 11:59:15 +02:00
Gavin Sharp
a08afae576 Bug 1153964 followup, use RELEASE_BUILD instead of !(NIGHTLY || DEV_EDITION) 2015-05-05 22:11:37 -07:00
André Reinald
fd2edfc0f3 Bug 1075157 - Support action: reset search. r=gfritzsche, r=florian, r=bholley 2015-04-24 17:57:52 +02:00
Ehsan Akhgari
bc2a71819d Bug 1134325 - Part 1: Add an API for cloning a channel's upload stream; r=mcmanus 2015-05-05 13:20:53 -04:00
Valentin Gosu
63a164ec5b Bug 1134596 - SetOffline(false) in nsIOService::Init r=honzab 2015-04-03 16:23:18 +03:00
Valentin Gosu
85f7fab9de Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-03-26 13:19:47 +02:00
Valentin Gosu
5882106bb7 Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-05-02 00:14:39 +03:00
Ilya
6bfd1b77a1 Bug 1125816 - Parse FTP directory listings of Windows CE and WEC7 FTP Server r=jduell 2015-05-01 11:22:32 -07:00
theoneisneo
ea5d7cdd60 Bug 1149872 - Add the missing format specifiers. r=jduell 2015-04-02 01:56:00 -04:00
Patrick McManus
46096ee50e Bug 1159944 - more alt-svc tests r=hurley 2015-04-30 20:53:20 -04:00
Mike Hommey
b673a97a25 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Nicholas Nethercote
29a54c9b3b Bug 1159972 - Remove the fallible version of PL_DHashTableInit(). r=froydnj.
It's no longer needed now that entry storage isn't allocated there. (The other
possible causes of failures in that function are less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible, so I removed some
now-unnecessary checks of its result.
2015-04-29 16:38:29 -07:00
Patrick McManus
a04f1d55da bug 1157280 - dont getSockName from main thread r=hurley 2015-04-29 18:39:06 -04:00
David Keeler
9016367712 bug 1153964 - allow unrestricted RC4 fallback in beta and release r=Cykesiopka 2015-04-28 10:51:40 -07:00
Richard Barnes
442aed5827 Bug 1159945 - Add telemetry to measure HSTS usage 2015-04-29 16:16:16 -07:00
Wes Kocher
a8bf76c07b Backed out changeset 88a77375f4df (bug 924187) for probably breaking PGO builds CLOSED TREE 2015-04-28 15:21:07 -07:00
Valentin Gosu
5c759e8161 Bug 1040285 - Single Quotes should not be encoded in the path r=mcmanus,annevk 2015-04-28 18:29:22 +03:00
Gervase Markham
cac9f430e5 Bug 1157676 - Update PSL for .gl. r=gerv 2015-04-28 07:52:00 -04:00
Gervase Markham
82b28a462e Bug 1155882 - Update PSL to add eu.org domains. r=gerv 2015-04-28 07:20:00 -04:00
Brian O'Keefe
3485450fd3 Bug 924187 - Deal with interfaces.manifest from the backend. r=mshal 2015-02-13 08:11:57 -05:00
Gervase Markham
bad56bd61b Bug 1155625 - Update PSL comment for .nl. r=gerv 2015-04-28 06:42:00 -04:00
Gervase Markham
5bb30001f8 Bug 1155496 - Add 4u.com to PSL. r=gerv 2015-04-28 06:31:00 -04:00
Gervase Markham
761c2d6d36 Bug 1155232 - Update .pl domains in PSL. r=gerv 2015-04-28 06:47:00 -04:00
Patrick McManus
50a1d3fd66 bug 1142384 - eventtokenbucket thread management r=hurley 2015-04-28 00:12:29 -04:00
David Major
c92c020b89 Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
Ryan VanderMeulen
8cec077991 Merge m-c to inbound. a=merge 2015-04-27 15:20:16 -04:00
Jonathan Hao
810d0dd127 Bug 1151760 - Separate timeout timer with end of stream. r=ettseng 2015-04-24 15:25:09 +08:00
Ehsan Akhgari
5da4473e40 Bug 1158544 - Remove FTPChannelChild::mWasOpened and make the base class mWasOpened protected; r=mcmanus
There is no need to have two separate variables for the same thing
in the same object.
2015-04-25 18:41:34 -04:00
Ehsan Akhgari
6bb653df94 Bug 1158543 - Remove SpdyConnectTransaction::mRequestHead and make the base class mRequestHead protected; r=mcmanus
There is no need to have two separate variables for the same thing
in the same object.
2015-04-25 18:41:28 -04:00
Ehsan Akhgari
de3aa08088 Bug 1156771 - Part 2: Assert that the cache entry for the intercepted doesn't exist in the cache storage before we try to open it for the first time; r=michal 2015-04-27 13:04:17 -04:00
Ehsan Akhgari
adc03f3af5 Bug 1156771 - Part 1: Ensure that each channel uses a unique ID to compute its cache entry extension; r=michal
This makes sure that concurrent synthesized HTTP channels for the same
URL do not try to use the same cache entry accidentally.  We have so far
observed this issue as an intermittent test failure (see bug 1136780),
and it's hard to test this standalone, so enabling that test will serve
as an automated test for this patch as well.
2015-04-27 13:04:07 -04:00
Andrew McCreight
8145d04124 Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Jan de Mooij
bfb27c97d1 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Daniel Stenberg
4f25221ef8 Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus 2015-04-22 17:13:57 -07:00
Valentin Gosu
203d8784c2 Bug 1135354 - Fix comment regarding URL max length r=me DONTBUILD CLOSED TREE 2015-04-23 00:10:43 +03:00
Wes Kocher
846fe3b4a5 Backed out changeset 78aab1149276 (bug 1154426) for being a likely cause of gij(8) orange on a CLOSED TREE 2015-04-22 14:06:52 -07:00
Daniel Stenberg
d92bba153d Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus 2015-04-20 07:27:00 -04:00
Andrea Marchesini
124186054d Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Ehsan Akhgari
d278570d19 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
01d294be4b Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Wes Kocher
bb85f7a5bc Backed out changeset 8b99d282cd87 (bug 1156084) for static bustage CLOSED TREE 2015-04-21 14:23:56 -07:00
Ehsan Akhgari
74f43d26e8 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Ehsan Akhgari
69a1633117 Bug 1156084 - Disallow AddRef() and Release() calls on the return value of methods returning XPCOM objects; r=jrmuizel
When a method returns type D derived from RefCounted type B, there is an
ImplicitCastExpr (or an ExplicitCastExpr, if there is an explicit cast
to the base type in the code) in the AST between the CallExpr and
MemberExpr, which we didn't take into account before.  This caused the
analysis to not work on common patterns such as
nsCOMPtr<nsIXPCOMInterface>.
2015-04-21 16:24:41 -04:00
Nicholas Hurley
74e086204a Bug 1130822 - properly decode arbitrarily aligned data for non-tier1 platforms. r=mcmanus
Modified from original patch by Martin Husemann <martin@NetBSD.ORG>
2015-04-21 11:26:11 -07:00
Patrick McManus
d428323d51 bug 1153212 - Alt-Svc Fixes r=dkeeler r=hurley 2015-04-13 17:11:59 -04:00
Wes Kocher
694a5e2344 Merge m-c to fx-team a=merge CLOSED TREE 2015-04-20 17:19:07 -07:00
Denis Volk
4ad62045e8 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Tom Tromey
42ecb3cdb5 Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
Wes Kocher
a3e3512c99 Backed out changeset dbee7cf7e96f (bug 1096908) for bustage 2015-04-20 11:22:21 -07:00
Tom Tromey
c40495f343 Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:09:34 -07:00
Josh Matthews
f3e4a9433f Bug 1137287 - Build fix. rs=KWierso for a CLOSED TREE 2015-04-17 19:27:05 -04:00
Josh Matthews
8c71b96ee0 Bug 1137287 - Part 2: Send non-200/404 synthesized responses via the parent HTTP implementation for proper processing. r=mayhemer 2015-04-17 18:59:10 -04:00
Josh Matthews
4a706ba327 Bug 1137287 - Part 1: Shift some code from InterceptedChannelContent to HttpChannelChild. r=mayhemer 2015-04-17 18:59:10 -04:00
Wes Kocher
f307e6f18e Backed out 1 changesets (bug 1040285) for windows xpcshell failures CLOSED TREE
Backed out changeset ffd1b16f058b (bug 1040285)
2015-04-16 15:17:15 -07:00
Neil Deakin
dd30a1f3eb Bug 1153248, re-enable a bunch of tests that now work with e10s, r=billm 2015-04-16 15:38:12 -04:00
Valentin Gosu
1174410076 Bug 1040285 - Single Quotes should not be encoded in the path. r=mcmanus, r=annevk 2015-04-16 01:11:05 +03:00
Jim Blandy
c49a3b9f79 Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium 2015-03-19 00:46:40 -07:00
Nathan Froyd
025c5b239e Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Gijs Kruitbosch
a3acdade4f Bug 1150703, allow about: pages to be unlinkable even if "safe for content", r=mcmanus, IGNORE IDL 2015-04-03 09:59:00 +01:00
Patrick McManus
47b67b6a52 Bug 1154068 - rename relaxed to insecure scheme and add more runtime checks r=hurley
we used the term relaxed for http:// over tls; but someitmes we also
enforced the authentication if alt-svc changed the host involved. That
was all done correctly but the term relaxed wasn't very accurate in
those cases.

For clarity rename "relaxed" to be "insecureScheme". Also add a
runtime check (with debug assert) to paths to enforce that bit isn't
set where it shouldn't be (it isn't known to be).
2015-04-06 17:30:29 -04:00
Patrick McManus
15a95ccf54 Bug 1154061 - clear cached alt svc mappings on a variety of state changes r=hurley
an alt-svc map is just an optimization which can get out of phase like
any other piece of state.. therefore it makes sense to
drop them when a user presses some kind of "serenity now" button such
as force-reload, clear cache, etc..
2015-04-10 16:13:30 -04:00
Patrick McManus
a2b5949dc9 Bug 1153936 - nsIHttpChannelInteral attribute to opt out of alt-svc on per channel basis r=hurley 2015-04-13 12:59:34 -04:00
Patrick McManus
669f68c699 Bug 1153924 - do not use altsvc with proxy r=hurley 2015-04-13 12:33:10 -04:00
Patrick McManus
50eedfa31c Bug 1153896 - dont setup altsvc for same host/port as origin r=hurley 2015-04-09 23:38:26 -04:00
Patrick McManus
e087e1b99c Bug 1153869 - altsvc assert scheme is http or https r=hurley 2015-04-13 10:20:26 -04:00
Christoph Kerschbaumer
54ae3b546c Bug 1134096 - Revise docs for ::NewChannel2, ::GetChannelPrincipal and add deprecation warnings (r=tanvi,sicking) 2015-04-13 13:37:14 -07:00
Nathan Froyd
a2295c42f8 Bug 1153267 - part 2 - use smart pointers instead of manual NS_ADDREF'ing outparams; r=ehsan 2015-03-31 10:05:07 -04:00
Nathan Froyd
b5966ed356 Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan 2015-03-31 10:03:49 -04:00
Ted Mielczarek
064b7a6d8a bug 1151407 - Remove _HTTPD_JS_PATH from xpcshell test harness. r=jmaher
Only the httpd.js unit tests actually rely on this. I tried to make them use Cu.import but they also rely on poking a bunch of stuff in httpd.js that's not exported, so instead I just made the test manifest copy httpd.js to the test directory and had them load it from there.
2015-04-03 08:20:32 -04:00
Patrick McManus
f8e1c2cb93 Bug 1153437 - rename proxyFlags to controlFlags with nsISocketProvider interfaces r=hurley 2015-04-10 17:27:27 -04:00
Christoph Kerschbaumer
2745106a43 Bug 1147562 - Update remaining callsites of newChannel before landing the shim in netwerk/ (r=jduell) 2015-04-10 09:58:16 -07:00
Patrick McManus
4e84787cab Bug 1152897 - update Alt-Svc pref name and default r=hurley 2015-04-06 15:28:21 -04:00
Shian-Yow Wu
a217a09ad1 Bug 1150318 - Enable netwerk/test/unit/xpcshell.ini tests for B2G desktop by default. r=mcmanus 2015-04-10 14:02:17 +08:00
Dragana Damjanovic
97d03ac9e8 Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer 2015-04-08 15:35:00 -04:00
Carsten "Tomcat" Book
ec8b6b6570 Backed out changeset 35e6bbc2136b (bug 1134596) for Android Crashtest failures 2015-04-09 12:33:41 +02:00
Carsten "Tomcat" Book
ed25ee4d43 Backed out changeset 82d6b5523a2b (bug 1134596) 2015-04-09 12:31:51 +02:00
Carsten "Tomcat" Book
0d44b54ad8 Backed out changeset fb48ee62bab4 (bug 1134596) 2015-04-09 12:31:49 +02:00
Valentin Gosu
71d2ab59ec Bug 1134596 - SetOffline(false) in nsIOService::Init r=honzab 2015-04-09 06:33:08 +03:00
Valentin Gosu
7ed5b37119 Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-04-09 06:33:03 +03:00
Valentin Gosu
68ee4c948d Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-04-09 06:32:53 +03:00
Ehsan Akhgari
4dba4b4eb6 Bug 1152329 - Only compile _Android_GetAddrInfoForNetInterface on Android>=19; r=mcmanus
This fixes the compiler warnings about the unused static function
on other platforms.
2015-04-08 21:57:01 -04:00
Ehsan Akhgari
2c672cd8e9 Bug 1053650 follow-up: Mark GetNetworkInterfaceId/SetNetworkInterfaceId as override 2015-04-08 10:27:41 -04:00
Ryan VanderMeulen
581724fc0f Merge inbound to m-c. a=merge 2015-04-07 15:47:40 -04:00
Gervase Markham
3e974eeed2 Bug 1151729 - New TLD additions for TLDs contracted with ICANN through 04/07/2015. r=gerv 2015-04-07 06:50:00 -04:00
Gervase Markham
b887caf45b Bug 1150066 - restore ability to run prepare_tlds.py standalone. r=gps 2015-04-01 08:50:00 +02:00
Randall Barker
c8122e170e Bug 1097804 - Part 1 - Create a library containing nsISocketTransportService and nsIDNS that can be used to support standalone WebRTC. r=mcmanus 2015-04-03 15:54:00 +02:00
Henry Chang
f0d86a1a07 Bug 1053650 - Part 3: Make use of gonk-specific per-interface DNS lookup. r=mcmanus 2015-01-28 11:21:37 +08:00
Henry Chang
284096c57a Bug 1053650 - Part 2: Populate networkInterfaceId to SocketTransport. r=mcmanus 2015-04-07 11:45:57 -04:00
Patrick McManus
e628c8db7e bug 1141775 - one wifi monitor thread r=hurley 2015-04-02 13:58:14 -04:00
Gervase Markham
3a0c78a851 Bug 1137114 - New TLD additions for TLDs contracted with ICANN from 2015-01-27 to 2015-02-26. r=gerv 2015-04-02 03:34:00 -04:00
Dragana Damjanovic
570137e623 Bug 1136969 - Add a check that OnStartRequest is called just once during the lifetime of a channel. r=mcmanus 2015-04-02 06:12:00 -04:00
Ehsan Akhgari
2306715bbc Bug 1148854 - Part 2: Resume the intercepted network reuest if the interception fails for some reason; r=jdm 2015-04-02 17:58:22 -04:00
Patrick McManus
591860d29b Bug 1148328 - Disable alt-svc. r=dveditz
CLOSED TREE
2015-03-31 18:57:44 -04:00
Ehsan Akhgari
06430ec340 Back out bug 1149127 because of Thunderbird insanity 2015-04-02 14:37:55 -04:00
Nathan Froyd
65f6c06592 Bug 1143651 - don't use CallQueryInterface when the compiler can do the cast for us; r=ehsan 2015-03-12 13:20:29 -04:00
Shian-Yow Wu
abf80334a1 Bug 1148503 - Test PAC Generator on B2G only. r=mcmanus 2015-04-02 09:17:59 +08:00
Dragana Damjanovic
ae09029ea9 Bug 647010 - Limit when HTTP authentication dialog is shown. Block cross-origin http auth prompts with pref. r=mayhemer, r=tanvi 2015-04-01 06:56:00 -04:00
Mike Hommey
ccd2a9b975 Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Monica Chew
f0210da034 Bug 1108017: Loosen third-party restrictions for tracking protection checks (r=sworkman) 2015-03-31 13:18:38 -07:00
Valentin Gosu
883cc0c011 Bug 1099209 - Only track leaked URLs on the main thread. r=honzab 2015-03-31 14:19:27 +03:00
Patrick McManus
94f7f88dee bug 1148237 restart verifier null pattern r=honzab 2015-03-30 15:56:49 -04:00
Olli Pettay
26fb4ce03c Bug 1149228, cache data: and https: handlers, r=honzab.moz 2015-03-30 22:32:26 +03:00
Mike Hommey
4da5ed0b71 Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Ehsan Akhgari
8a31417477 Bug 1149127 - Stop exporting LoadInfo unnecessarily; r=ckerschb 2015-03-30 22:57:16 -04:00
Wes Kocher
77420a9c15 Merge m-c to inbound a=merge CLOSED TREE 2015-03-30 19:39:04 -07:00
Sylvestre Ledru
e803dcfc9a Bug 1149078 - Missing UUID dump. r=mconley, a=me
DONTBUILD
2015-03-30 02:27:00 -04:00
Andrew McCreight
4b767927e9 Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley 2015-03-29 07:52:54 -07:00
Michal Novotny
bef7d1cd24 Bug 1147973 - Detailed disk cache hit rate telemetry is wrong, r=honzab 2015-03-30 21:08:52 +02:00
Andrew McCreight
78ef3a55a4 Bug 1147572 - Remove implementation language field from DOM class info. r=jst 2015-03-30 10:45:39 -07:00
Hiroyuki Ikezoe
94bf301376 Bug 1139254 - Use MockRegistrar in netwerk. r=jduell 2015-03-03 19:46:00 -05:00
Honza Bambas
e135c0a368 Bug 1124880 - Call PR_Close of UDP sockets on new threads. r=mcmanus 2015-03-27 09:24:00 -04:00
Blake Kaplan
0bcc36d8fc Bug 1058551 - Support redirects to data: URIs. r=honza 2015-03-27 13:12:37 -07:00
Randell Jesup
dcb9e16c80 Bug 1148231: fix wrong error message on DataChannel failed resend of packet r=khuey 2015-03-27 13:34:45 -04:00
Andrea Marchesini
b212600c95 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Wes Kocher
dd8a8fcae7 Merge m-c to inbound a=merge CLOSED TREE 2015-03-26 17:46:35 -07:00
Francois Marier
d86c398568 Bug 1138979 - Pref to turn TP on when in Private Browsing mode. r=mmc, r=ehsan 2015-03-24 14:10:00 -04:00