Unreviewed, build fix after r246514
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jun 2019 00:26:23 +0000 (00:26 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jun 2019 00:26:23 +0000 (00:26 +0000)
* UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
* UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
(+[NSURL _web_canPerformAuthorizationWithURL:]):
Expose the above method as a SPI for Safari.
* WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246527 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h
Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm
Source/WebKit/WebKit.xcodeproj/project.pbxproj

index ce34490..3a22dd4 100644 (file)
@@ -1,3 +1,13 @@
+2019-06-17  Jiewen Tan  <jiewen_tan@apple.com>
+
+        Unreviewed, build fix after r246514
+
+        * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
+        * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
+        (+[NSURL _web_canPerformAuthorizationWithURL:]):
+        Expose the above method as a SPI for Safari.
+        * WebKit.xcodeproj/project.pbxproj:
+
 2019-06-17  Alex Christensen  <achristensen@webkit.org>
 
         Protect StorageManager::m_localStorageNamespaces with a Lock
index 7eb609d..103d057 100644 (file)
 
 #pragma once
 
-#if HAVE(APP_SSO)
-
 // FIXME rdar://problem/50028246 Remove the following once the radar is fixed.
 @interface NSURL (SOAuthorizationExtras)
 
 + (BOOL)_web_canPerformAuthorizationWithURL:(NSURL *)url;
 
 @end
-
-#endif
index 25a0edb..a5547ad 100644 (file)
 #import "config.h"
 #import "SOAuthorizationNSURLExtras.h"
 
-#if HAVE(APP_SSO)
-
 #import <pal/cocoa/AppSSOSoftLink.h>
 
 @implementation NSURL (SOAuthorizationExtras)
 
 + (BOOL)_web_canPerformAuthorizationWithURL:(NSURL *)url
 {
+#if HAVE(APP_SSO)
     return [PAL::getSOAuthorizationClass() canPerformAuthorizationWithURL:url responseCode:0];
+#else
+    return false;
+#endif
 }
 
 @end
-
-#endif
index 320f708..c71776a 100644 (file)
                572FD44322265CE200A1ECC3 /* WebViewDidMoveToWindowObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 572FD44122265CE200A1ECC3 /* WebViewDidMoveToWindowObserver.h */; };
                57597EB921811D9A0037F924 /* CtapHidDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 57597EB721811D9A0037F924 /* CtapHidDriver.h */; };
                57597EBD218184900037F924 /* CtapHidAuthenticator.h in Headers */ = {isa = PBXBuildFile; fileRef = 57597EBB2181848F0037F924 /* CtapHidAuthenticator.h */; };
+               576CA9D722B862180030143C /* SOAuthorizationNSURLExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317322B35148008D0E8B /* SOAuthorizationNSURLExtras.h */; settings = {ATTRIBUTES = (Private, ); }; };
                5772F206217DBD6A0056BF2C /* HidService.h in Headers */ = {isa = PBXBuildFile; fileRef = 5772F204217DBD6A0056BF2C /* HidService.h */; };
                578DC2982155A0020074E815 /* LocalAuthenticationSoftLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 578DC2972155A0010074E815 /* LocalAuthenticationSoftLink.h */; };
                57AC8F50217FEED90055438C /* HidConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 57AC8F4E217FEED90055438C /* HidConnection.h */; };
                57FD318122B3515B008D0E8B /* PopUpSOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317022B35148008D0E8B /* PopUpSOAuthorizationSession.h */; };
                57FD318222B3515E008D0E8B /* RedirectSOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317422B35149008D0E8B /* RedirectSOAuthorizationSession.h */; };
                57FD318322B35162008D0E8B /* SOAuthorizationCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317222B35148008D0E8B /* SOAuthorizationCoordinator.h */; };
-               57FD318422B35165008D0E8B /* SOAuthorizationNSURLExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317322B35148008D0E8B /* SOAuthorizationNSURLExtras.h */; };
                57FD318522B35169008D0E8B /* SOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317C22B3514A008D0E8B /* SOAuthorizationSession.h */; };
                57FD318622B3516C008D0E8B /* SubFrameSOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317D22B3514A008D0E8B /* SubFrameSOAuthorizationSession.h */; };
                57FD318722B35170008D0E8B /* WKSOAuthorizationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317122B35148008D0E8B /* WKSOAuthorizationDelegate.h */; };
                                83F9644E1FA0F76E00C47750 /* SharedStringHashTableReadOnly.h in Headers */,
                                1D67B339212E1F6100FAA786 /* ShareSheetCallbackID.h in Headers */,
                                7A41E9FB21F81DAD00B88CDB /* ShouldGrandfatherStatistics.h in Headers */,
+                               576CA9D722B862180030143C /* SOAuthorizationNSURLExtras.h in Headers */,
                                995226D6207D184600F78420 /* SimulatedInputDispatcher.h in Headers */,
                                2DAF06D618BD1A470081CEB1 /* SmartMagnificationController.h in Headers */,
                                2DE6943E18BD2A68005C15E5 /* SmartMagnificationControllerMessages.h in Headers */,
                                57FD318322B35162008D0E8B /* SOAuthorizationCoordinator.h in Headers */,
-                               57FD318422B35165008D0E8B /* SOAuthorizationNSURLExtras.h in Headers */,
                                57FD318522B35169008D0E8B /* SOAuthorizationSession.h in Headers */,
                                5272B28B1406985D0096A5D0 /* StatisticsData.h in Headers */,
                                514BDED316C98EDD00E4E25E /* StatisticsRequest.h in Headers */,