Title: [250755] trunk/Source/WebKit
- Revision
- 250755
- Author
- [email protected]
- Date
- 2019-10-04 16:18:18 -0700 (Fri, 04 Oct 2019)
Log Message
Use a better name than allowFastClicksEverywhere
https://bugs.webkit.org/show_bug.cgi?id=202607
<rdar://problem/55997133>
Reviewed by Tim Horton.
This preference name is quite confusing. Change it to
PreferFasterClickOverDoubleTap.
* Shared/WebPreferences.yaml:
* Shared/WebPreferencesDefaultValues.h:
* UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::preferFasterClickOverDoubleTap const):
(WebKit::WebPageProxy::allowsFastClicksEverywhere const): Deleted.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]):
* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::effectiveContentModeAfterAdjustingPolicies):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (250754 => 250755)
--- trunk/Source/WebKit/ChangeLog 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/ChangeLog 2019-10-04 23:18:18 UTC (rev 250755)
@@ -1,3 +1,24 @@
+2019-10-04 Dean Jackson <[email protected]>
+
+ Use a better name than allowFastClicksEverywhere
+ https://bugs.webkit.org/show_bug.cgi?id=202607
+ <rdar://problem/55997133>
+
+ Reviewed by Tim Horton.
+
+ This preference name is quite confusing. Change it to
+ PreferFasterClickOverDoubleTap.
+
+ * Shared/WebPreferences.yaml:
+ * Shared/WebPreferencesDefaultValues.h:
+ * UIProcess/WebPageProxy.h:
+ (WebKit::WebPageProxy::preferFasterClickOverDoubleTap const):
+ (WebKit::WebPageProxy::allowsFastClicksEverywhere const): Deleted.
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView _handleSmartMagnificationInformationForPotentialTap:renderRect:fitEntireRect:viewportMinimumScale:viewportMaximumScale:]):
+ * UIProcess/ios/WebPageProxyIOS.mm:
+ (WebKit::WebPageProxy::effectiveContentModeAfterAdjustingPolicies):
+
2019-10-04 Ross Kirsling <[email protected]>
Socket-based RWI should base64-encode backend commands on client, not server
Modified: trunk/Source/WebKit/Shared/WebPreferences.yaml (250754 => 250755)
--- trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-10-04 23:18:18 UTC (rev 250755)
@@ -1563,17 +1563,17 @@
type: bool
defaultValue: true
condition: PLATFORM(IOS_FAMILY)
- humanReadableName: "Faster clicks"
+ humanReadableName: "Fast clicks"
humanReadableDescription: "Support faster clicks on zoomable pages"
webcoreBinding: none
category: internal
-FastClicksEverywhere:
+PreferFasterClickOverDoubleTap:
type: bool
- defaultValue: DEFAULT_FAST_CLICKS_EVERYWHERE
+ defaultValue: DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP
condition: PLATFORM(IOS_FAMILY)
- humanReadableName: "Fast clicks everywhere"
- humanReadableDescription: "Force fast clicks on all pages"
+ humanReadableName: "Use fast clicks before double tap"
+ humanReadableDescription: "Prefer a faster click over a double tap"
webcoreBinding: none
category: internal
Modified: trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h (250754 => 250755)
--- trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.h 2019-10-04 23:18:18 UTC (rev 250755)
@@ -262,13 +262,11 @@
#define DEFAULT_DOM_PASTE_ACCESS_REQUESTS_ENABLED false
#endif
-#if PLATFORM(IOS_FAMILY)
-#if PLATFORM(WATCHOS)
-#define DEFAULT_FAST_CLICKS_EVERYWHERE false
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS)
+#define DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP true
#else
-#define DEFAULT_FAST_CLICKS_EVERYWHERE true
+#define DEFAULT_PREFER_FASTER_CLICK_OVER_DOUBLE_TAP false
#endif
-#endif
#if ENABLE(APPLE_PAY_REMOTE_UI)
#define DEFAULT_APPLE_PAY_ENABLED true
Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.h (250754 => 250755)
--- trunk/Source/WebKit/UIProcess/WebPageProxy.h 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.h 2019-10-04 23:18:18 UTC (rev 250755)
@@ -526,7 +526,7 @@
bool hasCommittedAnyProvisionalLoads() const { return m_hasCommittedAnyProvisionalLoads; }
- bool allowsFastClicksEverywhere() const { return m_allowsFastClicksEverywhere; }
+ bool preferFasterClickOverDoubleTap() const { return m_preferFasterClickOverDoubleTap; }
void setIsUsingHighPerformanceWebGL(bool value) { m_isUsingHighPerformanceWebGL = value; }
bool isUsingHighPerformanceWebGL() const { return m_isUsingHighPerformanceWebGL; }
@@ -2520,7 +2520,7 @@
bool m_isUsingHighPerformanceWebGL { false };
bool m_openedByDOM { false };
bool m_hasCommittedAnyProvisionalLoads { false };
- bool m_allowsFastClicksEverywhere { false };
+ bool m_preferFasterClickOverDoubleTap { false };
HashMap<String, Ref<WebURLSchemeHandler>> m_urlSchemeHandlersByScheme;
HashMap<uint64_t, Ref<WebURLSchemeHandler>> m_urlSchemeHandlersByIdentifier;
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (250754 => 250755)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-10-04 23:18:18 UTC (rev 250755)
@@ -1728,8 +1728,8 @@
if (!_potentialTapInProgress)
return;
- if (_page->preferences().fastClicksEverywhere() && _page->allowsFastClicksEverywhere()) {
- RELEASE_LOG(ViewGestures, "Potential tap found an element and fast taps are forced on. Trigger click. (%p)", self);
+ if (_page->preferences().preferFasterClickOverDoubleTap() && _page->preferFasterClickOverDoubleTap()) {
+ RELEASE_LOG(ViewGestures, "Potential tap found an element and fast taps are preferred. Trigger click. (%p)", self);
[self _setDoubleTapGesturesEnabled:NO];
return;
}
Modified: trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm (250754 => 250755)
--- trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm 2019-10-04 23:12:45 UTC (rev 250754)
+++ trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm 2019-10-04 23:18:18 UTC (rev 250755)
@@ -1443,7 +1443,7 @@
break;
}
- m_allowsFastClicksEverywhere = false;
+ m_preferFasterClickOverDoubleTap = false;
if (!useDesktopBrowsingMode) {
policies.setAllowContentChangeObserverQuirk(true);
@@ -1468,7 +1468,7 @@
policies.setMediaSourcePolicy(WebsiteMediaSourcePolicy::Enable);
policies.setSimulatedMouseEventsDispatchPolicy(WebsiteSimulatedMouseEventsDispatchPolicy::Allow);
policies.setLegacyOverflowScrollingTouchPolicy(WebsiteLegacyOverflowScrollingTouchPolicy::Disable);
- m_allowsFastClicksEverywhere = true;
+ m_preferFasterClickOverDoubleTap = true;
}
return WebContentMode::Desktop;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes