Commit Graph

11443 Commits

Author SHA1 Message Date
Valentin Gosu
0bc433b11c Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-03-26 13:19:47 +02:00
Valentin Gosu
f8c914c69e Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-05-02 00:14:39 +03:00
Ilya
244449d4b5 Bug 1125816 - Parse FTP directory listings of Windows CE and WEC7 FTP Server r=jduell 2015-05-01 11:22:32 -07:00
theoneisneo
0653385d17 Bug 1149872 - Add the missing format specifiers. r=jduell
--HG--
extra : rebase_source : c8eae9123be0739ef0d7c34fb6794d9dce9bdebc
extra : histedit_source : 71aab00aa6e695497879681aab67ea3c6ace3d31
2015-04-02 01:56:00 -04:00
Patrick McManus
59fdf06bcd Bug 1159944 - more alt-svc tests r=hurley 2015-04-30 20:53:20 -04:00
Mike Hommey
924c9eb636 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
c8ff2d51c8 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.

--HG--
extra : rebase_source : 4c6ab0c449bc18e8bace8bf036b5bd78d3a2f1c4
2015-04-29 16:38:29 -07:00
Patrick McManus
152d8038bf bug 1157280 - dont getSockName from main thread r=hurley 2015-04-29 18:39:06 -04:00
David Keeler
ad40c2968a bug 1153964 - allow unrestricted RC4 fallback in beta and release r=Cykesiopka
--HG--
extra : amend_source : 84b36899198baa138abb244df059649277709d05
2015-04-28 10:51:40 -07:00
Richard Barnes
4b1671adf4 Bug 1159945 - Add telemetry to measure HSTS usage 2015-04-29 16:16:16 -07:00
Wes Kocher
fb48025efb Backed out changeset 88a77375f4df (bug 924187) for probably breaking PGO builds CLOSED TREE 2015-04-28 15:21:07 -07:00
Valentin Gosu
b6ae7d5d90 Bug 1040285 - Single Quotes should not be encoded in the path r=mcmanus,annevk 2015-04-28 18:29:22 +03:00
Gervase Markham
e467d8072c Bug 1157676 - Update PSL for .gl. r=gerv 2015-04-28 07:52:00 -04:00
Gervase Markham
e2465750c7 Bug 1155882 - Update PSL to add eu.org domains. r=gerv 2015-04-28 07:20:00 -04:00
Brian O'Keefe
17e8110d7a Bug 924187 - Deal with interfaces.manifest from the backend. r=mshal 2015-02-13 08:11:57 -05:00
Gervase Markham
486199152f Bug 1155625 - Update PSL comment for .nl. r=gerv 2015-04-28 06:42:00 -04:00
Gervase Markham
3fafbf7a4b Bug 1155496 - Add 4u.com to PSL. r=gerv 2015-04-28 06:31:00 -04:00
Gervase Markham
d206b9ceef Bug 1155232 - Update .pl domains in PSL. r=gerv 2015-04-28 06:47:00 -04:00
Patrick McManus
abd1938940 bug 1142384 - eventtokenbucket thread management r=hurley 2015-04-28 00:12:29 -04:00
David Major
ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Ryan VanderMeulen
105fa88eae Merge m-c to inbound. a=merge 2015-04-27 15:20:16 -04:00
Jonathan Hao
2ad2daadc6 Bug 1151760 - Separate timeout timer with end of stream. r=ettseng 2015-04-24 15:25:09 +08:00
Ehsan Akhgari
5652b2e0e9 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
486e079300 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
bac5f0c520 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
ea261c2bb2 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
0c176ddcff Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Jan de Mooij
103a223716 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
c45d6ca104 Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus 2015-04-22 17:13:57 -07:00
Valentin Gosu
bcd09a7c72 Bug 1135354 - Fix comment regarding URL max length r=me DONTBUILD CLOSED TREE 2015-04-23 00:10:43 +03:00
Wes Kocher
cf6a17b863 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
d9b1b42800 Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus
--HG--
extra : rebase_source : 4dd45cffd30c320b15f5778f6979981239e276a1
2015-04-20 07:27:00 -04:00
Andrea Marchesini
cb54385682 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
399276d5fc 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
638b28b8e0 Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Wes Kocher
78060d2f53 Backed out changeset 8b99d282cd87 (bug 1156084) for static bustage CLOSED TREE 2015-04-21 14:23:56 -07:00
Ehsan Akhgari
3d21a05904 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
3f4737e49a 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
ccd0c74313 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
04795f03be bug 1153212 - Alt-Svc Fixes r=dkeeler r=hurley 2015-04-13 17:11:59 -04:00
Wes Kocher
4b97517c7c Merge m-c to fx-team a=merge CLOSED TREE 2015-04-20 17:19:07 -07:00
Denis Volk
32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Tom Tromey
d48f66c123 Bug 1096908 - forward network security messages to the content process; r=hurley
--HG--
extra : rebase_source : 8b44bcac632a2170f4d4eeb45aff1f0b751621fa
2015-04-20 11:42:09 -07:00
Wes Kocher
501075782d Backed out changeset dbee7cf7e96f (bug 1096908) for bustage 2015-04-20 11:22:21 -07:00
Tom Tromey
837eed6a5a Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:09:34 -07:00
Josh Matthews
b776db08f0 Bug 1137287 - Build fix. rs=KWierso for a CLOSED TREE 2015-04-17 19:27:05 -04:00
Josh Matthews
04c41ddefc 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
9726be2a7e Bug 1137287 - Part 1: Shift some code from InterceptedChannelContent to HttpChannelChild. r=mayhemer 2015-04-17 18:59:10 -04:00
Wes Kocher
e3210dc1de 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
af1ece91c4 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
68ac72d180 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
6afdd6c96b Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
--HG--
extra : rebase_source : d210822225d307f3e3685cb5f95b461c48c0be7e
2015-03-19 00:46:40 -07:00
Nathan Froyd
1e6cdad33c 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
8d04b9dd34 Bug 1150703, allow about: pages to be unlinkable even if "safe for content", r=mcmanus, IGNORE IDL
--HG--
extra : rebase_source : 4a73b907c246d7900362b55f908789cf354e703e
extra : histedit_source : 72c8a0d642684d833ec3819e216367a6db985d61
2015-04-03 09:59:00 +01:00
Patrick McManus
965b4acedf 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
dea53428c8 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
2bc676b831 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
f5c22512f7 Bug 1153924 - do not use altsvc with proxy r=hurley 2015-04-13 12:33:10 -04:00
Patrick McManus
61b076171b Bug 1153896 - dont setup altsvc for same host/port as origin r=hurley 2015-04-09 23:38:26 -04:00
Patrick McManus
c5a3235e9e Bug 1153869 - altsvc assert scheme is http or https r=hurley 2015-04-13 10:20:26 -04:00
Christoph Kerschbaumer
e6a1d175c3 Bug 1134096 - Revise docs for ::NewChannel2, ::GetChannelPrincipal and add deprecation warnings (r=tanvi,sicking) 2015-04-13 13:37:14 -07:00
Nathan Froyd
dbc40671bc 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
2b1ae6e2ca 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
fb4b821e19 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.

