Commit Graph

541 Commits

Author SHA1 Message Date
Daniel Stenberg
3c342a036c Bug 939318 - Detect network interface changes on Windows. r=mcmanus
Now supports IPv6 as well if a new enough windows version is used.
Which notification function to use is detect at run-time.

Now sends CHANGED event if the online interface(s) are different in any
way since it was previously checked and considered UP. CHANGED is sent
before UP in case both are detected. It does not send any CHANGED events
during the first 2 seconds after startup.

nIOService: split up the network event receiver function from the
network status init function and have the event receiver act on the
incoming event.

DNSservice: acts on network changes (flushes the host cache and restarts
ongoing name resolves)

HttpHandler: acts on network changes
2014-09-24 23:14:00 -04:00
Steve Workman
781b12d4ac Bug 1070966 - Change WrapRunnableNM to NS_NewRunnableMethodWithArg r=mcmanus 2014-09-24 09:56:13 -07:00
Ed Morley
68a4431f02 Backed out changeset 89d06d103c10 (bug 939318) for Valgrind failures; CLOSED TREE 2014-09-24 16:17:57 +01:00
Daniel Stenberg
0a99f86b10 Bug 939318 - Detect network interface changes on windows. r=mcmanus
Now supports IPv6 as well if a new enough windows version is used.
Which notification function to use is detect at run-time.

Now sends CHANGED event if the online interface(s) are different in any
way since it was previously checked and considered UP. CHANGED is sent
before UP in case both are detected. It does not send any CHANGED events
during the first 2 seconds after startup.

nIOService: split up the network event receiver function from the
network status init function and have the event receiver act on the
incoming event.

DNSservice: acts on network changes (flushes the host cache and restarts
ongoing name resolves)

HttpHandler: acts on network changes
2014-09-23 03:48:00 -04:00
David Major
f615b7f97a Bug 1067679 followup - fix build bustage with VS2013.
--HG--
extra : rebase_source : 63b5b6795d53d70b2d3b3efa1efee1ea2ae2b9df
2014-09-22 13:52:28 +12:00
John Sullivan
afb8c65f74 Bug 1067679 - Call DnsQuery in addition to getaddrinfo to get DNS TTL on Windows r=sworkman 2014-09-20 15:10:18 -07:00
Gervase Markham
a240473613 Bug 1061266 - New TLD additions for gTLDs contracted with ICANN from 2014-07-25 to 2014-09-01. r=gerv 2014-09-02 07:27:00 +02:00
Gervase Markham
50957ecfbb Bug 1061264 - Add service.gov.uk to the PSL. Patch by David Illsley <david.illsley@digital.cabinet-office.gov.uk>. r=gerv. 2014-09-02 08:07:00 +02:00
Ryan VanderMeulen
4790de3914 Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout
Backed out changeset 21dcd9e1b607 (bug 939318)
Backed out changeset cc131cf9ef81 (bug 939318)
Backed out changeset 02925699b9bb (bug 939318)
Backed out changeset a2d39ac660a6 (bug 939318)
Backed out changeset eeb8897aaa59 (bug 939318)
Backed out changeset d1e1ca369322 (bug 939318)
Backed out changeset 37bee525b188 (bug 939318)
2014-08-26 15:56:51 -04:00
Dragana Damjanovic
95bb7a603a Bug 947721 - Fix function CancelAsyncRequest and add the same function for the child process. r=sworkman
--HG--
extra : rebase_source : b89d296732cd65e8bfc0c6ff563095a668484eae
2014-08-26 05:09:00 -04:00
Daniel Stenberg
fddcc7895a Bug 939318 - Detect network interface changes on windows properly. r=mcmanus
Now supports IPv6 as well if a new enough windows version is used.
Which notification function to use is detect at run-time.

Now sends CHANGED event if the online interface(s) are different in any
way since it was previously checked and considered UP. CHANGED is sent
before UP in case both are detected.

nIOService: split up the network event receiver function from the
network status init function and have the event receiver act on the
incoming event.

DNSservice: acts on network changes (flushes the host cache)

