Title: [257957] trunk/Source/WebKit
Revision
257957
Author
katherine_che...@apple.com
Date
2020-03-05 16:21:16 -0800 (Thu, 05 Mar 2020)

Log Message

Add web page additions to WebPageProxy
https://bugs.webkit.org/show_bug.cgi?id=208666
<rdar://problem/60100413>

Reviewed by Brent Fulgham.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::isAppBoundDomain const):
(WebKit::WebPageProxy::setIsNavigatingToAppBoundDomain):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (257956 => 257957)


--- trunk/Source/WebKit/ChangeLog	2020-03-06 00:06:53 UTC (rev 257956)
+++ trunk/Source/WebKit/ChangeLog	2020-03-06 00:21:16 UTC (rev 257957)
@@ -1,3 +1,15 @@
+2020-03-05  Kate Cheney  <katherine_che...@apple.com>
+
+        Add web page additions to WebPageProxy
+        https://bugs.webkit.org/show_bug.cgi?id=208666
+        <rdar://problem/60100413>
+
+        Reviewed by Brent Fulgham.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::isAppBoundDomain const):
+        (WebKit::WebPageProxy::setIsNavigatingToAppBoundDomain):
+
 2020-03-05  Brent Fulgham  <bfulg...@apple.com>
 
         [macOS] Create sandbox extension for "com.apple.tccd"

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (257956 => 257957)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-03-06 00:06:53 UTC (rev 257956)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-03-06 00:21:16 UTC (rev 257957)
@@ -279,7 +279,8 @@
 #if USE(APPLE_INTERNAL_SDK)
 #include <WebKitAdditions/WebPageProxyAdditions.h>
 #else
-#define WEB_PAGE_PROXY_ADDITIONS
+#define WEB_PAGE_PROXY_ADDITIONS_ISAPPBOUNDDOMAIN
+#define WEB_PAGE_PROXY_ADDITIONS_SETISNAVIGATINGTOAPPBOUNDDOMAIN
 #endif
 
 // This controls what strategy we use for mouse wheel coalescing.
@@ -3097,7 +3098,7 @@
 
 bool WebPageProxy::isAppBoundDomain(const WebCore::RegistrableDomain& domain) const
 {
-    WEB_PAGE_PROXY_ADDITIONS
+    WEB_PAGE_PROXY_ADDITIONS_ISAPPBOUNDDOMAIN
     return true;
 }
 
@@ -3109,6 +3110,7 @@
 void WebPageProxy::setIsNavigatingToAppBoundDomain(bool isMainFrame, const URL& requestURL)
 {
     if (m_preferences->isInAppBrowserPrivacyEnabled() && isMainFrame) {
+        WEB_PAGE_PROXY_ADDITIONS_SETISNAVIGATINGTOAPPBOUNDDOMAIN
         if (!isAppBoundDomain(requestURL)) {
             m_configuration->setWebViewCategory(WebViewCategory::InAppBrowser);
             m_isNavigatingToAppBoundDomain = NavigatingToAppBoundDomain::No;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to