<?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>221492</bug_id>
          
          <creation_ts>2021-02-05 11:05:33 -0800</creation_ts>
          <short_desc>ASSERT NOT REACHED in WebCore::Layout::LineBuilder::candidateContentForLine</short_desc>
          <delta_ts>2021-02-06 07:23:05 -0800</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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1726197</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-02-05 11:05:33 -0800</bug_when>
    <thetext>The following two tests are asserting on macOS debug WK2 bots:

fast/layoutformattingcontext/float-in-inline-context-simple.html
fast/layoutformattingcontext/floats-shrinking-line-simple.html

https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Flayoutformattingcontext%2Ffloat-in-inline-context-simple.html&amp;test=fast%2Flayoutformattingcontext%2Ffloats-shrinking-line-simple.html

SHOULD NEVER BE REACHED
./layout/inlineformatting/InlineLineBuilder.cpp(537) : auto WebCore::Layout::LineBuilder::candidateContentForLine(WebCore::Layout::LineCandidate &amp;, size_t, const WebCore::Layout::LineBuilder::InlineItemRange &amp;, size_t, WebCore::InlineLayoutUnit)::(anonymous class)::operator()() const
1   0x38ba950f9 WTFCrash
2   0x368076e2b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x36bcad701 WebCore::Layout::LineBuilder::candidateContentForLine(WebCore::Layout::LineCandidate&amp;, unsigned long, WebCore::Layout::LineBuilder::InlineItemRange const&amp;, unsigned long, float)::$_20::operator()() const
4   0x36bcab32b WebCore::Layout::LineBuilder::candidateContentForLine(WebCore::Layout::LineCandidate&amp;, unsigned long, WebCore::Layout::LineBuilder::InlineItemRange const&amp;, unsigned long, float)
5   0x36bcaa422 WebCore::Layout::LineBuilder::placeInlineContent(WebCore::Layout::LineBuilder::InlineItemRange const&amp;, unsigned long)
6   0x36bc9d89a WebCore::Layout::LineBuilder::layoutInlineContent(WebCore::Layout::LineBuilder::InlineItemRange const&amp;, unsigned long, WebCore::Layout::InlineRect const&amp;, bool)
7   0x36bc9cd05 WebCore::Layout::InlineFormattingContext::lineLayout(WTF::Vector&lt;WebCore::Layout::InlineItem, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WebCore::Layout::LineBuilder::InlineItemRange, WebCore::Layout::FormattingContext::ConstraintsForInFlowContent const&amp;)
8   0x36bc9bc34 WebCore::Layout::InlineFormattingContext::layoutInFlowContent(WebCore::Layout::InvalidationState&amp;, WebCore::Layout::FormattingContext::ConstraintsForInFlowContent const&amp;)
9   0x36bc60858 WebCore::Layout::BlockFormattingContext::layoutInFlowContent(WebCore::Layout::InvalidationState&amp;, WebCore::Layout::FormattingContext::ConstraintsForInFlowContent const&amp;)
10  0x36bc416f7 WebCore::Layout::LayoutContext::layoutFormattingContextSubtree(WebCore::Layout::ContainerBox const&amp;, WebCore::Layout::InvalidationState&amp;)
11  0x36bc413c7 WebCore::Layout::LayoutContext::layoutWithPreparedRootGeometry(WebCore::Layout::InvalidationState&amp;)
12  0x36bc4126b WebCore::Layout::LayoutContext::layout(WebCore::LayoutSize const&amp;, WebCore::Layout::InvalidationState&amp;)
13  0x36c03a4cd WebCore::FrameViewLayoutContext::layoutUsingFormattingContext()
14  0x36c01b4dd WebCore::FrameViewLayoutContext::layout()
15  0x36b0c7036 WebCore::Document::implicitClose()
16  0x36bde213b WebCore::FrameLoader::checkCallImplicitClose()
17  0x36bde1b6a WebCore::FrameLoader::checkCompleted()
18  0x36bddfc57 WebCore::FrameLoader::finishedParsing()
19  0x36b0dbd36 WebCore::Document::finishedParsing()
20  0x36b8d5f68 WebCore::HTMLConstructionSite::finishedParsing()
21  0x36b91ed97 WebCore::HTMLTreeBuilder::finished()
22  0x36b8dd418 WebCore::HTMLDocumentParser::end()
23  0x36b8db288 WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd()
24  0x36b8dafb7 WebCore::HTMLDocumentParser::prepareToStopParsing()
25  0x36b8dd482 WebCore::HTMLDocumentParser::attemptToEnd()
26  0x36b8dd559 WebCore::HTMLDocumentParser::finish()
27  0x36bdb3aa4 WebCore::DocumentWriter::end()
28  0x36bd61bb4 WebCore::DocumentLoader::finishedLoading()
29  0x36bd61551 WebCore::DocumentLoader::notifyFinished(WebCore::CachedResource&amp;, WebCore::NetworkLoadMetrics const&amp;)
30  0x36bf09a7a WebCore::CachedResource::checkNotify(WebCore::NetworkLoadMetrics const&amp;)
31  0x36bf0551c WebCore::CachedResource::finishLoading(WebCore::SharedBuffer*, WebCore::NetworkLoadMetrics const&amp;)
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726198</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-02-05 11:06:46 -0800</bug_when>
    <thetext>The assert was added with https://trac.webkit.org/changeset/272412/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726199</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-05 11:07:00 -0800</bug_when>
    <thetext>&lt;rdar://problem/74032439&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726316</commentid>
    <comment_count>3</comment_count>
      <attachid>419481</attachid>
    <who name="alan">zalan</who>
    <bug_when>2021-02-05 16:10:11 -0800</bug_when>
    <thetext>Created attachment 419481
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726388</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-02-06 07:23:02 -0800</bug_when>
    <thetext>Committed r272461: &lt;https://commits.webkit.org/r272461&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 419481.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>419481</attachid>
            <date>2021-02-05 16:10:11 -0800</date>
            <delta_ts>2021-02-06 07:23:03 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-221492-20210205161010.patch</filename>
            <type>text/plain</type>
            <size>2165</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjcyNDE2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNGZmMGYwMzUwZDU1YmM4
Nzk2ODBlNjRmMjZmNGMyZWJmMTUwNDBlOC4uZTFlYTVmNDQ5ZWE5NTYzYzU5ZTdkYzJjMTYzZmMy
YzFiOTk3M2NkZCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1N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