<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ASSERTION FAILED: inlineBox == m_inlineBoxWrapper in WebCore::RenderLineBreak::localCaretRect"
   href="https://bugs.webkit.org/show_bug.cgi?id=152111">152111</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASSERTION FAILED: inlineBox == m_inlineBoxWrapper in WebCore::RenderLineBreak::localCaretRect
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Layout and Rendering
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rhodovan.u-szeged&#64;partner.samsung.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>koivisto&#64;iki.fi, simon.fraser&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>116980
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=267080" name="attach_267080" title="Test">attachment 267080</a> <a href="attachment.cgi?id=267080&amp;action=edit" title="Test">[details]</a></span>
Test

Load the attached test with debug MiniBrowser:

&lt;script&gt;
window.onload = function() {
    document.getElementById('id_7').focus()
}
&lt;/script&gt;
&lt;em id=&quot;id_7&quot; contenteditable&gt;
&lt;var&gt;&lt;wbr&gt;&lt;svg&gt;&lt;/svg&gt;

OS: Ubuntu 15.10 x86_64
Checked build: debug EFL
Checked version: 2559fac


Backtrace:
ASSERTION FAILED: inlineBox == m_inlineBoxWrapper
../../Source/WebCore/rendering/RenderLineBreak.cpp(172) : virtual WebCore::LayoutRect WebCore::RenderLineBreak::localCaretRect(WebCore::InlineBox*, int, WebCore::LayoutUnit*)
1   0x7fa47cbf6fb8 WTFCrash
2   0x7fa47bab77ea WebCore::RenderLineBreak::localCaretRect(WebCore::InlineBox*, int, WebCore::LayoutUnit*)
3   0x7fa47b32f81e WebCore::VisiblePosition::localCaretRect(WebCore::RenderObject*&amp;) const
4   0x7fa47b349756 WebCore::localCaretRectInRendererForCaretPainting(WebCore::VisiblePosition const&amp;, WebCore::RenderBlock*&amp;)
5   0x7fa47b2f0966 WebCore::CaretBase::updateCaretRect(WebCore::Document*, WebCore::VisiblePosition const&amp;)
6   0x7fa47b2f0ded WebCore::FrameSelection::recomputeCaretRect()
7   0x7fa47b2f36c4 WebCore::FrameSelection::updateAppearance()
8   0x7fa47b2e9985 WebCore::FrameSelection::updateAndRevealSelection(WebCore::AXTextStateChangeIntent const&amp;)
9   0x7fa47b2e98aa WebCore::FrameSelection::setSelection(WebCore::VisibleSelection const&amp;, unsigned int, WebCore::AXTextStateChangeIntent, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity)
10  0x7fa47b1ee6ea WebCore::Element::updateFocusAppearance(WebCore::SelectionRestorationMode, WebCore::SelectionRevealMode)
11  0x7fa47b1ee41f WebCore::Element::focus(bool, WebCore::FocusDirection)
12  0x7fa47bf0584c WebCore::jsElementPrototypeFunctionFocus(JSC::ExecState*)
13  0x7fa417fff0c8
Aborted (core dumped)

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fa47cbf6fbd in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321     *(int *)(uintptr_t)0xbbadbeef = 0;
[Current thread is 1 (Thread 0x7fa48072ca80 (LWP 9860))]
#0  0x00007fa47cbf6fbd in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007fa47bab77ea in WebCore::RenderLineBreak::localCaretRect (this=0x7fa45c5e2c98, inlineBox=0x0, caretOffset=0, extraWidthToEndOfLine=0x0) at ../../Source/WebCore/rendering/RenderLineBreak.cpp:172
#2  0x00007fa47b32f81e in WebCore::VisiblePosition::localCaretRect (this=0x7ffcddd36490, renderer=&#64;0x7ffcddd36360: 0x7fa45c5e2c98) at ../../Source/WebCore/editing/VisiblePosition.cpp:619
#3  0x00007fa47b349756 in WebCore::localCaretRectInRendererForCaretPainting (caretPosition=..., caretPainter=&#64;0x7ffcddd363e0: 0x7fa45c568230) at ../../Source/WebCore/editing/htmlediting.cpp:1330
#4  0x00007fa47b2f0966 in WebCore::CaretBase::updateCaretRect (this=0x7fa45c568230, document=0x7fa45c41d9c0, caretPosition=...) at ../../Source/WebCore/editing/FrameSelection.cpp:1415
#5  0x00007fa47b2f0ded in WebCore::FrameSelection::recomputeCaretRect (this=0x7fa45c568230) at ../../Source/WebCore/editing/FrameSelection.cpp:1469
#6  0x00007fa47b2f36c4 in WebCore::FrameSelection::updateAppearance (this=0x7fa45c568230) at ../../Source/WebCore/editing/FrameSelection.cpp:1889
#7  0x00007fa47b2e9985 in WebCore::FrameSelection::updateAndRevealSelection (this=0x7fa45c568230, intent=...) at ../../Source/WebCore/editing/FrameSelection.cpp:378
#8  0x00007fa47b2e98aa in WebCore::FrameSelection::setSelection (this=0x7fa45c568230, selection=..., options=6, intent=..., align=WebCore::FrameSelection::AlignCursorOnScrollIfNeeded, granularity=WebCore::CharacterGranularity) at ../../Source/WebCore/editing/FrameSelection.cpp:352
#9  0x00007fa47b1ee6ea in WebCore::Element::updateFocusAppearance (this=0x7fa45c5e2a28, revealMode=WebCore::SelectionRevealMode::Reveal) at ../../Source/WebCore/dom/Element.cpp:2268
#10 0x00007fa47b1ee41f in WebCore::Element::focus (this=0x7fa45c5e2a28, restorePreviousSelection=true, direction=WebCore::FocusDirectionNone) at ../../Source/WebCore/dom/Element.cpp:2233
#11 0x00007fa47bf0584c in WebCore::jsElementPrototypeFunctionFocus (state=0x7ffcddd368f0) at DerivedSources/WebCore/JSElement.cpp:5075
#12 0x00007fa417fff0c8 in ?? ()
#13 0x00007ffcddd36970 in ?? ()
#14 0x00007fa4703be57c in llint_entry () from webkit/WebKitBuild/Debug/lib/libjavascriptcore_efl.so.1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>