Bug 195263

Summary: Rid the world of WK_API_ENABLED
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, andersca, commit-queue, ews-watchlist, mitz, sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Tim Horton 2019-03-03 18:49:04 PST
Rid the world of WK_API_ENABLED
Comment 1 Tim Horton 2019-03-03 18:53:05 PST
Created attachment 363474 [details]
Patch
Comment 2 EWS Watchlist 2019-03-03 18:55:30 PST
Attachment 363474 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:30:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/NowPlaying.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
Total errors found: 4 in 150 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 mitz 2019-03-03 19:07:09 PST
Comment on attachment 363474 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=363474&action=review

> Source/WebKit/UIProcess/API/Cocoa/WKBrowsingContextController.mm:-732
> -#else
> -    return nil;

This method still needs to return something.

> Source/WebKit/UIProcess/API/Cocoa/WKPreviewActionItem.mm:29
> +#if TARGET_OS_IPHONE

PLATFORM(MAC)?

> Source/WebKit/UIProcess/API/Cocoa/_WKGeolocationPosition.mm:29
> +#if TARGET_OS_IPHONE

PLATFORM(IOS_FAMILY)?
Comment 4 Tim Horton 2019-03-03 19:25:02 PST
Created attachment 363477 [details]
Patch
Comment 5 EWS Watchlist 2019-03-03 19:27:51 PST
Attachment 363477 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:30:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/NowPlaying.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
Total errors found: 4 in 150 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Tim Horton 2019-03-03 20:15:04 PST
Created attachment 363479 [details]
Patch
Comment 7 EWS Watchlist 2019-03-03 20:17:38 PST
Attachment 363479 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:30:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/NowPlaying.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm:28:  Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file.  [build/version_check] [5]
Total errors found: 4 in 151 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Tim Horton 2019-03-03 20:48:10 PST
(In reply to mitz from comment #3)
> Comment on attachment 363474 [details]
> Patch
> 
> View in context:
> > Source/WebKit/UIProcess/API/Cocoa/WKPreviewActionItem.mm:29
> > +#if TARGET_OS_IPHONE
> 
> PLATFORM(MAC)?

I don't think so?
Comment 9 WebKit Commit Bot 2019-03-03 21:13:00 PST
Comment on attachment 363479 [details]
Patch

Clearing flags on attachment: 363479

Committed r242339: <https://trac.webkit.org/changeset/242339>
Comment 10 WebKit Commit Bot 2019-03-03 21:13:02 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2019-03-03 21:14:27 PST
<rdar://problem/48550486>