Граф коммитов

296 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca 506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru 6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
Eric Rahm 78ee6675cf Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:56 +00:00
Sylvestre Ledru c521758c5e Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58175

--HG--
extra : moz-landing-system : lando
2020-01-09 21:50:11 +00:00
Michal Novotny 5d31cfe04e Bug 1586782 - network ID: get rid of NL_DEBUG_LOG in NetlinkService r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D58347

--HG--
extra : moz-landing-system : lando
2019-12-28 14:42:03 +00:00
Valentin Gosu 46c67febc9 Bug 1603854 - nsNotifyAddrListener: Don't call NS_DispatchToMainThread if mShutdown is true r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D57236

--HG--
extra : moz-landing-system : lando
2019-12-16 13:19:57 +00:00
Valentin Gosu b97f97fe35 Bug 1598575 - Make nsNotifyAddrListener check the local group policy for DNS suffixes r=kershaw
Bug 1597683, added support for setting the DNS suffix list via "Advanced TCP/IP Settings". The changes performed in "Advanced TCP/IP Settings" reflect inside the `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters` registry key.

However, when setting the Local Group Policy for DNS Suffixes via gpedit, the registry key that gets modified is `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient`
Note: the setting in gpedit can be found at Computer Configuration > Administrative Templates > Network > DNS Client > DNS suffix search list

This patch first checks for the Local Group Policy registry key, and if not found it checks the one that gets set by the Advanced TCP/IP Settings window.

Differential Revision: https://phabricator.services.mozilla.com/D56344

--HG--
extra : moz-landing-system : lando
2019-12-13 13:38:33 +00:00
Gabriele Svelto 5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55444

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
Michal Novotny b508e7721e Bug 1600811 - network ID: use hardcoded IP for route checking in nsNetworkLinkService on MacOS r=JuniorHsu
The preferences network.netlink.route.check.IPv4 and network.netlink.route.check.IPv6 were removed in bug 1593693 and the values are now hardcoded because they are used by Linux/Android implementation of nsNetworkLinkService for link status detection and they are not supposed to be changed by the user.

Differential Revision: https://phabricator.services.mozilla.com/D55587

--HG--
extra : moz-landing-system : lando
2019-12-03 07:26:07 +00:00
Valentin Gosu 0848f9ba9a Bug 1590528 - Call CheckAdaptersAddresses at startup r=kershaw
The problem is that the suffix is not always computed when Firefox starts up.
This patch adds a pref `network.notify.initial_call` that controls whether
CheckAdaptersAddresses gets called imediately after.
This call is necessary in order to compute the suffix list, VPN status, etc.

This patch also ensures that OnDnsSuffixListUpdated gets called by
NetlinkService::ComputeDNSSuffixList on Android. This notification is
necessary for the TRRService to pick up the suffix list.

Differential Revision: https://phabricator.services.mozilla.com/D55303

--HG--
extra : moz-landing-system : lando
2019-12-02 09:34:14 +00:00
Kershaw Chang 0e741f1658 Bug 1598676 - P2: Send dns suffix list updated event (Windows/Linux/Android) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54901

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Kershaw Chang 4c90c150c6 Bug 1598676 - P1: Send dns suffix list updated event (MacOS) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54782

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Valentin Gosu 43afef29e7 Bug 1565022 - TRR: Check for NRPT on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54093

--HG--
extra : moz-landing-system : lando
2019-11-24 14:33:26 +00:00
Valentin Gosu 0e928af6c3 Bug 1565008 - TRR: Check for Proxy on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54092

--HG--
extra : moz-landing-system : lando
2019-11-24 14:54:02 +00:00
Valentin Gosu 13590a1c98 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Cosmin Sabou 4e76fd5665 Backed out 2 changesets (bug 1565004) for xpc failures on netwerk/test/unit/test_trr.js.
Backed out changeset 3d6d67621349 (bug 1565004)
Backed out changeset ef016d00ec9b (bug 1565004)
2019-11-20 18:40:16 +02:00
Valentin Gosu eb905c9af5 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-20 14:33:11 +00:00
Valentin Gosu d7cadb0bc8 Bug 1597683 - Parse DNS suffix list from the windows registry r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53814

--HG--
extra : moz-landing-system : lando
2019-11-20 12:54:29 +00:00
Michal Novotny c42d0ce790 Bug 1596419 - Network change event can be hidden by coalescing period on Linux/Android r=valentin
This patch makes network change event different from network ID change event on Linux and Android. Network change event is now also sent when any address has been added, removed or changed.

