Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66bd4cd17ad414f641e59933eeb0e9ae8e473cae
      
https://github.com/WebKit/WebKit/commit/66bd4cd17ad414f641e59933eeb0e9ae8e473cae
  Author: Chris Dumez <[email protected]>
  Date:   2026-06-07 (Sun, 07 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/network/mac/NetworkStateNotifierMac.cpp

  Log Message:
  -----------
  NetworkStateNotifier on Mac reports IPv6-only networks as offline
https://bugs.webkit.org/show_bug.cgi?id=316409

Reviewed by Basuke Suzuki.

NetworkStateNotifierMac only consulted the IPv4 SCDynamicStore entity
when probing each network interface, so machines on IPv6-only links
(e.g. NAT64 / cellular IPv6 PD / IPv6-only Wi-Fi) walked every
interface, never found an IPv4 entity, and reported the system as
offline. As a result, navigator.onLine was false even though the
network was fully reachable.

The notification key list had the same asymmetry: only the IPv4
global entity and an IPv4 per-interface pattern were watched, so
IPv6-only state changes did not wake the notifier.

Also probe kSCEntNetIPv6 per interface, and add the IPv6 global
entity plus an IPv6 per-interface pattern to the watched keys.

* Source/WebCore/platform/network/mac/NetworkStateNotifierMac.cpp:
(WebCore::NetworkStateNotifier::updateStateWithoutNotifying):
(WebCore::NetworkStateNotifier::startObserving):

Canonical link: https://commits.webkit.org/314721@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to