Skip to content

WebKit iOS xcode27.0 b4

Alex Soto edited this page Jul 24, 2026 · 2 revisions

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

diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKJSScriptingBuffer.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKJSScriptingBuffer.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKJSScriptingBuffer.h	2026-07-02 03:56:49
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKJSScriptingBuffer.h	1969-12-31 19:00:00
@@ -1,54 +0,0 @@
-/*
- * Copyright (C) 2026 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebKit/WKFoundation.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*! A WKJSScriptingBuffer object exposes an application controlled data buffer to JavaScript.
- @discussion JavaScript has access to various WebKit extensions via the `window.webkit` object.
- One such feature is `window.webkit.buffers` which provides access to named data buffers that can be
- provided by the WebKit application.
-
- To provide a data buffer to JavaScript the application first creates a `WKJSScriptingBuffer` object.
- It then adds it to the appropriate `WKUserContentController` with an application provided name.
-
- For example, if the application creates a `WKJSScriptingBuffer` and adds it to a web view's `WKUserContentController`
- with the name `"mybuffer"`, then JavaScript can access it by referencing `window.webkit.buffers.mybuffer`
- */
-WK_EXTERN API_AVAILABLE(macos(NA), ios(27.0), visionos(NA))
-@interface WKJSScriptingBuffer : NSObject
-
-+ (instancetype)new NS_UNAVAILABLE;
-- (instancetype)init NS_UNAVAILABLE;
-
-/*! @abstract Initializes the newly created `WKJSScriptingBuffer` object with the passed in `NSData` data
- @param data The data to provide to the `window.webkit.buffers` JavaScript object.
-*/
-- (nullable instancetype)initWithData:(NSData *)data;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h	2026-07-02 03:56:49
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h	2026-07-15 01:57:43
@@ -31,7 +31,6 @@
 
 @class WKContentRuleList;
 @class WKContentWorld;
-@class WKJSScriptingBuffer;
 @class WKUserScript;
 @protocol WKScriptMessageHandler;
 @protocol WKScriptMessageHandlerWithReply;
@@ -150,7 +149,7 @@
  @param contentWorld The WKContentWorld to add the buffer to.
         The buffer will only be visible to JavaScript executing in that content world.
  */
-- (void)addBuffer:(WKJSScriptingBuffer *)buffer name:(NSString *)name contentWorld:(WKContentWorld *)world API_AVAILABLE(macos(NA), ios(27.0), visionos(NA));
+- (void)addBuffer:(NSData *)buffer name:(NSString *)name contentWorld:(WKContentWorld *)world API_AVAILABLE(macos(NA), ios(27.0), visionos(NA));
 
 /*! @abstract Removes a previously added data buffer from the given `WKContentWorld
  @param name The name of the buffer to remove.
diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h	2026-07-02 03:56:50
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h	2026-07-15 01:35:52
@@ -33,21 +33,8 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-/*
- * Copyright (C) 2026 Apple Inc. All rights reserved.
- */
 
-#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 270000
 
-#if __has_include(<AppKit/NSRefreshController.h>)
-@class NSRefreshController;
-#else
-@class NSRefreshControl;
-#endif
-
-#endif
-
-
 #if TARGET_OS_IOS
 @class UIFindInteraction;
 @class UIConversationContext;
@@ -66,6 +53,10 @@
 @class WKSnapshotConfiguration;
 @class WKWebViewConfiguration;
 
+#if TARGET_OS_OSX
+@class NSRefreshController;
+#endif
+
 @protocol WKImmersiveEnvironmentDelegate;
 @protocol WKNavigationDelegate;
 @protocol WKUIDelegate;
@@ -749,25 +740,13 @@
 - (void)dismissImmersiveEnvironmentWithCompletionHandler:(NS_SWIFT_UI_ACTOR void (^)(void))completionHandler NS_SWIFT_ASYNC_NAME(dismissImmersiveEnvironment()) API_AVAILABLE(visionos(NA));
 #endif
 
-/*
- * Copyright (C) 2026 Apple Inc. All rights reserved.
- */
-
 #if TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 270000
-
 /* @abstract The refresh controller associated with the web view.
  @discussion Setting this property adds the refresh controller above the web
  content when scrolling past the top of the page.
  */
-
-#if __has_include(<AppKit/NSRefreshController.h>)
-@property (strong, nullable) NSRefreshController *refreshController API_AVAILABLE(macos(27.0));
-#else
-@property (strong, nullable) NSRefreshControl *refreshController API_AVAILABLE(macos(27.0));
+@property (strong, nullable) NSRefreshController *refreshController API_AVAILABLE(macos(NA));
 #endif
-
-#endif
-
 
 @end
 
diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h	2026-07-02 04:31:04
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h	2026-07-16 04:54:25
@@ -145,6 +145,6 @@
  @discussion The default value is NO. When enabled, both navigator.globalPrivacyControl and the
  Sec-GPC: 1 request header are active for the main frame, its subframes, and their subresources.
  */
-@property (nonatomic) BOOL globalPrivacyControlEnabled API_AVAILABLE(macos(NA), ios(27.0), visionos(NA));
+@property (nonatomic) BOOL globalPrivacyControlStatus API_AVAILABLE(macos(NA), ios(27.0), visionos(NA));
 
 @end
diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h	2026-07-02 03:56:48
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h	2026-07-15 01:35:50
@@ -43,7 +43,6 @@
 #import <WebKit/WKImmersiveEnvironment.h>
 #import <WebKit/WKImmersiveEnvironmentDelegate.h>
 #import <WebKit/WKJSHandle.h>
-#import <WebKit/WKJSScriptingBuffer.h>
 #import <WebKit/WKJSSerializedNode.h>
 #import <WebKit/WKNavigation.h>
 #import <WebKit/WKNavigationAction.h>

Clone this wiki locally