HttpHandler: acts on network changes
2014-08-24 23:19:00 -04:00
Patrick McManus
61e8326ec0 Bug 820391 - Backout revision 4741ef815af9 for various regressions.
DONTBUILD
2014-08-21 10:53:11 -04:00
Ryan VanderMeulen
b639a7705e Backed out changeset 49502f43bd03 for landing with the wrong bug number. 2014-08-21 11:03:02 -04:00
Patrick McManus
c053329b75 bug 820931 - backout 4741ef815af9 r=backout
--HG--
extra : rebase_source : d862e877dd3d28df5322b3464e3c0b10a460a56d
2014-08-21 10:53:11 -04:00
josullivan
5b050f249b Bug 820391: Use DnsQuery on Windows. r=sworkman
From 21e22e494541d5e4c085a6ba84e1bc5b4c92330e Mon Sep 17 00:00:00 2001
---
 netwerk/dns/DNS.cpp            |  65 +++++++-
 netwerk/dns/DNS.h              |   6 +
 netwerk/dns/GetAddrInfo.cpp    | 362 +++++++++++++++++++++++++++++++++++++++++
 netwerk/dns/GetAddrInfo.h      |  65 ++++++++
 netwerk/dns/moz.build          |   1 +
 netwerk/dns/nsHostResolver.cpp | 320 ++++++++++++++++++++++++++----------
 netwerk/dns/nsHostResolver.h   |  43 ++++-
 7 files changed, 766 insertions(+), 96 deletions(-)
 create mode 100644 netwerk/dns/GetAddrInfo.cpp
 create mode 100644 netwerk/dns/GetAddrInfo.h
