<?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>178116</bug_id>
          
          <creation_ts>2017-10-10 00:21:15 -0700</creation_ts>
          <short_desc>El Capitan: Assertion failure inside RenderBlockFlow::ensureLineBoxes()</short_desc>
          <delta_ts>2023-09-05 15:39:06 -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>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1358658</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-10-10 00:21:15 -0700</bug_when>
    <thetext>stderr:
ASSERTION FAILED: didNeedLayout || logicalHeight() == oldHeight
/Volumes/Data/git-webkit/Source/WebCore/rendering/RenderBlockFlow.cpp(3661) : void WebCore::RenderBlockFlow::ensureLineBoxes()
1   0x120978ecd WTFCrash
2   0x1144cf8bd WebCore::RenderBlockFlow::ensureLineBoxes()
3   0x11479b4c0 WebCore::RenderText::ensureLineBoxes()
4   0x114405a0a WebCore::ensureLineBoxesIfNeeded(WebCore::RenderObject&amp;)
5   0x114403bcf WebCore::Position::downstream(WebCore::EditingBoundaryCrossingRule) const
6   0x112a71d36 WebCore::previousVisuallyDistinctCandidate(WebCore::Position const&amp;)
7   0x114ef5e6a WebCore::VisiblePosition::previous(WebCore::EditingBoundaryCrossingRule, bool*) const
8   0x114f02ff0 WebCore::isStartOfDocument(WebCore::VisiblePosition const&amp;)
9   0x112cf5960 WebCore::FrameSelection::selectFrameElementInParentIfFullySelected()
10  0x112cf5507 WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance(WebCore::VisibleSelection const&amp;, unsigned int, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity)
11  0x112cf3b34 WebCore::FrameSelection::setSelection(WebCore::VisibleSelection const&amp;, unsigned int, WebCore::AXTextStateChangeIntent, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity)
12  0x112cfe603 WebCore::FrameSelection::selectAll()
13  0x112aa7cf8 WebCore::executeSelectAll(WebCore::Frame&amp;, WebCore::Event*, WebCore::EditorCommandSource, WTF::String const&amp;)
14  0x112aa3993 WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const
15  0x1128f0819 WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;)
16  0x1134d1339 WebCore::jsDocumentPrototypeFunctionExecCommandBody(JSC::ExecState*, WebCore::JSDocument*, JSC::ThrowScope&amp;)
17  0x1134bb3de long long WebCore::IDLOperation&lt;WebCore::JSDocument&gt;::call&lt;&amp;(WebCore::jsDocumentPrototypeFunctionExecCommandBody(JSC::ExecState*, WebCore::JSDocument*, JSC::ThrowScope&amp;)), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::ExecState&amp;, char const*)
18  0x1134bb16c WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
19  0x2983fee01028
20  0x11f554081 llint_entry
21  0x11f554081 llint_entry
22  0x11f54c447 vmEntryToJavaScript
23  0x12025fb6e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
24  0x1202070eb JSC::Interpreter::executeProgram(JSC::SourceCode const&amp;, JSC::ExecState*, JSC::JSObject*)
25  0x1204804b7 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
26  0x120480650 JSC::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
27  0x1148b0d2b WebCore::JSMainThreadExecState::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
28  0x1148b0b18 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;, WebCore::ExceptionDetails*)
29  0x1148b0e0d WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;, WebCore::ExceptionDetails*)
30  0x1148c6032 WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&amp;)
31  0x1148c463f WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358659</commentid>
    <comment_count>1</comment_count>
      <attachid>323286</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-10-10 00:22:47 -0700</bug_when>
    <thetext>Created attachment 323286
crash.html

Place this file inside LayoutTests and run:
./Tools/Scripts/run-webkit-tests --debug --no-retry --no-new-test-results crash.html

As far as I&apos;ve tested, you can only reproduce this on OS X El Capitan (10.11). e.g. 15G31 / 10.11.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1360080</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-13 10:46:03 -0700</bug_when>
    <thetext>Weird that this appears to be OS version dependent. I tried, and couldn&apos;t reproduce on High Sierra indeed.

We should probably at least land the test case skipped on 10.11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1360173</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-10-13 13:16:13 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Weird that this appears to be OS version dependent. I tried, and couldn&apos;t
&gt; reproduce on High Sierra indeed.
&gt; 
&gt; We should probably at least land the test case skipped on 10.11.

Yeah, it&apos;s super weird. I had to install El Capitan in order to reproduce this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1360525</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-10-14 17:48:00 -0700</bug_when>
    <thetext>My guess is that it&apos;s something to do with the render theme of buttons because it&apos;s asserting as the editing code traverses into the button. If I add another div between the editable element and the button, the assertion goes away. In fact, that&apos;s how I worked around this in https://trac.webkit.org/r223195.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1360569</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2017-10-15 10:49:04 -0700</bug_when>
    <thetext>That assert is saying that results from the simple line layout path and the line box path don&apos;t match. This may be due to a bug on either path or it may be some rare case where we should not be using simple lines but are. On release something would be misrendered as a result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975243</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-03 03:47:45 -0700</bug_when>
    <thetext>I know it might not be direct assertion link but &apos;FrameSelection::selectAll&apos;, Blink fixed this potential assertion: https://chromium.googlesource.com/chromium/src.git/+/526d14e61982c269e32bb2dd9869cd9185ab3da0

https://searchfox.org/wubkat/source/Source/WebCore/editing/FrameSelection.cpp#2128</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975686</commentid>
    <comment_count>7</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-09-05 15:39:06 -0700</bug_when>
    <thetext>This is certainly not valid anymore.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>323286</attachid>
            <date>2017-10-10 00:22:47 -0700</date>
            <delta_ts>2017-10-10 00:22:47 -0700</delta_ts>
            <desc>crash.html</desc>
            <filename>crash.html</filename>
            <type>text/html</type>
            <size>642</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KPHNjcmlwdCBzcmM9InJlc291cmNlcy9qcy10
ZXN0LXByZS5qcyI+PC9zY3JpcHQ+CjxzY3JpcHQ+CgpkZXNjcmlwdGlvbignVGhpcyB0ZXN0cyBz
ZWxlY3RBbGwgaW5zaWRlIGFuIGlmcmFtZS4nKTsKanNUZXN0SXNBc3luYyA9IHRydWU7Cgpjb25z
dCBpZnJhbWUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdpZnJhbWUnKTsKZG9jdW1lbnQuYm9k
eS5hcHBlbmRDaGlsZChpZnJhbWUpOwppZnJhbWUuc3JjID0gYGRhdGE6dGV4dC9odG1sO2NoYXJz
ZXQ9dXRmLTgsPCFET0NUWVBFIGh0bWw+CjxidXR0b24+MS4gQ29weTwvYnV0dG9uPgo8ZGl2IGlk
PSJzb3VyY2UiIGNvbnRlbnRlZGl0YWJsZT5zb21lIHRleHQ8L2Rpdj4KPHNjcmlwdD4KCmZ1bmN0
aW9uIHJ1blRlc3QoKSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnc291cmNlJykuZm9j
dXMoKTsKICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCdzZWxlY3RBbGwnKTsKfQoKcnVuVGVzdCgp
OwoKPC9zY3JpYCArICdwdD4nOwoKc2V0VGltZW91dChmaW5pc2hKU1Rlc3QsIDEwMCk7Cgo8L3Nj
cmlwdD4KPHNjcmlwdCBzcmM9InJlc291cmNlcy9qcy10ZXN0LXBvc3QuanMiPjwvc2NyaXB0Pgo8
L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>