Changeset 230694 in webkit


Ignore:
Timestamp:
Apr 16, 2018 6:20:43 PM (6 years ago)
Author:
aestes@apple.com
Message:

[iOS] Enable WKPDFView by default
https://bugs.webkit.org/show_bug.cgi?id=184675
<rdar://problem/27885452>

Reviewed by Darin Adler.

Source/WebKit:

  • UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm:

(-[WKWebViewContentProviderRegistry init]):

Source/WTF:

  • wtf/FeatureDefines.h:

Tools:

  • TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r230677 r230694  
     12018-04-16  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Enable WKPDFView by default
     4        https://bugs.webkit.org/show_bug.cgi?id=184675
     5        <rdar://problem/27885452>
     6
     7        Reviewed by Darin Adler.
     8
     9        * wtf/FeatureDefines.h:
     10
    1112018-04-16  Per Arne Vollan  <pvollan@apple.com>
    212
  • trunk/Source/WTF/wtf/FeatureDefines.h

    r230677 r230694  
    168168
    169169#if !defined(ENABLE_WKLEGACYPDFVIEW)
    170 #if PLATFORM(IOS) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) && !ENABLE(MINIMAL_SIMULATOR)
     170#if PLATFORM(IOS) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) && !ENABLE(MINIMAL_SIMULATOR) && __IPHONE_OS_VERSION_MIN_REQUIRED < 120000
    171171#define ENABLE_WKLEGACYPDFVIEW 1
    172172#endif
  • trunk/Source/WebKit/ChangeLog

    r230689 r230694  
     12018-04-16  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Enable WKPDFView by default
     4        https://bugs.webkit.org/show_bug.cgi?id=184675
     5        <rdar://problem/27885452>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm:
     10        (-[WKWebViewContentProviderRegistry init]):
     11
    1122018-04-16  Brent Fulgham  <bfulgham@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm

    r230487 r230694  
    3232
    3333#import "WKLegacyPDFView.h"
     34#import "WKPDFView.h"
    3435#import "WKSystemPreviewView.h"
    3536#import "WKWebViewInternal.h"
     
    5758        return nil;
    5859
    59 #if ENABLE(WKLEGACYPDFVIEW)
     60#if ENABLE(WKPDFVIEW)
     61    for (auto& mimeType : WebCore::MIMETypeRegistry::getPDFMIMETypes())
     62        [self registerProvider:[WKPDFView class] forMIMEType:mimeType];
     63#elif ENABLE(WKLEGACYPDFVIEW)
    6064    for (auto& mimeType : WebCore::MIMETypeRegistry::getPDFMIMETypes())
    6165        [self registerProvider:[WKLegacyPDFView class] forMIMEType:mimeType];
  • trunk/Tools/ChangeLog

    r230680 r230694  
     12018-04-16  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Enable WKPDFView by default
     4        https://bugs.webkit.org/show_bug.cgi?id=184675
     5        <rdar://problem/27885452>
     6
     7        Reviewed by Darin Adler.
     8
     9        * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
     10
    1112018-04-16  Leo Balter  <leonardo.balter@gmail.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm

    r230663 r230694  
    2727#import <WebKit/WKFoundation.h>
    2828
    29 #if WK_API_ENABLED && TARGET_OS_IPHONE
     29// FIXME: Enable these tests on iOS 12 once rdar://problem/39475542 is resolved.
     30#if WK_API_ENABLED && TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED < 120000
    3031
    3132#import "PlatformUtilities.h"
Note: See TracChangeset for help on using the changeset viewer.