Commit Graph

6052 Commits

Author SHA1 Message Date
Patrick McManus
1aafd5f692 bug 1142384 - eventtokenbucket thread management r=hurley 2015-04-28 00:12:29 -04:00
David Major
ed6ca74f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
Ryan VanderMeulen
7bc7b60b19 Merge m-c to inbound. a=merge 2015-04-27 15:20:16 -04:00
Jonathan Hao
1a42a6aa39 Bug 1151760 - Separate timeout timer with end of stream. r=ettseng 2015-04-24 15:25:09 +08:00
Ehsan Akhgari
2417a941fd 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
cc4bc6024d 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
2e0d35e090 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
c5d57b8e67 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
3af0e9963c Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Jan de Mooij
4b7f9709f5 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
65064cf4b0 Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus 2015-04-22 17:13:57 -07:00
Valentin Gosu
072a209d47 Bug 1135354 - Fix comment regarding URL max length r=me DONTBUILD CLOSED TREE 2015-04-23 00:10:43 +03:00
Wes Kocher
adaa840e08 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
8066fc1587 Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus 2015-04-20 07:27:00 -04:00
Andrea Marchesini
eff949a801 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
0915a15420 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
5c13924153 Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Wes Kocher
6fdfd8574e Backed out changeset 8b99d282cd87 (bug 1156084) for static bustage CLOSED TREE 2015-04-21 14:23:56 -07:00
Ehsan Akhgari
783d64de67 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
e1d91cf3c6 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
a9b331215f 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
2128024376 bug 1153212 - Alt-Svc Fixes r=dkeeler r=hurley 2015-04-13 17:11:59 -04:00
Wes Kocher
f180216650 Merge m-c to fx-team a=merge CLOSED TREE 2015-04-20 17:19:07 -07:00
Denis Volk
cd6346cce0 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Tom Tromey
1a1dbab640 Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
Wes Kocher
7ac70178c3 Backed out changeset dbee7cf7e96f (bug 1096908) for bustage 2015-04-20 11:22:21 -07:00
Tom Tromey
b2f4baac33 Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:09:34 -07:00
Josh Matthews
6a2c598fe7 Bug 1137287 - Build fix. rs=KWierso for a CLOSED TREE 2015-04-17 19:27:05 -04:00
Josh Matthews
fe3b91c0cd 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
feda39dd0f Bug 1137287 - Part 1: Shift some code from InterceptedChannelContent to HttpChannelChild. r=mayhemer 2015-04-17 18:59:10 -04:00
Wes Kocher
3845f6460e 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
0e272ede50 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
ac81ced90e 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
b818a4adbe 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
fba75178ed 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
8a7ed8a37e 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
cb5c627737 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
8229a666f3 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
2ef0ab6fab 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
1008b389ec Bug 1153924 - do not use altsvc with proxy r=hurley 2015-04-13 12:33:10 -04:00
Patrick McManus
4cde8b5219 Bug 1153896 - dont setup altsvc for same host/port as origin r=hurley 2015-04-09 23:38:26 -04:00
Patrick McManus
2dd72c2827 Bug 1153869 - altsvc assert scheme is http or https r=hurley 2015-04-13 10:20:26 -04:00
Christoph Kerschbaumer
cca645486b Bug 1134096 - Revise docs for ::NewChannel2, ::GetChannelPrincipal and add deprecation warnings (r=tanvi,sicking) 2015-04-13 13:37:14 -07:00
Nathan Froyd
db85e8c100 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
68d9d5628d 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
c4be9315ba 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
23e4210037 Bug 1153437 - rename proxyFlags to controlFlags with nsISocketProvider interfaces r=hurley 2015-04-10 17:27:27 -04:00
Christoph Kerschbaumer
2846cece87 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
9af5631297 Bug 1152897 - update Alt-Svc pref name and default r=hurley 2015-04-06 15:28:21 -04:00
Shian-Yow Wu
9e178d1434 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
5487d8f5d2 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
02786021b3 Backed out changeset 35e6bbc2136b (bug 1134596) for Android Crashtest failures 2015-04-09 12:33:41 +02:00
Carsten "Tomcat" Book
4323e2c753 Backed out changeset 82d6b5523a2b (bug 1134596) 2015-04-09 12:31:51 +02:00
Carsten "Tomcat" Book
96d695c117 Backed out changeset fb48ee62bab4 (bug 1134596) 2015-04-09 12:31:49 +02:00
Valentin Gosu
e56adf5c90 Bug 1134596 - SetOffline(false) in nsIOService::Init r=honzab 2015-04-09 06:33:08 +03:00
Valentin Gosu
371da4bde3 Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-04-09 06:33:03 +03:00
Valentin Gosu
abd64ec2ca Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-04-09 06:32:53 +03:00
Ehsan Akhgari
c8230e2426 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
f1e9589b54 Bug 1053650 follow-up: Mark GetNetworkInterfaceId/SetNetworkInterfaceId as override 2015-04-08 10:27:41 -04:00
Ryan VanderMeulen
9ca5e70312 Merge inbound to m-c. a=merge 2015-04-07 15:47:40 -04:00
Gervase Markham
ae7caa08c5 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
d8b52dd264 Bug 1150066 - restore ability to run prepare_tlds.py standalone. r=gps 2015-04-01 08:50:00 +02:00
Randall Barker
ef733d24e8 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
6b51232ce6 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
7e98a1f2e2 Bug 1053650 - Part 2: Populate networkInterfaceId to SocketTransport. r=mcmanus 2015-04-07 11:45:57 -04:00
Patrick McManus
7fd4109252 bug 1141775 - one wifi monitor thread r=hurley 2015-04-02 13:58:14 -04:00
Gervase Markham
f9e022f260 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
cbfa7e7c3c 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
fc1a010b2a 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
6f86d0bb9b Bug 1148328 - Disable alt-svc. r=dveditz
CLOSED TREE
2015-03-31 18:57:44 -04:00
Ehsan Akhgari
808c19245e Back out bug 1149127 because of Thunderbird insanity 2015-04-02 14:37:55 -04:00
Nathan Froyd
4181765caf 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
eb26a07310 Bug 1148503 - Test PAC Generator on B2G only. r=mcmanus 2015-04-02 09:17:59 +08:00
Dragana Damjanovic
67c95f19ed 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
ee117642af 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
26c2c18c22 Bug 1108017: Loosen third-party restrictions for tracking protection checks (r=sworkman) 2015-03-31 13:18:38 -07:00
Valentin Gosu
0e41c45f30 Bug 1099209 - Only track leaked URLs on the main thread. r=honzab 2015-03-31 14:19:27 +03:00
Patrick McManus
e202939ddd bug 1148237 restart verifier null pattern r=honzab 2015-03-30 15:56:49 -04:00
Olli Pettay
858d870ef5 Bug 1149228, cache data: and https: handlers, r=honzab.moz 2015-03-30 22:32:26 +03:00
Mike Hommey
95e047925a 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
b314d8716c Bug 1149127 - Stop exporting LoadInfo unnecessarily; r=ckerschb 2015-03-30 22:57:16 -04:00
Wes Kocher
29d000fc41 Merge m-c to inbound a=merge CLOSED TREE 2015-03-30 19:39:04 -07:00
Sylvestre Ledru
a8b59767f0 Bug 1149078 - Missing UUID dump. r=mconley, a=me
DONTBUILD
2015-03-30 02:27:00 -04:00
Andrew McCreight
210c51b7d3 Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley 2015-03-29 07:52:54 -07:00
Michal Novotny
6c2133969b Bug 1147973 - Detailed disk cache hit rate telemetry is wrong, r=honzab 2015-03-30 21:08:52 +02:00
Andrew McCreight
db3e30ab59 Bug 1147572 - Remove implementation language field from DOM class info. r=jst 2015-03-30 10:45:39 -07:00
Hiroyuki Ikezoe
753e1838d7 Bug 1139254 - Use MockRegistrar in netwerk. r=jduell 2015-03-03 19:46:00 -05:00
Honza Bambas
a9d5ec9f20 Bug 1124880 - Call PR_Close of UDP sockets on new threads. r=mcmanus 2015-03-27 09:24:00 -04:00
Blake Kaplan
e3bf33493d Bug 1058551 - Support redirects to data: URIs. r=honza 2015-03-27 13:12:37 -07:00
Randell Jesup
8ebad4e521 Bug 1148231: fix wrong error message on DataChannel failed resend of packet r=khuey 2015-03-27 13:34:45 -04:00
Andrea Marchesini
94545cbb2e Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Wes Kocher
ec293905dc Merge m-c to inbound a=merge CLOSED TREE 2015-03-26 17:46:35 -07:00
Francois Marier
ccb47f23ca Bug 1138979 - Pref to turn TP on when in Private Browsing mode. r=mmc, r=ehsan 2015-03-24 14:10:00 -04:00
Monica Chew
cd97968417 Bug 1144786: Create ClassifyLocalWithTables (r=gcp,francois) 2015-03-26 15:24:19 -07:00
Shian-Yow Wu
2ec7438acb Bug 1115495 - Part 2: PAC generator for browsing and system wide proxy. r=mcmanus, r=echen 2015-03-26 15:11:08 +08:00
Shian-Yow Wu
8fc32559dc Bug 1115495 - Part 1: Support app info for PAC. r=mcmanus 2015-03-26 15:11:05 +08:00
Michal Novotny
39713c4594 Bug 1141555 - HTTP cache v2 generates corrupted entries, r=jduell 2015-03-26 23:05:34 +01:00
Randell Jesup
89c28757a4 Bug 1146096: rollup of sctp modifications for Android rs=jesup 2015-03-26 17:15:44 -04:00
Randell Jesup
1210388a08 Bug 1146096: update usrsctp to rev 9209 from upstream rs=jesup
Pick up build fixes for musl-libc from upstream and a null-deref fix
2015-03-26 17:15:43 -04:00
Ehsan Akhgari
a1c48803c9 Bug 1147746 - Null check mInterceptListener in HttpChannelChild::ResetInterception; r=jdm 2015-03-26 17:10:15 -04:00