Title: [237046] trunk/Source/WebCore
Revision
237046
Author
[email protected]
Date
2018-10-11 13:30:54 -0700 (Thu, 11 Oct 2018)

Log Message

Support building WebKit for macOS Mojave using a newer SDK
https://bugs.webkit.org/show_bug.cgi?id=190431

Reviewed by Andy Estes.

* platform/network/cocoa/CookieCocoa.mm:
(WebCore::coreSameSitePolicy):
(WebCore::nsSameSitePolicy):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (237045 => 237046)


--- trunk/Source/WebCore/ChangeLog	2018-10-11 20:29:57 UTC (rev 237045)
+++ trunk/Source/WebCore/ChangeLog	2018-10-11 20:30:54 UTC (rev 237046)
@@ -1,5 +1,16 @@
 2018-10-11  Daniel Bates  <[email protected]>
 
+        Support building WebKit for macOS Mojave using a newer SDK
+        https://bugs.webkit.org/show_bug.cgi?id=190431
+
+        Reviewed by Andy Estes.
+
+        * platform/network/cocoa/CookieCocoa.mm:
+        (WebCore::coreSameSitePolicy):
+        (WebCore::nsSameSitePolicy):
+
+2018-10-11  Daniel Bates  <[email protected]>
+
         [iOS] Add typedef for WebEvent keyboard flags
         https://bugs.webkit.org/show_bug.cgi?id=190435
 

Modified: trunk/Source/WebCore/platform/network/cocoa/CookieCocoa.mm (237045 => 237046)


--- trunk/Source/WebCore/platform/network/cocoa/CookieCocoa.mm	2018-10-11 20:29:57 UTC (rev 237045)
+++ trunk/Source/WebCore/platform/network/cocoa/CookieCocoa.mm	2018-10-11 20:30:54 UTC (rev 237046)
@@ -89,10 +89,12 @@
 {
     if (!policy)
         return Cookie::SameSitePolicy::None;
+    ALLOW_NEW_API_WITHOUT_GUARDS_BEGIN
     if ([policy isEqualToString:NSHTTPCookieSameSiteLax])
         return Cookie::SameSitePolicy::Lax;
     if ([policy isEqualToString:NSHTTPCookieSameSiteStrict])
         return Cookie::SameSitePolicy::Strict;
+    ALLOW_NEW_API_WITHOUT_GUARDS_END
     ASSERT_NOT_REACHED();
     return Cookie::SameSitePolicy::None;
 }
@@ -102,10 +104,12 @@
     switch (policy) {
     case Cookie::SameSitePolicy::None:
         return nil;
+    ALLOW_NEW_API_WITHOUT_GUARDS_BEGIN
     case Cookie::SameSitePolicy::Lax:
         return NSHTTPCookieSameSiteLax;
     case Cookie::SameSitePolicy::Strict:
         return NSHTTPCookieSameSiteStrict;
+    ALLOW_NEW_API_WITHOUT_GUARDS_END
     }
 }
 #endif
@@ -125,8 +129,10 @@
     , ports { portVectorFromList(cookie.portList) }
 {
 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
+    ALLOW_NEW_API_WITHOUT_GUARDS_BEGIN
     if ([cookie respondsToSelector:@selector(sameSitePolicy)])
         sameSite = coreSameSitePolicy(cookie.sameSitePolicy);
+    ALLOW_NEW_API_WITHOUT_GUARDS_END
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to