Title: [293928] trunk/Source
- Revision
- 293928
- Author
- [email protected]
- Date
- 2022-05-06 15:33:06 -0700 (Fri, 06 May 2022)
Log Message
Remove unused ApplePayRemoteUIEnabled preference
https://bugs.webkit.org/show_bug.cgi?id=240177
Reviewed by Devin Rousso.
Remove the internal WKPreference for ApplePayRemoteUIEnabled now that
we always use the high-security remote ApplePay UI.
Source/WebKit:
* WebProcess/ApplePay/WebPaymentCoordinator.cpp:
(WebKit::WebPaymentCoordinator::networkProcessConnectionClosed):
(WebKit::WebPaymentCoordinator::messageSenderConnection const):
(WebKit::WebPaymentCoordinator::remoteUIEnabled const): Deleted.
* WebProcess/ApplePay/WebPaymentCoordinator.h:
Source/WTF:
* Scripts/Preferences/WebPreferencesInternal.yaml:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (293927 => 293928)
--- trunk/Source/WTF/ChangeLog 2022-05-06 22:20:55 UTC (rev 293927)
+++ trunk/Source/WTF/ChangeLog 2022-05-06 22:33:06 UTC (rev 293928)
@@ -1,5 +1,17 @@
2022-05-06 Brent Fulgham <[email protected]>
+ Remove unused ApplePayRemoteUIEnabled preference
+ https://bugs.webkit.org/show_bug.cgi?id=240177
+
+ Reviewed by Devin Rousso.
+
+ Remove the internal WKPreference for ApplePayRemoteUIEnabled now that
+ we always use the high-security remote ApplePay UI.
+
+ * Scripts/Preferences/WebPreferencesInternal.yaml:
+
+2022-05-06 Brent Fulgham <[email protected]>
+
Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
https://bugs.webkit.org/show_bug.cgi?id=240129
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml (293927 => 293928)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2022-05-06 22:20:55 UTC (rev 293927)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2022-05-06 22:33:06 UTC (rev 293928)
@@ -65,20 +65,6 @@
WebKit:
default: false
-# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
-ApplePayRemoteUIEnabled:
- type: bool
- humanReadableDescription: "Enable Apple Pay Remote UI"
- humanReadableName: "Apple Pay Remote UI"
- condition: ENABLE(APPLE_PAY_REMOTE_UI)
- defaultValue:
- WebKitLegacy:
- default: false
- WebKit:
- default: true
- WebCore:
- default: true
-
AsyncFrameScrollingEnabled:
type: bool
webcoreOnChange: setNeedsRelayoutAllFrames
Modified: trunk/Source/WebKit/ChangeLog (293927 => 293928)
--- trunk/Source/WebKit/ChangeLog 2022-05-06 22:20:55 UTC (rev 293927)
+++ trunk/Source/WebKit/ChangeLog 2022-05-06 22:33:06 UTC (rev 293928)
@@ -1,5 +1,21 @@
2022-05-06 Brent Fulgham <[email protected]>
+ Remove unused ApplePayRemoteUIEnabled preference
+ https://bugs.webkit.org/show_bug.cgi?id=240177
+
+ Reviewed by Devin Rousso.
+
+ Remove the internal WKPreference for ApplePayRemoteUIEnabled now that
+ we always use the high-security remote ApplePay UI.
+
+ * WebProcess/ApplePay/WebPaymentCoordinator.cpp:
+ (WebKit::WebPaymentCoordinator::networkProcessConnectionClosed):
+ (WebKit::WebPaymentCoordinator::messageSenderConnection const):
+ (WebKit::WebPaymentCoordinator::remoteUIEnabled const): Deleted.
+ * WebProcess/ApplePay/WebPaymentCoordinator.h:
+
+2022-05-06 Brent Fulgham <[email protected]>
+
Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
https://bugs.webkit.org/show_bug.cgi?id=240129
Modified: trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.cpp (293927 => 293928)
--- trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.cpp 2022-05-06 22:20:55 UTC (rev 293927)
+++ trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.cpp 2022-05-06 22:33:06 UTC (rev 293928)
@@ -61,8 +61,7 @@
void WebPaymentCoordinator::networkProcessConnectionClosed()
{
#if ENABLE(APPLE_PAY_REMOTE_UI)
- if (remoteUIEnabled())
- didCancelPaymentSession({ });
+ didCancelPaymentSession({ });
#endif
}
@@ -161,10 +160,10 @@
IPC::Connection* WebPaymentCoordinator::messageSenderConnection() const
{
#if ENABLE(APPLE_PAY_REMOTE_UI)
- if (remoteUIEnabled())
- return &WebProcess::singleton().ensureNetworkProcessConnection().connection();
+ return &WebProcess::singleton().ensureNetworkProcessConnection().connection();
+#else
+ return WebProcess::singleton().parentProcessConnection();
#endif
- return WebProcess::singleton().parentProcessConnection();
}
uint64_t WebPaymentCoordinator::messageSenderDestinationID() const
@@ -216,15 +215,6 @@
return m_webPage.corePage()->paymentCoordinator();
}
-#if ENABLE(APPLE_PAY_REMOTE_UI)
-bool WebPaymentCoordinator::remoteUIEnabled() const
-{
- if (auto page = m_webPage.corePage())
- return page->settings().applePayRemoteUIEnabled();
- return false;
-}
-#endif
-
void WebPaymentCoordinator::getSetupFeatures(const WebCore::ApplePaySetupConfiguration& configuration, const URL& url, CompletionHandler<void(Vector<Ref<WebCore::ApplePaySetupFeature>>&&)>&& completionHandler)
{
m_webPage.sendWithAsyncReply(Messages::WebPaymentCoordinatorProxy::GetSetupFeatures(PaymentSetupConfiguration { configuration, url }), WTFMove(completionHandler));
Modified: trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.h (293927 => 293928)
--- trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.h 2022-05-06 22:20:55 UTC (rev 293927)
+++ trunk/Source/WebKit/WebProcess/ApplePay/WebPaymentCoordinator.h 2022-05-06 22:33:06 UTC (rev 293928)
@@ -104,10 +104,6 @@
WebCore::PaymentCoordinator& paymentCoordinator();
-#if ENABLE(APPLE_PAY_REMOTE_UI)
- bool remoteUIEnabled() const;
-#endif
-
using AvailablePaymentNetworksSet = HashSet<String, ASCIICaseInsensitiveHash>;
static AvailablePaymentNetworksSet platformAvailablePaymentNetworks();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes