<?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>256177</bug_id>
          
          <creation_ts>2023-05-01 13:46:42 -0700</creation_ts>
          <short_desc>REGRESSION(263286@main): [ Debug ] ASSERTION FAILED: !m_scrollDimensionsDirty</short_desc>
          <delta_ts>2023-05-05 09:03:52 -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>Compositing</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=255830</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jenner">jenner</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1952216</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-05-01 13:46:42 -0700</bug_when>
    <thetext>TestWebKitAPI.TextManipulation.CompleteTextManipulationAddsOverflowHiddenToAvoidBreakingLayout

is constantly hitting an assertion on Debug for macOS and iOS. 

HISTORY:
https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.TextManipulation.CompleteTextManipulationAddsOverflowHiddenToAvoidBreakingLayout

TestWebKitAPI.TextManipulation.CompleteTextManipulationAddsOverflowHiddenToAvoidBreakingLayout
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(225) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        ASSERTION FAILED: !m_scrollDimensionsDirty
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebCore/rendering/RenderLayerScrollableArea.cpp(1134) : bool WebCore::RenderLayerScrollableArea::hasHorizontalOverflow() const
        1   0x15333fed4 WTFCrash
        2   0x10684b260 JSC::VMTraps::maybeNeedHandling() const
        3   0x10b10dd60 WebCore::RenderLayerScrollableArea::hasHorizontalOverflow() const
        4   0x10b10c1b0 WebCore::RenderLayerScrollableArea::hasScrollableHorizontalOverflow() const
        5   0x10b10dc38 WebCore::RenderLayerScrollableArea::computeHasCompositedScrollableOverflow()
        6   0x10b0a5d90 WebCore::RenderLayer::styleChanged(WebCore::StyleDifference, WebCore::RenderStyle const*)
        7   0x10b0806a4 WebCore::RenderLayerModelObject::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
        8   0x10af7055c WebCore::RenderBox::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
        9   0x10af70434 WebCore::RenderBlock::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
        10  0x10af9a49c WebCore::RenderBlockFlow::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
        11  0x10b022618 WebCore::RenderElement::setStyle(WebCore::RenderStyle&amp;&amp;, WebCore::StyleDifference)
        12  0x10b385594 WebCore::RenderTreeUpdater::updateRendererStyle(WebCore::RenderElement&amp;, WebCore::RenderStyle&amp;&amp;, WebCore::StyleDifference)
        13  0x10b384a30 WebCore::RenderTreeUpdater::updateElementRenderer(WebCore::Element&amp;, WebCore::Style::ElementUpdate const&amp;)
        14  0x10b383d7c WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&amp;)
        15  0x10b3835f4 WebCore::RenderTreeUpdater::commit(std::__1::unique_ptr&lt;WebCore::Style::Update const, std::__1::default_delete&lt;WebCore::Style::Update const&gt;&gt;)
        16  0x1096fef04 WebCore::Document::updateRenderTree(std::__1::unique_ptr&lt;WebCore::Style::Update const, std::__1::default_delete&lt;WebCore::Style::Update const&gt;&gt;)
        17  0x1096ff48c WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType)
        18  0x109700148 WebCore::Document::updateStyleIfNeeded()
        19  0x109765898 WebCore::Document::Document(WebCore::LocalFrame*, WebCore::Settings const&amp;, WTF::URL const&amp;, WTF::OptionSet&lt;WebCore::Document::DocumentClass&gt;, unsigned int, WebCore::ProcessQualified&lt;WTF::UUID&gt;)::$_7::operator()() const
        20  0x109765844 WTF::Detail::CallableWrapper&lt;WebCore::Document::Document(WebCore::LocalFrame*, WebCore::Settings const&amp;, WTF::URL const&amp;, WTF::OptionSet&lt;WebCore::Document::DocumentClass&gt;, unsigned int, WebCore::ProcessQualified&lt;WTF::UUID&gt;)::$_7, void&gt;::call()
        21  0x10835c4a4 WTF::Function&lt;void ()&gt;::operator()() const
        22  0x108f06124 WebCore::Timer::fired()
        23  0x10a82fd08 WebCore::ThreadTimers::sharedTimerFiredInternal()
        24  0x10a8382e0 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
        25  0x10a83828c WTF::Detail::CallableWrapper&lt;WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void&gt;::call()
        26  0x10835c4a4 WTF::Function&lt;void ()&gt;::operator()() const
        27  0x10a7d9684 WebCore::MainThreadSharedTimer::fired()
        28  0x10a8c2a08 WebCore::timerFired(__CFRunLoopTimer*, void*)
        29  0x199c7848c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
        30  0x199c78134 __CFRunLoopDoTimer
        31  0x199c77c8c __CFRunLoopDoTimers
        2023-05-01 12:51:01.385 TestWebKitAPI[47019:125469148] Encountered error: Error Domain=WKErrorDomain Code=5 &quot;JavaScript execution returned a result of an unsupported type&quot; UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type} while evaluating script: document.querySelector(&apos;a&apos;).textContent.trim()
        2023-05-01 12:51:01.594 TestWebKitAPI[47019:125469148] Encountered error: Error Domain=WKErrorDomain Code=4 &quot;A JavaScript exception occurred&quot; UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: Argument 1 (&apos;element&apos;) to Window.getComputedStyle must be an instance of Element, WKJavaScriptExceptionColumnNumber=17, WKJavaScriptExceptionSourceURL=undefined, NSLocalizedDescription=A JavaScript exception occurred} while evaluating script: getComputedStyle(document.querySelector(&apos;span&apos;)).overflowX
        2023-05-01 12:51:01.608 TestWebKitAPI[47019:125469148] Encountered error: Error Domain=WKErrorDomain Code=4 &quot;A JavaScript exception occurred&quot; UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: Argument 1 (&apos;element&apos;) to Window.getComputedStyle must be an instance of Element, WKJavaScriptExceptionColumnNumber=17, WKJavaScriptExceptionSourceURL=undefined, NSLocalizedDescription=A JavaScript exception occurred} while evaluating script: getComputedStyle(document.querySelector(&apos;span&apos;)).overflowY
        LEAK: 1 WebProcessPool
        LEAK: 1 WebPageProxy
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/cocoa/TestWKWebView.mm:230
        Value of: !error
          Actual: false
        Expected: true
        
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:3470
        Expected equality of these values:
          &quot;This is a long translation Foo bar&quot;
          [webView stringByEvaluatingJavaScript:@&quot;document.querySelector(&apos;a&apos;).textContent.trim()&quot;]
            Which is: &quot;(null)&quot;
        
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/cocoa/TestWKWebView.mm:230
        Value of: !error
          Actual: false
        Expected: true
        
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:3471
        Expected equality of these values:
          &quot;hidden&quot;
          [webView stringByEvaluatingJavaScript:@&quot;getComputedStyle(document.querySelector(&apos;span&apos;)).overflowX&quot;]
            Which is: &quot;(null)&quot;
        
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/cocoa/TestWKWebView.mm:230
        Value of: !error
          Actual: false
        Expected: true
        
        
        /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:3472
        Expected equality of these values:
          &quot;auto&quot;
          [webView stringByEvaluatingJavaScript:@&quot;getComputedStyle(document.querySelector(&apos;span&apos;)).overflowY&quot;]
            Which is: &quot;(null)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952217</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-01 13:47:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/108753838&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952227</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-05-01 14:30:32 -0700</bug_when>
    <thetext>I was able to reproduce the failure at Ventura Debug ToT running the test as follows:


run-api-tests TestWebKitAPI.TextManipulation.CompleteTextManipulationAddsOverflowHiddenToAvoidBreakingLayout 


I was also able to bisect to a regression point. This was failing at 263286@Main, but passed at 263285@Main. So it appears that https://commits.webkit.org/263286@main caused this test to crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952788</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-05-03 17:07:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13426</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953191</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-05 09:03:50 -0700</bug_when>
    <thetext>Committed 263722@main (3a9fba1a0f45): &lt;https://commits.webkit.org/263722@main&gt;

Reviewed commits have been landed. Closing PR #13426 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>