Title: [247613] branches/safari-608-branch/Source/WebKit
Revision
247613
Author
kocsen_ch...@apple.com
Date
2019-07-18 13:25:03 -0700 (Thu, 18 Jul 2019)

Log Message

Cherry-pick r247547. rdar://problem/53230043

    Provide a NSURL cateogry to tell AppSSO Kerberos URLs
    https://bugs.webkit.org/show_bug.cgi?id=199887
    <rdar://problem/52323161>

    Reviewed by Brent Fulgham.

    * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
    * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
    (+[NSURL _web_willPerformSOKerberosAuthorizationWithURL:]):

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

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (247612 => 247613)


--- branches/safari-608-branch/Source/WebKit/ChangeLog	2019-07-18 20:25:01 UTC (rev 247612)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog	2019-07-18 20:25:03 UTC (rev 247613)
@@ -1,5 +1,34 @@
 2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
 
+        Cherry-pick r247547. rdar://problem/53230043
+
+    Provide a NSURL cateogry to tell AppSSO Kerberos URLs
+    https://bugs.webkit.org/show_bug.cgi?id=199887
+    <rdar://problem/52323161>
+    
+    Reviewed by Brent Fulgham.
+    
+    * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
+    * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
+    (+[NSURL _web_willPerformSOKerberosAuthorizationWithURL:]):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-07-17  Jiewen Tan  <jiewen_...@apple.com>
+
+            Provide a NSURL cateogry to tell AppSSO Kerberos URLs
+            https://bugs.webkit.org/show_bug.cgi?id=199887
+            <rdar://problem/52323161>
+
+            Reviewed by Brent Fulgham.
+
+            * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h:
+            * UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm:
+            (+[NSURL _web_willPerformSOKerberosAuthorizationWithURL:]):
+
+2019-07-17  Kocsen Chung  <kocsen_ch...@apple.com>
+
         Cherry-pick r247530. rdar://problem/53229569
 
     Typing into a cell in a Google Sheet lags behind by one character

Modified: branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h (247612 => 247613)


--- branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h	2019-07-18 20:25:01 UTC (rev 247612)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.h	2019-07-18 20:25:03 UTC (rev 247613)
@@ -25,9 +25,12 @@
 
 #pragma once
 
-// FIXME rdar://problem/50028246 Remove the following once the radar is fixed.
 @interface NSURL (SOAuthorizationExtras)
 
+// FIXME: <rdar://problem/50028246> Remove the following once the radar is fixed.
 + (BOOL)_web_canPerformAuthorizationWithURL:(NSURL *)url;
 
+// FIXME: <rdar://problem/53224485> Remove the following once the radar is fixed.
++ (BOOL)_web_willPerformSOKerberosAuthorizationWithURL:(NSURL *)url;
+
 @end

Modified: branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm (247612 => 247613)


--- branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm	2019-07-18 20:25:01 UTC (rev 247612)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationNSURLExtras.mm	2019-07-18 20:25:03 UTC (rev 247613)
@@ -39,4 +39,13 @@
 #endif
 }
 
++ (BOOL)_web_willPerformSOKerberosAuthorizationWithURL:(NSURL *)url
+{
+#if HAVE(APP_SSO)
+    return [PAL::getSOAuthorizationClass() canPerformAuthorizationWithURL:url responseCode:401];
+#else
+    return false;
+#endif
+}
+
 @end
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to