Unreviewed build fix after r243173.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 23:22:11 +0000 (23:22 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 23:22:11 +0000 (23:22 +0000)
* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::requestStorageAccessConfirm):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Cocoa/UIDelegate.mm

index 41c95ad..e6a9ef5 100644 (file)
@@ -1,3 +1,10 @@
+2019-03-19  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed build fix after r243173.
+
+        * UIProcess/Cocoa/UIDelegate.mm:
+        (WebKit::UIDelegate::UIClient::requestStorageAccessConfirm):
+
 2019-03-19  Brent Fulgham  <bfulgham@apple.com>
 
         Add default prompt implementation for the Storage Access API
index a57952f..c623893 100644 (file)
@@ -346,7 +346,9 @@ void UIDelegate::UIClient::requestStorageAccessConfirm(WebPageProxy&, WebFramePr
     }
     
     if (!m_uiDelegate.m_delegateMethods.webViewRequestStorageAccessPanelForTopPrivatelyControlledDomainUnderFirstPartyTopPrivatelyControlledDomainCompletionHandler) {
+#if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
         presentStorageAccessAlert(m_uiDelegate.m_webView, requestingDomain, currentDomain, WTFMove(completionHandler));
+#endif
         return;
     }