Differential Revision: https://phabricator.services.mozilla.com/D53796

--HG--
extra : moz-landing-system : lando
2019-11-20 11:56:13 +00:00
Valentin Gosu 8cf9e7e128 Bug 1589446 - Send the network id notification on networkID change (OSX) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53363

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:43 +00:00
Valentin Gosu 8c6c95e80d Bug 1589446 - Send the network id notification on networkID change (Android) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53362

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:30 +00:00
Valentin Gosu 0f34f53efd Bug 1589446 - Send the network id notification on networkID change (Linux) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53361

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:17 +00:00
Valentin Gosu b28d9ca7fc Bug 1589446 - Add network id change event (Windows) r=kershaw,michal
- removes nsNotifyAddrListener::ChangeEvent in favour of NS_NewRunnableFunction
- adds new topic for network ID change notification

Differential Revision: https://phabricator.services.mozilla.com/D52689

--HG--
extra : moz-landing-system : lando
2019-11-19 11:41:43 +00:00
Junior Hsu 65217caaa7 Bug 1579424 - P5 module log for network link service in OSX, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48927

--HG--
extra : moz-landing-system : lando
2019-11-12 16:08:22 +00:00
Junior Hsu c4bdf5edf8 Bug 1579424 - P4 asking kernel the gateway of pre-defined address, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48926

--HG--
extra : moz-landing-system : lando
2019-11-14 21:25:17 +00:00
Junior Hsu 47b7017d25 Bug 1579424 - P3 Use ifname and ip as a fail over, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48805

--HG--
extra : moz-landing-system : lando
2019-11-12 16:05:08 +00:00
Junior Hsu 2e5cd89695 Bug 1579424 - P2 Calculate network id not only using the main gateway, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48804

--HG--
extra : moz-landing-system : lando
2019-11-12 16:04:38 +00:00
Junior Hsu 049eb24005 Bug 1579424 - P1 Traverse the whole routing table, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48803

--HG--
extra : moz-landing-system : lando
2019-11-12 16:04:09 +00:00
Valentin Gosu 33ffe027d9 Bug 1588218 - Expose DNS suffix list (Android) r=michal,snorp
Differential Revision: https://phabricator.services.mozilla.com/D51561

--HG--
extra : moz-landing-system : lando
2019-11-14 20:39:34 +00:00
Michal Novotny a012999a15 Bug 1589447 - Add network id change event on Linux and Android, r=kershaw,valentin
This patch adds network ID change event to Linux and Android. On these platforms network ID change event is equal to network change event.

Differential Revision: https://phabricator.services.mozilla.com/D50391

--HG--
extra : moz-landing-system : lando
2019-11-14 13:37:50 +00:00
Csoregi Natalia f61715aa1b Backed out changeset 8265027727ef (bug 1589446) for marionette failures on \test_refresh_firefox.py. CLOSED TREE 2019-11-14 03:43:54 +02:00
Valentin Gosu eecaa3ac0e Bug 1589446 - Add network id change event (Windows) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D52689

--HG--
extra : moz-landing-system : lando
2019-11-12 18:24:37 +00:00
Valentin Gosu d130f41722 Bug 1562388 - Remove legacy ICS handling from nsNotifyAddrListener r=mayhemer
This code was added in bug 465158 to deal with on-demand dial-up
connections. That scenario is hopefully not common anymore.
One benefit of the code was that it excludes network adapters
that share the computers network from being part of network
change notifications, network ID, etc. However, the code assumed
that only adapters with the address 192.168.0.1 would be a ICS
adapter, but trying to set up ICS on Windows 10 actually set the
LAN interface with 192.168.137.1 - so that assumption isn't
valid anymore. So the code is likely not even running for
adapters that are ICS. It may run for adapters which have the
IP 192.168.0.1, but probably that's quite rare as that's more
often a gateway IP than a client IP.

In any case, it's better to just get rid of it and if needed,
however unlikely, we'll replace it with a more modern API.

Depends on D52573

Differential Revision: https://phabricator.services.mozilla.com/D52574

--HG--
extra : moz-landing-system : lando
2019-11-12 18:21:48 +00:00
Valentin Gosu b4f254a384 Bug 1562388 - Remove XP legacy NotifyAddrChange call from nsNotifyAddrListener r=mayhemer
Old code needed to dynamically load a DLL - which was not available
for windows versions prior to Vista, and if that failed it would
fall back to using an older API.

