Title: [171854] trunk/Source/WebCore
Revision
171854
Author
m...@apple.com
Date
2014-07-31 09:07:14 -0700 (Thu, 31 Jul 2014)

Log Message

Tried to fix building with the OS X 10.9 SDK while targeting OS X 10.8.

* platform/network/cocoa/CredentialCocoa.mm:
(WebCore::toCredentialPersistence):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (171853 => 171854)


--- trunk/Source/WebCore/ChangeLog	2014-07-31 15:58:06 UTC (rev 171853)
+++ trunk/Source/WebCore/ChangeLog	2014-07-31 16:07:14 UTC (rev 171854)
@@ -1,3 +1,10 @@
+2014-07-31  Dan Bernstein  <m...@apple.com>
+
+        Tried to fix building with the OS X 10.9 SDK while targeting OS X 10.8.
+
+        * platform/network/cocoa/CredentialCocoa.mm:
+        (WebCore::toCredentialPersistence):
+
 2014-07-31  Jer Noble  <jer.no...@apple.com>
 
         REGRESSION(??): [iOS] Disabling MediaPlaybackRequiresUserGesture does not remove user gesture requirement for entering full screen.

Modified: trunk/Source/WebCore/platform/network/cocoa/CredentialCocoa.mm (171853 => 171854)


--- trunk/Source/WebCore/platform/network/cocoa/CredentialCocoa.mm	2014-07-31 15:58:06 UTC (rev 171853)
+++ trunk/Source/WebCore/platform/network/cocoa/CredentialCocoa.mm	2014-07-31 16:07:14 UTC (rev 171854)
@@ -26,6 +26,13 @@
 #import "config.h"
 #import "CredentialCocoa.h"
 
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED == 1080
+// This value is available in OS X 10.8 but only appeared in the OS X 10.9 SDK.
+enum {
+    NSURLCredentialPersistenceSynchronizable = 3
+};
+#endif
+
 #if USE(CFNETWORK)
 @interface NSURLCredential (WebDetails)
 - (id)_initWithCFURLCredential:(CFURLCredentialRef)credential;
@@ -58,9 +65,7 @@
     case NSURLCredentialPersistenceForSession:
         return CredentialPersistenceForSession;
     case NSURLCredentialPersistencePermanent:
-#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
     case NSURLCredentialPersistenceSynchronizable:
-#endif
         return CredentialPersistencePermanent;
     }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to