-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network process should be able to resolve its own registered mDNS names
https://bugs.webkit.org/show_bug.cgi?id=271368 rdar://112834753 Reviewed by Chris Dumez. Store the registered mdns names in a HashSet. In case of a mDNS resolution, we check the hashset and if there is a match, we use the current local address directly. This ensures that mDNS resolution with Safari works even if mDNS registration fails. We add a mechanism to remove the mdns names from the HashSet whenever the document goes away, to keep the same mDNS lifetime as before. * Source/WebKit/NetworkProcess/webrtc/NetworkMDNSRegister.cpp: (WebKit::NetworkMDNSRegister::unregisterMDNSNames): (WebKit::NetworkMDNSRegister::hasRegisteredName): (WebKit::NetworkMDNSRegister::registerMDNSName): * Source/WebKit/NetworkProcess/webrtc/NetworkMDNSRegister.h: * Source/WebKit/NetworkProcess/webrtc/NetworkRTCProvider.cpp: (WebKit::NetworkRTCProvider::createResolver): * Source/WebKit/Shared/RTCNetwork.h: (WebKit::RTC::Network::IPAddress::isUnspecified const): Canonical link: https://commits.webkit.org/276556@main
- Loading branch information
Showing
6 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters