Changeset 247355 in webkit


Ignore:
Timestamp:
Jul 11, 2019 10:17:58 AM (5 years ago)
Author:
Jonathan Bedard
Message:

[iOS 13] Enable WebKit build
https://bugs.webkit.org/show_bug.cgi?id=199481
<rdar://problem/52619048>

Reviewed by Tim Horton.

Source/WebCore:

No new tests, iOS 13 test expectations will be migrated in the near future.

  • platform/ios/LocalCurrentTraitCollection.mm:

(WebCore::LocalCurrentTraitCollection::LocalCurrentTraitCollection): Remove underscore from currentTraitCollection.
(WebCore::LocalCurrentTraitCollection::~LocalCurrentTraitCollection): Remove underscore from setCurrentTraitCollection.

Source/WebCore/PAL:

  • pal/spi/cocoa/NSProgressSPI.h: We need the NSProgress SPI in public builds because NSProgress API

is marked unavailable on iOS, watchOS and tvOS.

  • pal/spi/ios/CoreUISPI.h: Add CUIStyleEffectConfiguration.appearanceName SPI.
  • pal/spi/ios/DataDetectorsUISPI.h: Add UIContextMenuConfiguration.contextMenuConfigurationForURL SPI.
  • pal/spi/ios/SystemPreviewSPI.h: Add ARQuickLookWebKitItem.initWithPreviewItemProvider SPI.
  • pal/spi/ios/UIKitSPI.h: Add systemBrownColor, UIColor.tableCellDefaultSelectionTintColor should be marked nullable.
  • pal/spi/mac/AVFoundationSPI.h: Add AVOutputDevice.name SPI.

Source/WebKit:

  • Platform/spi/ios/UIKitSPI.h: Add UITextEffectsWindow.sharedTextEffectsWindowForWindowScene SPI.
  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView showGlobalMenuControllerInRect:]): setTargetRect, setMenuVisible marked depreciated in iOS 13.
(-[WKContentView hideGlobalMenuController]): Ditto.

Tools:

  • TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: Add iOS framework stubs.

WebKitLibraries:

Added iOS 13 framework stubs, used tbd version 3 in all new stubs.

  • WebKitPrivateFrameworkStubs/iOS/13: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/AppSupport.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/AssertionServices.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/AuthKit.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/CorePDF.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/CorePrediction.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/GraphicsServices.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/SafariSafeBrowsing.framework: Added.
  • WebKitPrivateFrameworkStubs/iOS/13/URLFormatting.framework: Added.
Location:
trunk
Files:
17 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247354 r247355  
     12019-07-11  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [iOS 13] Enable WebKit build
     4        https://bugs.webkit.org/show_bug.cgi?id=199481
     5        <rdar://problem/52619048>
     6
     7        Reviewed by Tim Horton.
     8
     9        No new tests, iOS 13 test expectations will be migrated in the near future.
     10
     11        * platform/ios/LocalCurrentTraitCollection.mm:
     12        (WebCore::LocalCurrentTraitCollection::LocalCurrentTraitCollection): Remove underscore from currentTraitCollection.
     13        (WebCore::LocalCurrentTraitCollection::~LocalCurrentTraitCollection): Remove underscore from setCurrentTraitCollection.
     14
    1152019-07-11  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/PAL/ChangeLog

    r247324 r247355  
     12019-07-11  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [iOS 13] Enable WebKit build
     4        https://bugs.webkit.org/show_bug.cgi?id=199481
     5        <rdar://problem/52619048>
     6
     7        Reviewed by Tim Horton.
     8
     9        * pal/spi/cocoa/NSProgressSPI.h: We need the NSProgress SPI in public builds because NSProgress API
     10        is marked unavailable on iOS, watchOS and tvOS.
     11        * pal/spi/ios/CoreUISPI.h: Add CUIStyleEffectConfiguration.appearanceName SPI.
     12        * pal/spi/ios/DataDetectorsUISPI.h: Add UIContextMenuConfiguration.contextMenuConfigurationForURL SPI.
     13        * pal/spi/ios/SystemPreviewSPI.h: Add ARQuickLookWebKitItem.initWithPreviewItemProvider SPI.
     14        * pal/spi/ios/UIKitSPI.h: Add systemBrownColor, UIColor.tableCellDefaultSelectionTintColor should be marked nullable.
     15        * pal/spi/mac/AVFoundationSPI.h: Add AVOutputDevice.name SPI.
     16
    1172019-07-10  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/PAL/pal/spi/cocoa/NSProgressSPI.h

    r242368 r247355  
    2626#pragma once
    2727
    28 #define USE_NSPROGRESS_PUBLISHING_SPI ((PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED < 60000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED < 130000))
    29 
    30 #if USE(NSPROGRESS_PUBLISHING_SPI)
    31 
    3228#if USE(APPLE_INTERNAL_SDK)
    3329
     30#define USE_NSPROGRESS_PUBLISHING_SPI ((PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED < 60000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED < 130000))
    3431#import <Foundation/NSProgress_Private.h>
    3532
    3633#else
     34
     35#define USE_NSPROGRESS_PUBLISHING_SPI PLATFORM(IOS_FAMILY) || PLATFORM(WATCHOS) || PLATFORM(APPLETV)
     36
     37#if USE_NSPROGRESS_PUBLISHING_SPI
    3738
    3839@interface NSProgress ()
     
    4546@end
    4647
     48#endif // USE_NSPROGRESS_PUBLISHING_SPI
     49
    4750#endif // not USE(APPLE_INTERNAL_SDK)
    48 
    49 #endif // USE(NSPROGRESS_PUBLISHING_SPI)
  • trunk/Source/WebCore/PAL/pal/spi/ios/CoreUISPI.h

    r220809 r247355  
    4040@interface CUIStyleEffectConfiguration ()
    4141@property (nonatomic) BOOL useSimplifiedEffect;
     42@property (nonatomic, copy) NSString *appearanceName;
    4243@end
    4344
  • trunk/Source/WebCore/PAL/pal/spi/ios/DataDetectorsUISPI.h

    r246583 r247355  
    5454@interface DDContextMenuAction
    5555+ (UIContextMenuConfiguration *)contextMenuConfigurationWithURL:(NSURL *)URL inView:(UIView *)view context:(NSDictionary *)context menuIdentifier:(NSString *)menuIdentifier;
     56+ (UIContextMenuConfiguration *)contextMenuConfigurationForURL:(NSURL *)URL identifier:(NSString *)identifier selectedText:(NSString *)selectedText results:(NSArray *) results inView: (UIView *) view context:(NSDictionary *)context menuIdentifier:(NSString *)menuIdentifier;
    5657@end
    5758#endif
  • trunk/Source/WebCore/PAL/pal/spi/ios/SystemPreviewSPI.h

    r246395 r247355  
    5656
    5757@interface ARQuickLookWebKitItem : QLItem
    58 - (instancetype)initWithPreviewItemProvider:(NSItemProvider *_Nonnull)itemProvider contentType:(NSString *_Nonnull)contentType previewTitle:(NSString *_Nonnull)previewTitle fileSize:(NSNumber *_Nonnull)fileSize previewItem:(ARQuickLookPreviewItem *)previewItem;
     58- (instancetype)initWithPreviewItemProvider:(NSItemProvider *)itemProvider contentType:(NSString *)contentType previewTitle:(NSString *)previewTitle fileSize:(NSNumber *)fileSize previewItem:(ARQuickLookPreviewItem *)previewItem;
    5959@end
     60
    6061#endif
    6162
    6263#endif
    63 
  • trunk/Source/WebCore/PAL/pal/spi/ios/UIKitSPI.h

    r246270 r247355  
    6767#endif
    6868
    69 NS_ASSUME_NONNULL_BEGIN
    70 
    7169typedef NS_ENUM(NSInteger, UIApplicationSceneClassicMode) {
    7270    UIApplicationSceneClassicModeOriginalPad = 4,
     
    110108
    111109+ (UIColor *)systemBlueColor;
     110+ (UIColor *)systemBrownColor;
    112111+ (UIColor *)systemGrayColor;
    113112+ (UIColor *)systemGreenColor;
     
    141140@end
    142141
    143 NS_ASSUME_NONNULL_END
    144 
    145142#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
    146143@interface NSURL ()
    147 @property (nonatomic, copy, nullable, setter=_setTitle:) NSString *_title;
     144@property (nonatomic, copy, setter=_setTitle:) NSString *_title;
    148145@end
    149146#endif
  • trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h

    r247117 r247355  
    7070@class AVOutputContext;
    7171@class AVOutputDevice;
     72
    7273@interface AVOutputContext : NSObject <NSSecureCoding>
    7374@property (nonatomic, readonly) NSString *deviceName;
     
    7677@property (readonly) BOOL supportsMultipleOutputDevices;
    7778@property (readonly) NSArray<AVOutputDevice *> *outputDevices;
     79@end
     80
     81@interface AVOutputDevice : NSObject
     82@property (nonatomic, readonly) NSString *name;
    7883@end
    7984
  • trunk/Source/WebCore/platform/ios/LocalCurrentTraitCollection.mm

    r246938 r247355  
    3535{
    3636#if HAVE(OS_DARK_MODE_SUPPORT)
    37     m_savedTraitCollection = [PAL::getUITraitCollectionClass() _currentTraitCollection];
     37    m_savedTraitCollection = [PAL::getUITraitCollectionClass() currentTraitCollection];
    3838    m_usingDarkAppearance = useDarkAppearance;
    3939    m_usingElevatedUserInterfaceLevel = useElevatedUserInterfaceLevel;
     
    4343    auto newTraitCollection = [PAL::getUITraitCollectionClass() traitCollectionWithTraitsFromCollections:@[ m_savedTraitCollection.get(), userInterfaceStyleTrait, backgroundLevelTrait ]];
    4444
    45     [PAL::getUITraitCollectionClass() _setCurrentTraitCollection:newTraitCollection];
     45    [PAL::getUITraitCollectionClass() setCurrentTraitCollection:newTraitCollection];
    4646#else
    4747    UNUSED_PARAM(useDarkAppearance);
     
    5353{
    5454#if HAVE(OS_DARK_MODE_SUPPORT)
    55     m_savedTraitCollection = [PAL::getUITraitCollectionClass() _currentTraitCollection];
     55    m_savedTraitCollection = [PAL::getUITraitCollectionClass() currentTraitCollection];
    5656    m_usingDarkAppearance = traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark;
    5757    m_usingElevatedUserInterfaceLevel = traitCollection.userInterfaceLevel == UIUserInterfaceLevelElevated;
    5858
    59     [PAL::getUITraitCollectionClass() _setCurrentTraitCollection:traitCollection];
     59    [PAL::getUITraitCollectionClass() setCurrentTraitCollection:traitCollection];
    6060#else
    6161    UNUSED_PARAM(traitCollection);
     
    6666{
    6767#if HAVE(OS_DARK_MODE_SUPPORT)
    68     [PAL::getUITraitCollectionClass() _setCurrentTraitCollection:m_savedTraitCollection.get()];
     68    [PAL::getUITraitCollectionClass() setCurrentTraitCollection:m_savedTraitCollection.get()];
    6969#endif
    7070}
  • trunk/Source/WebKit/ChangeLog

    r247345 r247355  
     12019-07-11  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [iOS 13] Enable WebKit build
     4        https://bugs.webkit.org/show_bug.cgi?id=199481
     5        <rdar://problem/52619048>
     6
     7        Reviewed by Tim Horton.
     8
     9        * Platform/spi/ios/UIKitSPI.h: Add UITextEffectsWindow.sharedTextEffectsWindowForWindowScene SPI.
     10        * UIProcess/ios/WKContentViewInteraction.mm:
     11        (-[WKContentView showGlobalMenuControllerInRect:]): setTargetRect, setMenuVisible marked depreciated in iOS 13.
     12        (-[WKContentView hideGlobalMenuController]): Ditto.
     13
    1142019-07-11  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h

    r246912 r247355  
    10041004@interface UITextEffectsWindow : UIAutoRotatingWindow
    10051005+ (UITextEffectsWindow *)sharedTextEffectsWindow;
     1006#if HAVE(UISCENE)
     1007+ (UITextEffectsWindow *)sharedTextEffectsWindowForWindowScene:(UIWindowScene *)windowScene;
     1008#endif // HAVE(UISCENE)
    10061009@end
    10071010
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r247345 r247355  
    54215421    [controller showMenuFromView:self rect:rect];
    54225422#else
     5423    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    54235424    [controller setTargetRect:rect inView:self];
    54245425    [controller setMenuVisible:YES animated:YES];
     5426    ALLOW_DEPRECATED_DECLARATIONS_END
    54255427#endif
    54265428}
     
    54325434    [controller hideMenuFromView:self];
    54335435#else
     5436    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    54345437    [controller setMenuVisible:NO animated:YES];
     5438    ALLOW_DEPRECATED_DECLARATIONS_END
    54355439#endif
    54365440}
  • trunk/Tools/ChangeLog

    r247353 r247355  
     12019-07-11  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [iOS 13] Enable WebKit build
     4        https://bugs.webkit.org/show_bug.cgi?id=199481
     5        <rdar://problem/52619048>
     6
     7        Reviewed by Tim Horton.
     8
     9        * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig: Add iOS framework stubs.
     10
    1112019-07-11  Ryan Haddad  <ryanhaddad@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig

    r247117 r247355  
    2929WK_PRIVATE_FRAMEWORKS_DIR = $(WK_PRIVATE_FRAMEWORKS_DIR_$(USE_INTERNAL_SDK));
    3030WK_PRIVATE_FRAMEWORKS_DIR_[sdk=mac*] = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/Mac/$(MAC_OS_X_VERSION_MAJOR);
    31 FRAMEWORK_SEARCH_PATHS[sdk=mac*] = $(inherited) $(WK_PRIVATE_FRAMEWORK_STUBS_DIR) $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
     31
     32WK_TARGET_IOS_VERSION_MAJOR = $(IPHONEOS_DEPLOYMENT_TARGET:base); // e.g. iOS 9.3 => 9
     33WK_PRIVATE_FRAMEWORKS_DIR_[sdk=iphone*] = $(WK_PRIVATE_FRAMEWORKS_DIR_iphone_$(USE_INTERNAL_SDK));
     34WK_PRIVATE_FRAMEWORKS_DIR_iphone_ = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/$(WK_TARGET_IOS_VERSION_MAJOR);
     35
     36FRAMEWORK_SEARCH_PATHS[sdk=mac*] = $(inherited) $(WK_PRIVATE_FRAMEWORKS_DIR) $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
     37FRAMEWORK_SEARCH_PATHS[sdk=iphone*] = $(inherited) $(WK_PRIVATE_FRAMEWORKS_DIR);
    3238
    3339UNEXPORTED_SYMBOL_LDFLAGS = -Wl,-unexported_symbol -Wl,__ZN7testing4Test16TearDownTestCaseEv -Wl,-unexported_symbol -Wl,__ZN7testing4Test13SetUpTestCaseEv
  • trunk/WebKitLibraries/ChangeLog

    r247117 r247355  
     12019-07-11  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [iOS 13] Enable WebKit build
     4        https://bugs.webkit.org/show_bug.cgi?id=199481
     5        <rdar://problem/52619048>
     6
     7        Reviewed by Tim Horton.
     8
     9        Added iOS 13 framework stubs, used tbd version 3 in all new stubs.
     10
     11        * WebKitPrivateFrameworkStubs/iOS/13: Added.
     12        * WebKitPrivateFrameworkStubs/iOS/13/AppSupport.framework: Added.
     13        * WebKitPrivateFrameworkStubs/iOS/13/AssertionServices.framework: Added.
     14        * WebKitPrivateFrameworkStubs/iOS/13/AuthKit.framework: Added.
     15        * WebKitPrivateFrameworkStubs/iOS/13/CorePDF.framework: Added.
     16        * WebKitPrivateFrameworkStubs/iOS/13/CorePrediction.framework: Added.
     17        * WebKitPrivateFrameworkStubs/iOS/13/GraphicsServices.framework: Added.
     18        * WebKitPrivateFrameworkStubs/iOS/13/SafariSafeBrowsing.framework: Added.
     19        * WebKitPrivateFrameworkStubs/iOS/13/URLFormatting.framework: Added.
     20
    1212019-07-03  Jonathan Bedard  <jbedard@apple.com>
    222
Note: See TracChangeset for help on using the changeset viewer.