<?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>271132</bug_id>
          
          <creation_ts>2024-03-17 14:07:13 -0700</creation_ts>
          <short_desc>REGRESSION(276246@main): ASSERTION FAILED: contentHasNegativeImplicitMargin</short_desc>
          <delta_ts>2024-03-28 16:06:10 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=271113</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2021664</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-03-17 14:07:13 -0700</bug_when>
    <thetext>Only WinCairo is crashing.

Regressions: Unexpected crashes (3)
  fast/text/crash-grapheme-cluster-spanning-adjacent-textitems.html [ Crash ]
  fast/text/minimum-width-break-on-empty-content-crash.html [ Crash ]
  fast/text/word-break-column-gap-display-flex-utf16-surrogates.html [ Crash ]

History:
  https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Ftext%2Fword-break-column-gap-display-flex-utf16-surrogates.html&amp;test=fast%2Ftext%2Fminimum-width-break-on-empty-content-crash.html&amp;test=fast%2Ftext%2Fcrash-grapheme-cluster-spanning-adjacent-textitems.html&amp;platform=wincairo&amp;style=debug


https://build.webkit.org/results/WinCairo-64-bit-Debug-Tests/276246@main%20(22114)/fast/text/minimum-width-break-on-empty-content-crash-crash-log.txt

ASSERTION FAILED: contentHasNegativeImplicitMargin
C:\BW\WinCairo-64-bit-Debug-Build\build\Source\WebCore\layout/formattingContexts/inline/InlineFormattingContext.cpp(201) : minimumMaximumContentSize
1   00007FF8FB3A1CA9 WTFCrash
2   00007FF8D9B32F0D WTFCrashWithInfo
3   00007FF8DD1CFD14 WebCore::Layout::InlineFormattingContext::minimumMaximumContentSize
4   00007FF8DD2BE438 WebCore::LayoutIntegration::LineLayout::computeIntrinsicWidthConstraints
5   00007FF8DDCC2CC4 WebCore::RenderBlockFlow::tryComputePreferredWidthsUsingModernPath
6   00007FF8DDCA9975 WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths
7   00007FF8DDCA96AC WebCore::RenderBlockFlow::computeIntrinsicLogicalWidths
8   00007FF8DDC9EB4E WebCore::RenderBlock::computePreferredLogicalWidths
9   00007FF8DDCCA469 WebCore::RenderBox::maxPreferredLogicalWidth
10  00007FF8DDCC69C3 WebCore::RenderBox::computeLogicalWidthInFragmentUsing
11  00007FF8DDC91941 WebCore::RenderBox::computeLogicalWidthInFragment
12  00007FF8DDCD2250 WebCore::RenderBox::updateLogicalWidth
13  00007FF8DDC8F49A WebCore::RenderBlock::recomputeLogicalWidth
14  00007FF8DDCAB517 WebCore::RenderBlockFlow::recomputeLogicalWidthAndColumnWidth
15  00007FF8DDCAC019 WebCore::RenderBlockFlow::layoutBlock
16  00007FF8DDC8F26E WebCore::RenderBlock::layout
17  00007FF8DDD42C99 WebCore::RenderElement::layoutIfNeeded
18  00007FF8DDCB0CF2 WebCore::RenderBlockFlow::layoutModernLines
19  00007FF8DDCAE766 WebCore::RenderBlockFlow::layoutInlineChildren
20  00007FF8DDCAD5FF WebCore::RenderBlockFlow::layoutInFlowChildren
21  00007FF8DDCAC2FA WebCore::RenderBlockFlow::layoutBlock
22  00007FF8DDC8F26E WebCore::RenderBlock::layout
23  00007FF8DDCAFA03 WebCore::RenderBlockFlow::layoutBlockChild
24  00007FF8DDCAEB4A WebCore::RenderBlockFlow::layoutBlockChildren
25  00007FF8DDCAD63E WebCore::RenderBlockFlow::layoutInFlowChildren
26  00007FF8DDCAC2FA WebCore::RenderBlockFlow::layoutBlock
27  00007FF8DDC8F26E WebCore::RenderBlock::layout
28  00007FF8DDCAFA03 WebCore::RenderBlockFlow::layoutBlockChild
29  00007FF8DDCAEB4A WebCore::RenderBlockFlow::layoutBlockChildren
30  00007FF8DDCAD63E WebCore::RenderBlockFlow::layoutInFlowChildren
31  00007FF8DDCAC2FA WebCore::RenderBlockFlow::layoutBlock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021665</commentid>
    <comment_count>1</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2024-03-17 14:11:06 -0700</bug_when>
    <thetext>&gt;Only WinCairo is crashing.
this is odd! Let me take a look at those tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021666</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2024-03-17 14:24:13 -0700</bug_when>
    <thetext>Didn&apos;t see anything peculiar.
It&apos;d be interesting to find out what else triggers inconsistent min/max results on WinCairo -maybe we just need fuzzy matching?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023533</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-24 14:08:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/125322599&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023546</commentid>
    <comment_count>4</comment_count>
      <attachid>470585</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-03-24 18:40:17 -0700</bug_when>
    <thetext>Created attachment 470585
WIP patch for fast/text/minimum-width-break-on-empty-content-crash.html

For fast/text/minimum-width-break-on-empty-content-crash.html, Font::widthForGlyph of &quot;\n&quot; glyph returns 6 on Windows. This is a width of the space glyph.
It should be 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024599</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-03-28 16:05:58 -0700</bug_when>
    <thetext>276774@main fixed fast/text/minimum-width-break-on-empty-content-crash.html problem.
276797@main fixed fast/text/word-break-column-gap-display-flex-utf16-surrogates.html problem.
fast/text/crash-grapheme-cluster-spanning-adjacent-textitems.html is still crashing for Windows port.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>470585</attachid>
            <date>2024-03-24 18:40:17 -0700</date>
            <delta_ts>2024-03-28 16:06:10 -0700</delta_ts>
            <desc>WIP patch for fast/text/minimum-width-break-on-empty-content-crash.html</desc>
            <filename>wip.patch</filename>
            <type>text/plain</type>
            <size>785</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL0ZvbnQuY3BwIGIv
U291cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3MvRm9udC5jcHAKaW5kZXggYTU3NTA5MTQy
MTdmLi5iY2MyYTY2NWFiZDUgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dy
YXBoaWNzL0ZvbnQuY3BwCisrKyBiL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL0Zv
bnQuY3BwCkB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