<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: !needsStyleRecalc() || !document().childNeedsStyleRecalc() in WebCore::Element::isFocusable"
   href="https://bugs.webkit.org/show_bug.cgi?id=151604">151604</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASSERTION FAILED: !needsStyleRecalc() || !document().childNeedsStyleRecalc() in WebCore::Element::isFocusable
          </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>HTML Editing
          </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>akling&#64;apple.com, koivisto&#64;iki.fi
          </td>
        </tr>

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

Load the attached test with debug MiniBrowser:

&lt;script&gt;
window.onload = function() {
    document.execCommand('selectAll');
    document.designMode = 'on';
    document.execCommand('indent');

    document.getElementById('id_0').focus();
    document.getElementById('id_1').focus();
}
&lt;/script&gt;
a
&lt;h2 contenteditable&gt;a
    &lt;canvas&gt;
        &lt;dt&gt;
            &lt;meter&gt;
                &lt;select id=&quot;id_0&quot;&gt;&lt;/select&gt;
            &lt;/meter&gt;
        &lt;/dt&gt;
    &lt;/canvas&gt;
&lt;/h2&gt;

OS: Ubuntu 15.10 x86_64
Checked build: debug EFL
Checked version: 79922a5


Backtrace:

ASSERTION FAILED: !needsStyleRecalc() || !document().childNeedsStyleRecalc()
../../Source/WebCore/dom/Element.cpp(477) : virtual bool WebCore::Element::isFocusable() const
1   0x7fd931ba182c WTFCrash
2   0x7fd9301922f0 WebCore::Element::isFocusable() const
3   0x7fd930354bb7 WebCore::HTMLFormControlElement::isFocusable() const
4   0x7fd93012a2de WebCore::Document::setFocusedElement(WTF::PassRefPtr&lt;WebCore::Element&gt;, WebCore::FocusDirection)
5   0x7fd9306c0d77 WebCore::FocusController::setFocusedElement(WebCore::Element*, WTF::PassRefPtr&lt;WebCore::Frame&gt;, WebCore::FocusDirection)
6   0x7fd930199967 WebCore::Element::focus(bool, WebCore::FocusDirection)
7   0x7fd930eae4ea WebCore::jsElementPrototypeFunctionFocus(JSC::ExecState*)
8   0x7fd8cbfff0c8
Aborted (core dumped)

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fd931ba1831 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321     *(int *)(uintptr_t)0xbbadbeef = 0;
[Current thread is 1 (Thread 0x7fd9356eea80 (LWP 26338))]
#0  0x00007fd931ba1831 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007fd9301922f0 in WebCore::Element::isFocusable (this=0x7fd9112b8980) at ../../Source/WebCore/dom/Element.cpp:477
#2  0x00007fd930354bb7 in WebCore::HTMLFormControlElement::isFocusable (this=0x7fd9112b8980) at ../../Source/WebCore/html/HTMLFormControlElement.cpp:345
#3  0x00007fd93012a2de in WebCore::Document::setFocusedElement (this=0x7fd91101d900, prpNewFocusedElement=..., direction=WebCore::FocusDirectionNone) at ../../Source/WebCore/dom/Document.cpp:3756
#4  0x00007fd9306c0d77 in WebCore::FocusController::setFocusedElement (this=0x7fd9113eb0f0, element=0x7fd9112b8980, newFocusedFrame=..., direction=WebCore::FocusDirectionNone) at ../../Source/WebCore/page/FocusController.cpp:676
#5  0x00007fd930199967 in WebCore::Element::focus (this=0x7fd9112b8980, restorePreviousSelection=true, direction=WebCore::FocusDirectionNone) at ../../Source/WebCore/dom/Element.cpp:2211
#6  0x00007fd930eae4ea in WebCore::jsElementPrototypeFunctionFocus (state=0x7fff143c1da0) at DerivedSources/WebCore/JSElement.cpp:5075
#7  0x00007fd8cbfff0c8 in ?? ()
#8  0x00007fff143c1e20 in ?? ()
#9  0x00007fd92537e636 in llint_entry () from webkit/WebKitBuild/Debug/lib/libjavascriptcore_efl.so.1
Backtrace stopped: frame did not save the PC</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>