Changeset 245483 in webkit
- Timestamp:
- May 17, 2019, 3:05:07 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/scrolling/ipad (added)
-
LayoutTests/fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode-expected.html (added)
-
LayoutTests/fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode.html (added)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ipad/fast/css (added)
-
LayoutTests/platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode-expected.txt (added)
-
LayoutTests/platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/parser/CSSParserContext.cpp (modified) (2 diffs)
-
Source/WebCore/loader/DocumentLoader.h (modified) (3 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Shared/WebsiteLegacyOverflowScrollingTouchPolicy.h (added)
-
Source/WebKit/Shared/WebsitePoliciesData.cpp (modified) (4 diffs)
-
Source/WebKit/Shared/WebsitePoliciesData.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/APIWebsitePolicies.cpp (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/APIWebsitePolicies.h (modified) (3 diffs)
-
Source/WebKit/WebKit.xcodeproj/project.pbxproj (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245475 r245483 1 2019-05-17 Antoine Quint <graouts@apple.com> 2 3 Add a website policy to disable the legacy -webkit-overflow-scrolling:touch behavior 4 https://bugs.webkit.org/show_bug.cgi?id=197943 5 <rdar://problem/49078202> 6 7 Reviewed by Brent Fulgham. 8 9 * fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode-expected.html: Added. 10 * fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode.html: Added. 11 * platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode-expected.txt: Added. 12 * platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode.html: Added. 13 * platform/ios/TestExpectations: Skip the new tests since they depend on code in WebKitAdditions. 14 1 15 2019-05-17 Rob Buis <rbuis@igalia.com> 2 16 -
trunk/LayoutTests/platform/ios/TestExpectations
r245473 r245483 3266 3266 fast/events/ios/submit-form-target-blank-using-return-key.html 3267 3267 3268 # These tests depend on the implementation of "modern compatibility mode" in WebKitAdditions. 3269 platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode.html [ Skip ] 3270 fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode.html [ Skip ] 3271 3268 3272 webkit.org/b/197778 [ Debug ] webgl/2.0.0/conformance2/attribs/gl-vertexattribipointer.html [ Slow ] 3269 3273 -
trunk/Source/WebCore/ChangeLog
r245481 r245483 1 2019-05-17 Antoine Quint <graouts@apple.com> 2 3 Add a website policy to disable the legacy -webkit-overflow-scrolling:touch behavior 4 https://bugs.webkit.org/show_bug.cgi?id=197943 5 <rdar://problem/49078202> 6 7 Reviewed by Brent Fulgham. 8 9 Tests: fast/scrolling/ipad/overflow-scrolling-touch-enabled-stacking-modern-compatibility-mode.html 10 platform/ipad/fast/css/webkit-overflow-scrolling-parsing-modern-compatibility-mode.html 11 12 * css/parser/CSSParserContext.cpp: 13 (WebCore::CSSParserContext::CSSParserContext): 14 * loader/DocumentLoader.h: 15 (WebCore::DocumentLoader::legacyOverflowScrollingTouchPolicy const): 16 (WebCore::DocumentLoader::setLegacyOverflowScrollingTouchPolicy): 17 1 18 2019-05-17 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/Source/WebCore/css/parser/CSSParserContext.cpp
r243318 r245483 28 28 29 29 #include "Document.h" 30 #include "DocumentLoader.h" 30 31 #include "Page.h" 31 32 #include "RuntimeEnabledFeatures.h" … … 61 62 #if ENABLE(OVERFLOW_SCROLLING_TOUCH) 62 63 legacyOverflowScrollingTouchEnabled = document.settings().legacyOverflowScrollingTouchEnabled(); 64 // The legacy -webkit-overflow-scrolling: touch behavior may have been disabled through the website policy, 65 // in that case we want to disable the legacy behavior regardless of what the setting says. 66 if (auto* loader = document.loader()) { 67 if (loader->legacyOverflowScrollingTouchPolicy() == LegacyOverflowScrollingTouchPolicy::Disable) 68 legacyOverflowScrollingTouchEnabled = false; 69 } 63 70 #endif 64 71 springTimingFunctionEnabled = document.settings().springTimingFunctionEnabled(); -
trunk/Source/WebCore/loader/DocumentLoader.h
r245481 r245483 132 132 }; 133 133 134 enum class LegacyOverflowScrollingTouchPolicy : uint8_t { 135 Default, 136 Disable, 137 Enable, 138 }; 139 134 140 class DocumentLoader 135 141 : public RefCounted<DocumentLoader> … … 314 320 void setSimulatedMouseEventsDispatchPolicy(SimulatedMouseEventsDispatchPolicy policy) { m_simulatedMouseEventsDispatchPolicy = policy; } 315 321 322 LegacyOverflowScrollingTouchPolicy legacyOverflowScrollingTouchPolicy() const { return m_legacyOverflowScrollingTouchPolicy; } 323 void setLegacyOverflowScrollingTouchPolicy(LegacyOverflowScrollingTouchPolicy policy) { m_legacyOverflowScrollingTouchPolicy = policy; } 324 316 325 void addSubresourceLoader(ResourceLoader*); 317 326 void removeSubresourceLoader(LoadCompletionType, ResourceLoader*); … … 597 606 MediaSourcePolicy m_mediaSourcePolicy { MediaSourcePolicy::Default }; 598 607 SimulatedMouseEventsDispatchPolicy m_simulatedMouseEventsDispatchPolicy { SimulatedMouseEventsDispatchPolicy::Default }; 608 LegacyOverflowScrollingTouchPolicy m_legacyOverflowScrollingTouchPolicy { LegacyOverflowScrollingTouchPolicy::Default }; 599 609 600 610 #if ENABLE(SERVICE_WORKER) -
trunk/Source/WebKit/ChangeLog
r245481 r245483 1 2019-05-17 Antoine Quint <graouts@apple.com> 2 3 Add a website policy to disable the legacy -webkit-overflow-scrolling:touch behavior 4 https://bugs.webkit.org/show_bug.cgi?id=197943 5 <rdar://problem/49078202> 6 7 Reviewed by Brent Fulgham. 8 9 * Shared/WebsiteLegacyOverflowScrollingTouchPolicy.h: Added. 10 * Shared/WebsitePoliciesData.cpp: 11 (WebKit::WebsitePoliciesData::encode const): 12 (WebKit::WebsitePoliciesData::decode): 13 (WebKit::WebsitePoliciesData::applyToDocumentLoader): 14 * Shared/WebsitePoliciesData.h: 15 * UIProcess/API/APIWebsitePolicies.cpp: 16 (API::WebsitePolicies::copy const): 17 (API::WebsitePolicies::data): 18 * UIProcess/API/APIWebsitePolicies.h: 19 * WebKit.xcodeproj/project.pbxproj: 20 1 21 2019-05-17 Alex Christensen <achristensen@webkit.org> 2 22 -
trunk/Source/WebKit/Shared/WebsitePoliciesData.cpp
r245481 r245483 53 53 encoder << mediaSourcePolicy; 54 54 encoder << simulatedMouseEventsDispatchPolicy; 55 encoder << legacyOverflowScrollingTouchPolicy; 55 56 } 56 57 … … 122 123 decoder >> simulatedMouseEventsDispatchPolicy; 123 124 if (!simulatedMouseEventsDispatchPolicy) 125 return WTF::nullopt; 126 127 Optional<WebsiteLegacyOverflowScrollingTouchPolicy> legacyOverflowScrollingTouchPolicy; 128 decoder >> legacyOverflowScrollingTouchPolicy; 129 if (!legacyOverflowScrollingTouchPolicy) 124 130 return WTF::nullopt; 125 131 … … 140 146 WTFMove(*mediaSourcePolicy), 141 147 WTFMove(*simulatedMouseEventsDispatchPolicy), 148 WTFMove(*legacyOverflowScrollingTouchPolicy), 142 149 } }; 143 150 } … … 238 245 } 239 246 247 switch (websitePolicies.legacyOverflowScrollingTouchPolicy) { 248 case WebsiteLegacyOverflowScrollingTouchPolicy::Default: 249 documentLoader.setLegacyOverflowScrollingTouchPolicy(WebCore::LegacyOverflowScrollingTouchPolicy::Default); 250 break; 251 case WebsiteLegacyOverflowScrollingTouchPolicy::Disable: 252 documentLoader.setLegacyOverflowScrollingTouchPolicy(WebCore::LegacyOverflowScrollingTouchPolicy::Disable); 253 break; 254 case WebsiteLegacyOverflowScrollingTouchPolicy::Enable: 255 documentLoader.setLegacyOverflowScrollingTouchPolicy(WebCore::LegacyOverflowScrollingTouchPolicy::Enable); 256 break; 257 } 258 240 259 if (websitePolicies.websiteDataStoreParameters) { 241 260 if (auto* frame = documentLoader.frame()) { -
trunk/Source/WebKit/Shared/WebsitePoliciesData.h
r245481 r245483 29 29 #include "WebsiteAutoplayQuirk.h" 30 30 #include "WebsiteDataStoreParameters.h" 31 #include "WebsiteLegacyOverflowScrollingTouchPolicy.h" 31 32 #include "WebsiteMediaSourcePolicy.h" 32 33 #include "WebsiteMetaViewportPolicy.h" … … 66 67 WebsiteMediaSourcePolicy mediaSourcePolicy { WebsiteMediaSourcePolicy::Default }; 67 68 WebsiteSimulatedMouseEventsDispatchPolicy simulatedMouseEventsDispatchPolicy { WebsiteSimulatedMouseEventsDispatchPolicy::Default }; 69 WebsiteLegacyOverflowScrollingTouchPolicy legacyOverflowScrollingTouchPolicy { WebsiteLegacyOverflowScrollingTouchPolicy::Default }; 68 70 69 71 void encode(IPC::Encoder&) const; -
trunk/Source/WebKit/UIProcess/API/APIWebsitePolicies.cpp
r245481 r245483 62 62 policies->setMediaSourcePolicy(m_mediaSourcePolicy); 63 63 policies->setSimulatedMouseEventsDispatchPolicy(m_simulatedMouseEventsDispatchPolicy); 64 policies->setLegacyOverflowScrollingTouchPolicy(m_legacyOverflowScrollingTouchPolicy); 64 65 65 66 Vector<WebCore::HTTPHeaderField> legacyCustomHeaderFields; … … 114 115 m_mediaSourcePolicy, 115 116 m_simulatedMouseEventsDispatchPolicy, 117 m_legacyOverflowScrollingTouchPolicy, 116 118 }; 117 119 } -
trunk/Source/WebKit/UIProcess/API/APIWebsitePolicies.h
r245481 r245483 30 30 #include "WebsiteAutoplayPolicy.h" 31 31 #include "WebsiteAutoplayQuirk.h" 32 #include "WebsiteLegacyOverflowScrollingTouchPolicy.h" 32 33 #include "WebsiteMediaSourcePolicy.h" 33 34 #include "WebsiteMetaViewportPolicy.h" … … 105 106 void setSimulatedMouseEventsDispatchPolicy(WebKit::WebsiteSimulatedMouseEventsDispatchPolicy policy) { m_simulatedMouseEventsDispatchPolicy = policy; } 106 107 108 WebKit::WebsiteLegacyOverflowScrollingTouchPolicy legacyOverflowScrollingTouchPolicy() const { return m_legacyOverflowScrollingTouchPolicy; } 109 void setLegacyOverflowScrollingTouchPolicy(WebKit::WebsiteLegacyOverflowScrollingTouchPolicy policy) { m_legacyOverflowScrollingTouchPolicy = policy; } 110 107 111 bool allowSiteSpecificQuirksToOverrideCompatibilityMode() const { return m_allowSiteSpecificQuirksToOverrideCompatibilityMode; } 108 112 void setAllowSiteSpecificQuirksToOverrideCompatibilityMode(bool value) { m_allowSiteSpecificQuirksToOverrideCompatibilityMode = value; } … … 131 135 WebKit::WebsiteMediaSourcePolicy m_mediaSourcePolicy { WebKit::WebsiteMediaSourcePolicy::Default }; 132 136 WebKit::WebsiteSimulatedMouseEventsDispatchPolicy m_simulatedMouseEventsDispatchPolicy { WebKit::WebsiteSimulatedMouseEventsDispatchPolicy::Default }; 137 WebKit::WebsiteLegacyOverflowScrollingTouchPolicy m_legacyOverflowScrollingTouchPolicy { WebKit::WebsiteLegacyOverflowScrollingTouchPolicy::Default }; 133 138 bool m_allowSiteSpecificQuirksToOverrideCompatibilityMode { false }; 134 139 WTF::String m_applicationNameForUserAgentWithModernCompatibility; -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r245481 r245483 1118 1118 6BE969CD1E54E054008B7483 /* ResourceLoadStatisticsClassifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 6BE969CC1E54E054008B7483 /* ResourceLoadStatisticsClassifier.h */; }; 1119 1119 6EE849C81368D9390038D481 /* WKInspectorPrivateMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EE849C61368D92D0038D481 /* WKInspectorPrivateMac.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1120 711725A9228D564300018514 /* WebsiteLegacyOverflowScrollingTouchPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 711725A8228D563A00018514 /* WebsiteLegacyOverflowScrollingTouchPolicy.h */; }; 1120 1121 71FB810B2260627E00323677 /* WebsiteSimulatedMouseEventsDispatchPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 71FB810A2260627A00323677 /* WebsiteSimulatedMouseEventsDispatchPolicy.h */; }; 1121 1122 728E86F11795188C0087879E /* WebColorPickerMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 728E86EF1795188C0087879E /* WebColorPickerMac.h */; }; … … 3607 3608 6D8A91A511F0EFD100DD01FE /* com.apple.WebProcess.sb.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = com.apple.WebProcess.sb.in; path = WebProcess/com.apple.WebProcess.sb.in; sourceTree = "<group>"; }; 3608 3609 6EE849C61368D92D0038D481 /* WKInspectorPrivateMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKInspectorPrivateMac.h; path = mac/WKInspectorPrivateMac.h; sourceTree = "<group>"; }; 3610 711725A8228D563A00018514 /* WebsiteLegacyOverflowScrollingTouchPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebsiteLegacyOverflowScrollingTouchPolicy.h; sourceTree = "<group>"; }; 3609 3611 71FB810A2260627A00323677 /* WebsiteSimulatedMouseEventsDispatchPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebsiteSimulatedMouseEventsDispatchPolicy.h; sourceTree = "<group>"; }; 3610 3612 728E86EF1795188C0087879E /* WebColorPickerMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebColorPickerMac.h; sourceTree = "<group>"; }; … … 5279 5281 511F7D3F1EB1BCEE00E47B83 /* WebsiteDataStoreParameters.cpp */, 5280 5282 511F7D401EB1BCEE00E47B83 /* WebsiteDataStoreParameters.h */, 5283 711725A8228D563A00018514 /* WebsiteLegacyOverflowScrollingTouchPolicy.h */, 5281 5284 F4CB09E4225D5A0300891487 /* WebsiteMediaSourcePolicy.h */, 5282 5285 F430E941224732A9005FE053 /* WebsiteMetaViewportPolicy.h */, … … 9773 9776 1A53C2AA1A325730004E8C70 /* WebsiteDataStore.h in Headers */, 9774 9777 511F7D411EB1BCF500E47B83 /* WebsiteDataStoreParameters.h in Headers */, 9778 711725A9228D564300018514 /* WebsiteLegacyOverflowScrollingTouchPolicy.h in Headers */, 9775 9779 F4CB09E5225D5A0900891487 /* WebsiteMediaSourcePolicy.h in Headers */, 9776 9780 F430E9422247335F005FE053 /* WebsiteMetaViewportPolicy.h in Headers */,
Note:
See TracChangeset
for help on using the changeset viewer.