2014-08-15 17:25:06 -07:00
Gervase Markham
7a4edabe60 Bug 1051892 - Fix comments in PSL. r=gerv 2014-08-13 07:39:00 -04:00
Frederico Neves
cce9df4db9 Bug 1051875 - Update PSL for nom.br. r=gerv 2014-08-13 07:41:00 -04:00
Mehmet Gurevin
cd8bca080d Bug 1041035 - Add subTLDs for .tr to PSL. r=gerv 2014-08-13 07:45:00 -04:00
Stefano Rivera
f4cc6ae8d3 Bug 1040729 - Add yolasite.com to PSL. r=gerv 2014-08-13 07:51:00 -04:00
Jonathan Rudenberg
69a2398ee8 Bug 1037901 - Add flynnhub.com to PSL. r=gerv 2014-08-13 07:53:00 -04:00
Gervase Markham
d40d5b1c0a Bug 1028347 - Remove k12.nd.us from PSL. r=gerv 2014-08-13 07:55:00 -04:00
Stefan Meinecke
576f6feffd Bug 1024631 - Remove additional line breaks between 4rd level .us tld sections. r=gerv 2014-08-13 07:59:00 -04:00
Ben Cartwright-Cox
59eb17d870 Bug 1025002 - Update .et in PSL. r=gerv 2014-06-25 08:31:00 -04:00
Gervase Markham
54bcd40067 Bug 1024740 - Change one instance of engineering to engineer in the PSL. r=gerv 2014-06-13 02:40:00 -04:00
Nicholas Nethercote
ffea0fdbca Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Andrew McCreight
14a59b9fa7 Bug 1046281 - Use the simpler version of nsTHashtable memory reporters. r=njn 2014-08-05 13:27:41 -07:00
Gervase Markham
949e11c0a2 Bug 1045295 - Update PSL with new TLD additions for TLDs contracted with ICANN from 06/05/2014 - 07/24/2014. r=gerv 2014-08-05 11:00:00 -04:00
Ehsan Akhgari
4386d2f7fc Bug 1047782 - Fix some bad impliciit constructors in netwerk/; r=mcmanus 2014-08-05 09:20:50 -04:00
Ehsan Akhgari
9745a79694 Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
Byron Campen [:bwc]
a1fdab2fa9 Bug 963524 - Avoid setting SO_REUSEADDR when binding a UDP socket to port 0, since the linux kernel might select an already open port. r=mcmanus 2014-07-30 15:02:58 -07:00
Patrick McManus
5e1b5f3e6e Bug 354493 - revert Add nsINetworkZonePolicy to protect resources loaded from private IPs r=backout a=backout 2014-07-24 10:05:36 -04:00
Byron Campen [:bwc]
c093b0f4d8 Bug 1042873: Add the appropriate byte-order conversion to ChildDNSRecord::GetNextAddr r=mcmanus 2014-07-23 11:48:05 -07:00
Mike Hommey
9ae3c48776 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Steve Workman
2cabfdd5a8 Bug 354493 - Add nsINetworkZonePolicy to protect resources loaded from private IPs r=mcmanus 2014-07-17 11:08:20 -07:00
Birunthan Mohanathas
8e23240dba Bug 1039653 - Remove unused nsIDNSRequest.idl. r=mcmanus 2014-07-16 12:02:34 -07:00
Gijs Kruitbosch
0ff4d4d3ed Bug 693808 - part 0: add function decorator to nsIDNSListener, r=bsmedberg 2014-07-11 23:55:17 +01:00
Valentin Gosu
9d8734685f Bug 1026022 - Check that string is UTF8. r=mcmanus 2014-07-02 19:12:19 +03:00
Nicu Badescu
374f04933a Bug 1026656 - Fix resolve accessing temporary variable. r=valentin.gosu, r=mcmanus 2014-06-22 15:55:00 -04:00
Benoit Jacob
d51ba204fb Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
Nicholas Nethercote
bb9d51e11e Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Gervase Markham
c580133bf3 Bug 1024514 - Add more new gTLD PSL entries. r=gerv 2014-06-12 07:56:00 -04:00
Chris Raynor
5c4bd4d669 Bug 962360 - Add firebaseapp.com to the PSL. r=gerv 2014-06-11 06:21:00 -04:00
Gavin Brown
278b01f298 Bug 1006570 - Add com.se to the PSL. r=gerv 2014-06-11 06:23:00 -04:00
Gervase Markham
d20f48a4a8 Bug 981927 - Update public suffix list for .cm. r=gerv 2014-06-12 07:38:00 -04:00
Gervase Markham
c2f9bf70ff Bug 985495 - Add nfshost.com to PSL. r=gerv 2014-06-12 07:31:00 -04:00
Michael Daly
15ca19616d Bug 1015214 - Update PSL for .uk. r=gerv 2014-06-12 06:53:00 -04:00
Gervase Markham
afd70e04ff Bug 969471 - Remove csiro.au from PSL (again, and finally). r=gerv 2014-06-10 08:57:00 -04:00
Gervase Markham
e3b97b1b6d Bug 984824 - Remove act.gov.au from the PSL. r=gerv 2014-06-10 08:56:00 -04:00
Gervase Markham
414784c7e0 Bug 990543 - Add 2nd level IDN ccTLDs for .срб (.srb). r=gerv 2014-06-10 08:52:00 -04:00
Gervase Markham
5abc310e01 Bug 1003034 - Remove pskov.ru from PSL. r=gerv 2014-06-10 08:45:00 -04:00
Gervase Markham
33f0a4f165 Bug 1007529 - Update PSL for nid.io. r=gerv 2014-06-10 08:38:00 -04:00
Simone Carletti
4871f41470 Bug 1008202 - Update PSL for .nz. r=gerv 2014-05-20 01:38:00 -04:00
Ángel González
5ceb173716 Bug 791769 - Update PSL for .ve. r=gerv
Adds arts.ve, firm.ve, gob.ve, int.ve, rec.ve, store.ve, tec.ve
2014-05-20 20:52:24 +02:00
Ángel González
6bc9ef9674 Bug 1000668 - Update PSL for .bb (co.bb and tv.bb). r=gerv 2014-05-20 21:08:56 +02:00
Ángel González
be3d092d01 Bug 1000663 - Update PSL for .vu. r=gerv 2014-05-20 21:30:01 +02:00
Ángel González
d648fb81da Bug 982776 - Add .gov.ar to the PSL. r=gerv 2014-05-20 22:14:19 +02:00
Ángel González
230d4dcbe4 Bug 978972 - Add amazonaws.cn domains to the PSL. r=gerv 2014-05-20 21:53:05 +02:00
Birunthan Mohanathas
53a11ecbdf Bug 869836 - Part 4: Use EqualsLiteral instead of Equals(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
504b581650 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Georg Koppen
e3befbc39c Bug 971153 - Write a test for bug 751465. r=mcmanus
This patch adds a) a test for the fixed proxy bypass in bug 751465 and
makes b) some underlying changes to the nsDNSService to be able to write
that test in the first place.
2014-04-15 22:13:00 +02:00
Angel Gonzalez
3677b8e975 Bug 986241 - Fix wrong .it entries containing a space r=gerv 2014-03-21 18:11:22 +01:00
Simone Carletti
d066e3717b Bug 967524 - Update to CentralNic SLDs. r=gerv 2014-03-21 08:52:01 -04:00
Simone Carletti
b3edeb6d46 Bug 985464 - Add outsystemscloud.com to PSL. r=gerv 2014-03-19 13:42:38 -04:00
Simone Carletti
a4d611ded8 Bug 984995 - Update PSL for .se. r=gerv 2014-03-19 13:42:38 -04:00
Simone Carletti
1caff7d36a Bug 981273 - New TLD additions for TLDs contracted with ICANN from 02/25/2014 - 03/13/2014. r=gerv 2014-03-19 13:30:28 -04:00
Ryan VanderMeulen
1dcfbca8a6 Backed out changeset f6478f166f2f (bug 967524) for bustage. 2014-03-19 13:13:18 -04:00
Simone Carletti
dd5fb2ee6a Bug 967524 - Update to CentralNic SLDs. r=gerv 2014-03-19 13:05:03 -04:00
Patrick McManus
f3ab58aa4e bug 982565 - make dns ttl and grace period prefs respect 1s granularity r=sworkman 2014-03-09 06:01:56 -04:00
Nicholas Nethercote
a792fdb68e Bug 969902 - Fix a problem with DNS memory reporting measurement. r=sworkman.
--HG--
extra : rebase_source : a9fba2e21b2f9ecb267367a9006883d2bbd313e4
2014-03-10 15:44:35 -07:00
Patrick McManus
a7e7d75eb8 bug 981513 - revert 807441 r=sworkman
--HG--
extra : rebase_source : d2c219fe01b6e4e0fdf25b920df0091039cf4c18
2014-03-09 11:00:18 -04:00
Simone Carletti
19cfe1743e Bug 980870 - Update PSL for .IT to include Regions and Provice reserved suffixes. r=gerv 2014-03-10 08:57:51 -04:00
Simone Carletti
4edd12d65a Bug 980872 - Update PSL for .JP. r=gerv 2014-03-07 11:37:21 -05:00
Simone Carletti
753bb738b5 Bug 980864 - Update PSL for .MS. r=gerv 2014-03-07 11:37:21 -05:00
Simone Carletti
1e27c74a7a Bug 980844 - Add mp.br to PSL. r=gerv 2014-03-07 09:08:03 -05:00
Simone Carletti
613305dfce Bug 980841 - Add desa.id to PSL. r=gerv 2014-03-07 09:00:53 -05:00
Simone Carletti
339f44f575 Bug 980837 - Remove trailing spaces from PSL. r=gerv 2014-03-07 09:00:52 -05:00
Simone Carletti
3b4c47ccd2 Bug 968310 - New TLD additions for TLDs contracted with ICANN from 01/15/2013 - 03/07/2014. r=gerv 2014-03-07 08:55:16 -05:00
Simone Carletti
003119aa3c Bug 969087 - Add GitHubUserContent.com to PSL. r=gerv 2014-02-24 09:41:55 -05:00
Ehsan Akhgari
82ebdc883f Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Gervase Markham
ad0ac71eee Bug 968892 - Fix typo in romanized name for China. r=weppos 2014-02-10 15:58:47 -05:00
Simone Carletti
4d12974098 Bug 966197 - Make sure all suffixes in PSL are lower-case. r=gerv 2014-02-07 15:32:41 -05:00
Simone Carletti
604e5c316f Bug 965744 - PSL changes for Google private domains. r=gerv 2014-01-30 11:32:08 -05:00
Simone Carletti
0c3b6ed7b6 Bug 965740 - Add Microsoft azure to PSL. r=gerv 2014-01-30 11:17:11 -05:00
Simone Carletti
7ab4b65826 Bug 962945 - Remove duplicate .works entry from PSL. r=gerv 2014-01-24 08:46:11 -05:00
Simone Carletti
5fc3787517 Bug 951060 - New TLD additions for TLDs contracted with ICANN until January 20th, 2014. r=gerv 2014-01-21 11:40:20 -05:00
Josh Aas
c6fbe9fc52 Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent 2014-01-17 13:49:39 -06:00
Ryan Sleevi
f7e383ee30 Bug 958299 - Remove PSL duplicates and fully contain all IANA-assigned gTLDs. r=gerv 2014-01-10 08:53:34 -05:00
Nicholas Hurley
6480bda07a Bug 957759 - Remove SRV experiment code (helps prevent crashes). r=mcmanus 2014-01-09 13:50:04 -08:00
Birunthan Mohanathas
dfbad43639 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Nicholas Nethercote
ed423fbdef Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Hurley
8ff706eb4a Bug 950888 - Check for null DNS results before using them. r=mcmanus 2013-12-19 12:54:47 -08:00
Ryan VanderMeulen
da7f948f87 Merge m-c to inbound on a CLOSED TREE. 2013-12-11 22:39:20 -05:00
Jason Duell
3b0bd1832e Bug 945066: remote nsIDNSService to child. r=jdm
* * *
bug 945066. Fix windows bustage.  r=jduell
2013-12-11 11:03:51 -08:00
Carsten "Tomcat" Book
a7de8ea634 Backed out changeset 3072c9af15b3 (bug 945066) for fixing bustage on a CLOSED TREE 2013-12-11 11:51:35 +01:00
Jason Duell
0a7f2b439b Bug 942317. Bustage fix for windows r=bustage 2013-12-11 02:05:40 -08:00
Jason Duell
78c1377587 Bug 945066: Make nsIDNSService work on child processes. r=jdm 2013-12-11 01:37:57 -08:00
Simone Carletti
e841db5df2 Bug 947705 - Remove k12.wv.us from PSL. r=gerv 2013-12-11 10:35:02 -05:00
Jacek Caban
8309d56b1f Bug 942317 - Fixed cross compilation on case sensitive OSes. 2013-12-11 10:47:03 +01:00
Birunthan Mohanathas
58325c73be Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00