<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>310596</bug_id>
          
          <creation_ts>2026-03-23 20:47:49 -0700</creation_ts>
          <short_desc>[GTK] ASSERTION FAILED: !m_deferredScrollDelta in WebCore::ScrollView::scrollTo from WebKit::LayerTreeHost::commitTransientZoom</short_desc>
          <delta_ts>2026-06-03 08:48:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>250907</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sebastian Krzyszkowiak">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>csaavedra</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2192990</commentid>
    <comment_count>0</comment_count>
    <who name="Sebastian Krzyszkowiak">webkit</who>
    <bug_when>2026-03-23 20:47:49 -0700</bug_when>
    <thetext>Triggered sometimes when using the pinch-to-zoom gesture. Relatively easily to reproduce by quickly pinching a lot for a while.

ASSERTION FAILED: !m_deferredScrollDelta
WebKit/Source/WebCore/platform/ScrollView.cpp(515) : virtual void WebCore::ScrollView::scrollTo(const WebCore::ScrollPosition&amp;)
1   0x7f060f407b5c WebCore::ScrollView::scrollTo(WebCore::IntPoint const&amp;)
2   0x7f060f2437dc WebCore::LocalFrameView::scrollTo(WebCore::IntPoint const&amp;)
3   0x7f060f403e8c WebCore::ScrollView::setScrollOffset(WebCore::IntPoint const&amp;)
4   0x7f060f40c79c WebCore::ScrollableArea::scrollPositionChanged(WebCore::IntPoint const&amp;)
5   0x7f060f40ca33 WebCore::ScrollableArea::notifyScrollPositionChanged(WebCore::IntPoint const&amp;)
6   0x7f060f368285 WebCore::AsyncScrollingCoordinator::reconcileScrollingState(WebCore::LocalFrameView&amp;, WebCore::FloatPoint const&amp;, mpark::variant&lt;std::optional&lt;WebCore::FloatPoint&gt;, std::optional&lt;WebCore::FloatRect&gt; &gt; const&amp;, WebCore::ScrollType, WebCore::ViewportRectStability, WebCore::ScrollingLayerPositionAction)
7   0x7f060f364e51 WebCore::AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScroll(WebCore::ProcessQualified&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ScrollingNodeIDType, WTF::ObjectIdentifierMainThreadAccessTraits&lt;unsigned long&gt;, unsigned long&gt; &gt;, WebCore::FloatPoint, std::optional&lt;WebCore::FloatPoint&gt;, WebCore::ScrollingLayerPositionAction, WebCore::ScrollType, WebCore::ViewportRectStability)
8   0x7f060f367eb5 WebCore::AsyncScrollingCoordinator::applyScrollPositionUpdate(WebCore::ScrollUpdate&amp;&amp;, WebCore::ScrollType, WebCore::ViewportRectStability)
9   0x7f060f368199 WebCore::AsyncScrollingCoordinator::applyScrollUpdate(WebCore::ScrollUpdate&amp;&amp;, WebCore::ScrollType, WebCore::ViewportRectStability)
10  0x7f060f3646db WebCore::AsyncScrollingCoordinator::requestScrollToPosition(WebCore::ScrollableArea&amp;, WebCore::IntPoint const&amp;, WebCore::ScrollPositionChangeOptions const&amp;)
11  0x7f060f22c9a4 WebCore::LocalFrameView::requestScrollToPosition(WebCore::IntPoint const&amp;, WebCore::ScrollPositionChangeOptions const&amp;)
12  0x7f060f40cacb WebCore::ScrollableArea::setScrollPositionFromAnimation(WebCore::IntPoint const&amp;)
13  0x7f060f3f87ed WebCore::ScrollAnimator::notifyPositionChanged(WebCore::FloatSize const&amp;)
14  0x7f060f3f8b05 WebCore::ScrollAnimator::setCurrentPosition(WebCore::FloatPoint const&amp;, WebCore::ScrollAnimator::NotifyScrollableArea)
15  0x7f060f3f8bf6 WebCore::ScrollAnimator::scrollToPositionWithoutAnimation(WebCore::FloatPoint const&amp;, WebCore::ScrollClamping)
16  0x7f060f40441f WebCore::ScrollableArea::scrollToPositionWithoutAnimation(WebCore::FloatPoint const&amp;, WebCore::ScrollClamping)
17  0x7f060f4045c9 WebCore::ScrollView::updateScrollbars(WebCore::IntPoint const&amp;)::{lambda(WebCore::IntPoint)#1}::operator()(WebCore::IntPoint) const
18  0x7f060f40b427 WebCore::ScrollView::updateScrollbars(WebCore::IntPoint const&amp;)
19  0x7f060f40b87d WebCore::ScrollView::setContentsSize(WebCore::IntSize const&amp;)
20  0x7f060f256312 WebCore::LocalFrameView::setContentsSize(WebCore::IntSize const&amp;)
21  0x7f060f2565ed WebCore::LocalFrameView::adjustViewSize()
22  0x7f060f261783 WebCore::LocalFrameViewLayoutContext::performLayout(bool)
23  0x7f060f26189f WebCore::LocalFrameViewLayoutContext::layout(bool)
24  0x7f060f2c22b1 WebCore::Page::setPageScaleFactor(float, WebCore::IntPoint const&amp;, bool)
25  0x7f060cbd13bd WebKit::WebPage::didScalePage(double, WebCore::IntPoint const&amp;)
26  0x7f060cbf352f WebKit::WebPage::scalePage(double, WebCore::IntPoint const&amp;)
27  0x7f060cc28781 WebKit::LayerTreeHost::commitTransientZoom(double, WebCore::FloatPoint, WebCore::FloatPoint)
28  0x7f060cc1c529 WebKit::DrawingAreaCoordinatedGraphics::commitTransientZoom(double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;)
29  0x7f060bdb5818 auto IPC::callMemberFunction&lt;WebKit::DrawingArea, WebKit::DrawingArea, void (double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;), std::tuple&lt;double, WebCore::FloatPoint&gt;, void ()&gt;(WebKit::DrawingArea*, void (WebKit::DrawingArea::*)(double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;), std::tuple&lt;double, WebCore::FloatPoint&gt;&amp;&amp;, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;)::{lambda((auto:1&amp;&amp;)...)#1}::operator()&lt;double, WebCore::FloatPoint&gt;(double&amp;&amp;, WebCore::FloatPoint&amp;&amp;) const
30  0x7f060bdb5861 void IPC::callMemberFunction&lt;WebKit::DrawingArea, WebKit::DrawingArea, void (double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;), std::tuple&lt;double, WebCore::FloatPoint&gt;, void ()&gt;(WebKit::DrawingArea*, void (WebKit::DrawingArea::*)(double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;), std::tuple&lt;double, WebCore::FloatPoint&gt;&amp;&amp;, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;)
31  0x7f060bdb676f void IPC::handleMessageAsync&lt;Messages::DrawingArea::CommitTransientZoom, IPC::Connection, WebKit::DrawingArea, WebKit::DrawingArea, void (double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::DrawingArea*, void (WebKit::DrawingArea::*)(double, WebCore::FloatPoint, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;))


Possibly related to https://bugs.webkit.org/show_bug.cgi?id=250907. Tested on 309778@main with https://github.com/WebKit/WebKit/pull/61214 applied (otherwise is asserts way before reaching this).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192999</commentid>
    <comment_count>1</comment_count>
    <who name="Sebastian Krzyszkowiak">webkit</who>
    <bug_when>2026-03-23 21:22:40 -0700</bug_when>
    <thetext>Seems easier to trigger with touchscreen than touchpad (but can happen with both).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193378</commentid>
    <comment_count>2</comment_count>
    <who name="Sebastian Krzyszkowiak">webkit</who>
    <bug_when>2026-03-24 18:43:04 -0700</bug_when>
    <thetext>In release builds, this seems to lead to layers ending up at some bad offset (potentially being placed completely offscreen) until performing the gesture again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2217224</commentid>
    <comment_count>3</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2026-06-03 08:48:07 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 250907 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>