Skip to content

WebKit macOS xcode16.3 b3

Rolf Bjarne Kvinge edited this page Mar 27, 2025 · 2 revisions

#WebKit.framework https://github.com/dotnet/macios/pull/22489

diff -ruN /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMCSSRule.h /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMCSSRule.h
--- /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMCSSRule.h	2025-02-26 08:11:17
+++ /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMCSSRule.h	2025-03-13 07:29:17
@@ -30,6 +30,7 @@
 @class NSString;
 
 enum {
+    DOM_UNKNOWN_RULE = 0,
     DOM_STYLE_RULE = 1,
     DOM_CHARSET_RULE = 2,
     DOM_IMPORT_RULE = 3,
diff -ruN /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h
--- /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h	2025-02-26 08:11:15
+++ /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h	2025-03-13 07:29:15
@@ -29,6 +29,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
+@class WKBackForwardListItem;
 @class WKDownload;
 @class WKNavigation;
 @class WKNavigationAction;
@@ -187,6 +188,22 @@
  @discussion The download needs its delegate to be set to receive updates about its progress.
 */
 - (void)webView:(WKWebView *)webView navigationResponse:(WKNavigationResponse *)navigationResponse didBecomeDownload:(WKDownload *)download API_AVAILABLE(macos(11.3), ios(14.5));
+
+/*
+ @abstract Called when the webpage initiates a back/forward navigation via JavaScript
+ @param webView The web view invoking the delegate method.
+ @param backForwardListItem The back/forward list item that will be navigated to
+ @param willUseInstantBack Whether or not the navigation will resume a previously suspended webpage that is eligible for Instant Back
+ @param completionHandler The completion handler you must invoke to allow or disallow the navigation
+ @discussion Back/forward navigations - including those triggered by webpage JavaScript - will consult the WebKit client via this delegate.
+ If the `willUseInstantBack` argument is `YES`, then the navigation is to a webpage that is suspended in memory and might be resumed without
+ the normal webpage loading process.
+ Even if the `willUseInstantBack` argument is `YES`, it is possible that the suspended webpage will not be used and the normal loading
+ process will take place.
+ In the case where the normal webpage loading process takes place, additional navigation delegate calls will continue to happen for this
+ navigation starting with `decidePolicyForNavigationAction`
+*/
+- (void)webView:(WKWebView *)webView shouldGoToBackForwardListItem:(WKBackForwardListItem *)backForwardListItem willUseInstantBack:(BOOL)willUseInstantBack completionHandler:(void (^)(BOOL shouldGoToItem))completionHandler API_AVAILABLE(macos(15.4), ios(NA), visionos(NA));
 
 @end
 
diff -ruN /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h
--- /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h	2025-02-26 08:11:16
+++ /Applications/Xcode_16.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h	2025-03-13 07:29:16
@@ -82,7 +82,7 @@
  @discussion The app extension bundle must contain a `manifest.json` file in its resources directory. If the manifest is invalid or missing,
  or the bundle is otherwise improperly configured, an error will be returned.
  */
-+ (void)extensionWithAppExtensionBundle:(NSBundle *)appExtensionBundle completionHandler:(void (^)(WKWebExtension * WK_NULLABLE_RESULT extension, NSError * _Nullable error))completionHandler WK_SWIFT_ASYNC_THROWS_ON_FALSE(1);
++ (void)extensionWithAppExtensionBundle:(NSBundle *)appExtensionBundle completionHandler:(void (^)(WKWebExtension * _Nullable extension, NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT;
 
 /*!
  @abstract Returns a web extension initialized with a specified resource base URL, which can point to either a directory or a ZIP archive.
@@ -91,7 +91,7 @@
  @discussion The URL must be a file URL that points to either a directory with a `manifest.json` file or a ZIP archive containing a `manifest.json` file.
  If the manifest is invalid or missing, or the URL points to an unsupported format or invalid archive, an error will be returned.
  */
-+ (void)extensionWithResourceBaseURL:(NSURL *)resourceBaseURL completionHandler:(void (^)(WKWebExtension * WK_NULLABLE_RESULT extension, NSError * _Nullable error))completionHandler WK_SWIFT_ASYNC_THROWS_ON_FALSE(1);
++ (void)extensionWithResourceBaseURL:(NSURL *)resourceBaseURL completionHandler:(void (^)(WKWebExtension * _Nullable extension, NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT;
 
 /*!
  @abstract An array of all errors that occurred during the processing of the extension.
Clone this wiki locally