Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
browser(webkit): scroll into view instantly (#13885)
Yury Semikhatsky9c870bb6ada2
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBERindex 9581b1b01f..08a0fa0a22 100644--- a/browser_patches/webkit/BUILD_NUMBER+++ b/browser_patches/webkit/BUILD_NUMBER@@ -1,2 +1,2 @@-1635-Changed: [email protected] Fri Apr 29 06:39:57 UTC 2022+1636+Changed: [email protected] Mon 02 May 2022 03:56:08 PM PDTdiff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diffindex 034cfb0c41..4a3fc04e86 100644--- a/browser_patches/webkit/patches/bootstrap.diff+++ b/browser_patches/webkit/patches/bootstrap.diff@@ -3634,7 +3634,7 @@ index bde7c16e2e3fbe0b5d3891996e550f99785bb5c1..899b13d1eac5bd7dd35fe82cce1bf796{return context ? instrumentingAgents(*context) : nullptr;diff --git a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp-index c8ec0ee3944800964eabea9370f4f45e4c7f583e..00b99c93efa8c20c8cba7fb6bdfa588c742811f3 100644+index c8ec0ee3944800964eabea9370f4f45e4c7f583e..899008924290cc064b88641cc09595f4c0a877ff 100644--- a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp+++ b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp@@ -62,12 +62,16 @@@@ -3827,7 +3827,7 @@ index c8ec0ee3944800964eabea9370f4f45e4c7f583e..00b99c93efa8c20c8cba7fb6bdfa588c+ }+ ScrollAlignment alignment = ScrollAlignment::alignCenterIfNeeded;+ alignment.m_enableLegacyHorizontalVisibilityThreshold = false; // Disable RenderLayer minium horizontal scroll threshold.-+ renderer->scrollRectToVisible(absoluteBounds, insideFixed, { SelectionRevealMode::Reveal, alignment, alignment, ShouldAllowCrossOriginScrolling::Yes });++ renderer->scrollRectToVisible(absoluteBounds, insideFixed, { SelectionRevealMode::Reveal, alignment, alignment, ShouldAllowCrossOriginScrolling::Yes, ScrollBehavior::Instant });+ return { };+}+