Skip to content

Commit

Permalink
[WebKit] Add WKWebsiteDataStore.ProxyConfigurations. Fixes #19259. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Dec 3, 2024
1 parent 4ef21b7 commit 4995f85
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/Network/NWProxyConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ internal NWProxyConfig (NativeHandle handle, bool owns) : base (handle, owns) {}
public NWProxyConfig (NativeHandle handle, bool owns) : base (handle, owns) { }
#endif

#if !COREBUILD
[DllImport (Constants.NetworkLibrary)]
static extern OS_nw_proxy_config nw_proxy_config_create_relay (OS_nw_relay_hop first_hop, /* [NullAllowed] */ OS_nw_relay_hop second_hop);

Expand Down Expand Up @@ -232,6 +233,7 @@ public void EnumerateExcludedDomains (Action<string?> handler)
nw_proxy_config_enumerate_excluded_domains (GetCheckedHandle (), &block);
}
}
#endif // COREBUILD

}
}
2 changes: 2 additions & 0 deletions src/bgen/Caches/TypeCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public class TypeCache {
public Type NWEndpoint { get; }
public Type NWInterface { get; }
public Type NWParameters { get; }
public Type NWProxyConfig { get; }

// optional if UIKit is present
public Type? UIOffset { get; }
Expand Down Expand Up @@ -297,6 +298,7 @@ public TypeCache (MetadataLoadContext universe, Frameworks frameworks, PlatformN
NWEndpoint = Lookup (platformAssembly, "Network", "NWEndpoint");
NWInterface = Lookup (platformAssembly, "Network", "NWInterface");
NWParameters = Lookup (platformAssembly, "Network", "NWParameters");
NWProxyConfig = Lookup (platformAssembly, "Network", "NWProxyConfig");

// init the NSValueCreateMap
NSValueCreateMap = BuildNSValueCreateMap (frameworks);
Expand Down
2 changes: 1 addition & 1 deletion src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,7 @@ NETWORK_CORE_SOURCES = \
Network/NWEndpoint.cs \
Network/NWInterface.cs \
Network/NWParameters.cs \
Network/NWProxyConfig.cs \

NETWORK_SOURCES = \
Network/NWAdvertiseDescriptor.cs \
Expand All @@ -1394,7 +1395,6 @@ NETWORK_SOURCES = \
Network/NWPrivacyContext.cs \
Network/NWProtocolFramerOptions.cs \
Network/NWProtocolIPOptions.cs \
Network/NWProxyConfig.cs \
Network/NWPath.cs \
Network/NWPathMonitor.cs \
Network/NWPrivacyContext.cs \
Expand Down
5 changes: 5 additions & 0 deletions src/webkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using CoreGraphics;
using ObjCRuntime;
using JavaScriptCore;
using Network;
using Security;

#if MONOMAC
Expand Down Expand Up @@ -4975,6 +4976,10 @@ interface WKWebsiteDataStore : NSSecureCoding {
[Async]
[Export ("fetchAllDataStoreIdentifiers:")]
void FetchAllDataStoreIdentifiers (Action<NSArray<NSUuid>> completionHandler);

[iOS (17, 0), Mac (14, 0), MacCatalyst (17, 0)]
[Export ("proxyConfigurations", ArgumentSemantic.Copy), NullAllowed]
NWProxyConfig [] ProxyConfigurations { get; set; }
}

[NoiOS, NoWatch, NoTV]
Expand Down

This file was deleted.

9 comments on commit 4995f85

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.