--HG--
extra : rebase_source : 24b04d619891ec95e5df23a2eb7f3277dd3206b2
extra : amend_source : 72139cecdcd695171e2fd0ce8ea7be91c1eebd1a
2015-04-03 08:20:32 -04:00
Patrick McManus
a38b6ba267 Bug 1153437 - rename proxyFlags to controlFlags with nsISocketProvider interfaces r=hurley 2015-04-10 17:27:27 -04:00
Christoph Kerschbaumer
1d154e9fe4 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
279ac8f075 Bug 1152897 - update Alt-Svc pref name and default r=hurley 2015-04-06 15:28:21 -04:00
Shian-Yow Wu
30be5220e8 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
9441d5b1f1 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
2d13b44c69 Backed out changeset 35e6bbc2136b (bug 1134596) for Android Crashtest failures 2015-04-09 12:33:41 +02:00
Carsten "Tomcat" Book
550bcb19ad Backed out changeset 82d6b5523a2b (bug 1134596) 2015-04-09 12:31:51 +02:00
Carsten "Tomcat" Book
63274e410d Backed out changeset fb48ee62bab4 (bug 1134596) 2015-04-09 12:31:49 +02:00
Valentin Gosu
d1e3086f18 Bug 1134596 - SetOffline(false) in nsIOService::Init r=honzab 2015-04-09 06:33:08 +03:00
Valentin Gosu
49e6a369d1 Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-04-09 06:33:03 +03:00
Valentin Gosu
375387ec80 Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-04-09 06:32:53 +03:00
Ehsan Akhgari
b06db58c73 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
4f8f80b77d Bug 1053650 follow-up: Mark GetNetworkInterfaceId/SetNetworkInterfaceId as override 2015-04-08 10:27:41 -04:00
Ryan VanderMeulen
e2d5707a36 Merge inbound to m-c. a=merge 2015-04-07 15:47:40 -04:00
Gervase Markham
254ea5d7ad 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
dd86798f74 Bug 1150066 - restore ability to run prepare_tlds.py standalone. r=gps
--HG--
extra : rebase_source : 4d51ae0af8befcb7eb13ed62b29a1122291f7bd7
2015-04-01 08:50:00 +02:00
Randall Barker
b7e4e29621 Bug 1097804 - Part 1 - Create a library containing nsISocketTransportService and nsIDNS that can be used to support standalone WebRTC. r=mcmanus
--HG--
extra : rebase_source : 9a97f2622a0d7bd9f672aa652450af259792e059
2015-04-03 15:54:00 +02:00
Henry Chang
d7d5a942ab Bug 1053650 - Part 3: Make use of gonk-specific per-interface DNS lookup. r=mcmanus
--HG--
extra : rebase_source : a859ed97ede124c0d87dd72c6399be15c72c272d
2015-01-28 11:21:37 +08:00
Henry Chang
90b7e51843 Bug 1053650 - Part 2: Populate networkInterfaceId to SocketTransport. r=mcmanus
--HG--
extra : rebase_source : a198156d6d430d7f92801c0f2db51cb297820867
2015-04-07 11:45:57 -04:00
Patrick McManus
6f05b444be bug 1141775 - one wifi monitor thread r=hurley 2015-04-02 13:58:14 -04:00
Gervase Markham
1478c1b490 Bug 1137114 - New TLD additions for TLDs contracted with ICANN from 2015-01-27 to 2015-02-26. r=gerv
--HG--
extra : rebase_source : fdb9273c5acef5e9191c6012a2f6ec1bd73ee8fe
2015-04-02 03:34:00 -04:00
Dragana Damjanovic
ef6b522bde Bug 1136969 - Add a check that OnStartRequest is called just once during the lifetime of a channel. r=mcmanus
--HG--
extra : rebase_source : 756ae3c377788dfe9cf4b073fddc8d99f6021b77
2015-04-02 06:12:00 -04:00
Ehsan Akhgari
54a6fed4fc 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
d6e607d318 Bug 1148328 - Disable alt-svc. r=dveditz
CLOSED TREE

--HG--
extra : amend_source : 7c4b5166e882dea1b094cf2d96882757b01c64ac
2015-03-31 18:57:44 -04:00
Ehsan Akhgari
7b1bbb9ff6 Back out bug 1149127 because of Thunderbird insanity 2015-04-02 14:37:55 -04:00
Nathan Froyd
4c7234747e 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
62f8ad8aab Bug 1148503 - Test PAC Generator on B2G only. r=mcmanus 2015-04-02 09:17:59 +08:00
Dragana Damjanovic
b658f9d97e 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
b077d9624d 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
a326516c92 Bug 1108017: Loosen third-party restrictions for tracking protection checks (r=sworkman) 2015-03-31 13:18:38 -07:00
Valentin Gosu
cf1ade364b Bug 1099209 - Only track leaked URLs on the main thread. r=honzab 2015-03-31 14:19:27 +03:00
Patrick McManus
c16820f682 bug 1148237 restart verifier null pattern r=honzab
--HG--
extra : rebase_source : 5d351e693d01851ec5a7a7f0455a8f4ed2ae9bb7
2015-03-30 15:56:49 -04:00
Olli Pettay
27cce7e99a Bug 1149228, cache data: and https: handlers, r=honzab.moz
--HG--
extra : rebase_source : 104be024bcaa43317abe048e403e29420aa285e4
2015-03-30 22:32:26 +03:00
Mike Hommey
c39e359c7d 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
20a174961f Bug 1149127 - Stop exporting LoadInfo unnecessarily; r=ckerschb 2015-03-30 22:57:16 -04:00
Wes Kocher
a3c2aab799 Merge m-c to inbound a=merge CLOSED TREE 2015-03-30 19:39:04 -07:00