[Webkit-unassigned] [Bug 151604] New: ASSERTION FAILED: !needsStyleRecalc() || !document().childNeedsStyleRecalc() in WebCore::Element::isFocusable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 25 07:46:14 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151604

            Bug ID: 151604
           Summary: ASSERTION FAILED: !needsStyleRecalc() ||
                    !document().childNeedsStyleRecalc() in
                    WebCore::Element::isFocusable
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rhodovan.u-szeged at partner.samsung.com
                CC: akling at apple.com, koivisto at iki.fi
            Blocks: 116980

Created attachment 266163
  --> https://bugs.webkit.org/attachment.cgi?id=266163&action=review
Test

Load the attached test with debug MiniBrowser:

<script>
window.onload = function() {
    document.execCommand('selectAll');
    document.designMode = 'on';
    document.execCommand('indent');

    document.getElementById('id_0').focus();
    document.getElementById('id_1').focus();
}
</script>
a
<h2 contenteditable>a
    <canvas>
        <dt>
            <meter>
                <select id="id_0"></select>
            </meter>
        </dt>
    </canvas>
</h2>

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<WebCore::Element>, WebCore::FocusDirection)
5   0x7fd9306c0d77 WebCore::FocusController::setFocusedElement(WebCore::Element*, WTF::PassRefPtr<WebCore::Frame>, 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151125/484ef204/attachment-0001.html>


More information about the webkit-unassigned mailing list