This patch now calls the methods directly, since we don't have to
worry about the library not being there; we also remove the
fallback, meaning we always call NotifyIpInterfaceChange instead
of falling back to NotifyAddrChange.

Differential Revision: https://phabricator.services.mozilla.com/D52573

--HG--
extra : moz-landing-system : lando
2019-11-12 18:18:21 +00:00
Dorel Luca 9afadd1cdd Backed out changeset 6384318223b4 (bug 1588218) for Linting failure on mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java. CLOSED TREE 2019-11-11 23:16:27 +02:00
Valentin Gosu f4d8a78639 Bug 1588218 - Expose DNS suffix list (Android) r=michal,snorp
Differential Revision: https://phabricator.services.mozilla.com/D51561

--HG--
extra : moz-landing-system : lando
2019-11-11 20:51:42 +00:00
Michal Novotny 2d153a80d4 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

Differential Revision: https://phabricator.services.mozilla.com/D52027

--HG--
extra : moz-landing-system : lando
2019-11-07 15:16:36 +00:00
Ciure Andrei e16f37061a Backed out changeset 755655b3175a (bug 1593693)for causing NetlinkService.cpp build bustages CLOSED TREE 2019-11-07 15:40:49 +02:00
Michal Novotny a85ff06ef1 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

Differential Revision: https://phabricator.services.mozilla.com/D52027

--HG--
extra : moz-landing-system : lando
2019-11-07 11:45:13 +00:00
Michal Novotny 787ca4f17b Bug 1593658 - network ID: Fix detecting mobile data link on some Android versions, r=valentin
When we fail to detect the link as mobile data device, we use GW address for ID calculation. And because GW changes often in case of mobile data we often get different ID for the same network.

Differential Revision: https://phabricator.services.mozilla.com/D51612

--HG--
extra : moz-landing-system : lando
2019-11-04 19:45:49 +00:00
Kershaw Chang 07ce7a231c Bug 1589448 - Add network id changed event on MacOS r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D50463

--HG--
extra : moz-landing-system : lando
2019-10-29 23:19:03 +00:00
Kershaw Chang 8afce6a668 Bug 1588217 - Use SystemConfiguration framework to get DNS search domains r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49476

--HG--
extra : moz-landing-system : lando
2019-10-29 23:05:17 +00:00
Gurzau Raul 75def3b448 Backed out changeset 0961f4328316 (bug 1588056) for build bustage at nsNetworkLinkService.mm on a CLOSED TREE. 2019-10-30 00:57:27 +02:00
Dragana Damjanovic 3071f2992e Bug 1588056 - Add telemetry about the time between network change events if we do the events coalescing. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D48954

--HG--
extra : moz-landing-system : lando
2019-10-29 22:25:40 +00:00
Narcis Beleuzu 9e239f2b4a Backed out 2 changesets (bug 1589461, bug 1589447) for wpt failures on report-only-in-meta.sub.html
Backed out changeset e58350a47d50 (bug 1589461)
Backed out changeset abdcdc97cd4c (bug 1589447)
2019-10-29 19:05:09 +02:00
Michal Novotny 0eadedd8b8 Bug 1589461 - Add network id change event (Android), r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D50429

--HG--
extra : moz-landing-system : lando
2019-10-29 09:04:13 +00:00
Michal Novotny 9f3a7ca5a2 Bug 1589447 - Add network id change event (linux), r=kershaw
This patch splits network change event into 2 events:
1) network ID change event
It is sent when the calculated ID differs from the previous one.

2) network change event
It is sent when the network ID has changed or when any address has been added, removed or changed.

Differential Revision: https://phabricator.services.mozilla.com/D50391

--HG--
extra : moz-landing-system : lando
2019-10-29 09:37:58 +00:00
Michal Novotny 02ec9a0a47 Bug 1590250 - network ID: different ID is detected after re-enabling mobile data, r=valentin
For same reason, there are artificial MAC addresses available on some non-ethernet link devices. With this patch we ignore all neighbor messages for non-ethernet links. Also, when traffic for the checked host is routed via rmnet_data device, we skip hashing IP of next hop, because it changes very often in case of some mobile providers.

Differential Revision: https://phabricator.services.mozilla.com/D50184

--HG--
extra : moz-landing-system : lando
2019-10-23 13:17:46 +00:00
Valentin Gosu fe3c993ae7 Bug 1588219 - Expose DNS suffix list (Linux) r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49414

--HG--
extra : moz-landing-system : lando
2019-10-22 19:46:28 +00:00