<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: m_refChild-&gt;parentNode() in WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand"
   href="https://bugs.webkit.org/show_bug.cgi?id=151034">151034</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASSERTION FAILED: m_refChild-&gt;parentNode() in WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand
          </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>koivisto&#64;iki.fi, rego&#64;igalia.com
          </td>
        </tr>

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

Load the attached test with debug MiniBrowser:

&lt;html hidden&gt;
&lt;style&gt;
*  {
    display:-webkit-grid;
}
&lt;/style&gt;
&lt;script&gt;
    document.designMode = 'on';
    document.execCommand('selectAll', null);
    document.execCommand(&quot;insertParagraph&quot; , null)
&lt;/script&gt;


OS: Ubuntu 14.10 x86_64
Checked build: debug EFL
Checked version: 9fa8210


Backtrace:

ASSERTION FAILED: m_refChild-&gt;parentNode()
../../Source/WebCore/editing/InsertNodeBeforeCommand.cpp(46) : WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand(WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WebCore::ShouldAssumeContentIsAlwaysEditable, WebCore::EditAction)
1   0x7f674c106e17 WTFCrash
2   0x7f675354bedc WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand(WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WebCore::ShouldAssumeContentIsAlwaysEditable, WebCore::EditAction)
3   0x7f675353a8ab WebCore::InsertNodeBeforeCommand::create(WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WebCore::ShouldAssumeContentIsAlwaysEditable, WebCore::EditAction)
4   0x7f675352f8b9 WebCore::CompositeEditCommand::insertNodeBefore(WTF::PassRefPtr&lt;WebCore::Node&gt;, WTF::PassRefPtr&lt;WebCore::Node&gt;, WebCore::ShouldAssumeContentIsAlwaysEditable)
5   0x7f675354adfc WebCore::InsertLineBreakCommand::doApply()
6   0x7f675352f05e WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
7   0x7f675354d330 WebCore::InsertParagraphSeparatorCommand::doApply()
8   0x7f675352f05e WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
9   0x7f67523dd271 WebCore::TypingCommand::insertParagraphSeparator()
10  0x7f67523dca08 WebCore::TypingCommand::doApply()
11  0x7f675352ed8a WebCore::CompositeEditCommand::apply()
12  0x7f675352eb3b WebCore::applyCommand(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;)
13  0x7f67523dc61a WebCore::TypingCommand::insertParagraphSeparator(WebCore::Document&amp;, unsigned int)
14  0x7f6752394288
15  0x7f6752397cde WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const
16  0x7f675223c46d WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;)
17  0x7f675396e06b WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
18  0x7f66f3fff0c8
Aborted (core dumped)

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f674c106e1c in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321     *(int *)(uintptr_t)0xbbadbeef = 0;
#0  0x00007f674c106e1c in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007f675354bedc in WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand(WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WebCore::ShouldAssumeContentIsAlwaysEditable, WebCore::EditAction) (this=0x7f673a3bea80, insertChild=&lt;unknown type in webkit/WebKitBuild/Debug/lib/libewebkit2.so.1, CU 0x482db288, DIE 0x48302077&gt;, refChild=&lt;unknown type in webkit/WebKitBuild/Debug/lib/libewebkit2.so.1, CU 0x482db288, DIE 0x4830207c&gt;, shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable, editingAction=WebCore::EditActionUnspecified) at ../../Source/WebCore/editing/InsertNodeBeforeCommand.cpp:46
#2  0x00007f675353a8ab in WebCore::InsertNodeBeforeCommand::create(WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WTF::RefPtr&lt;WebCore::Node&gt;&amp;&amp;, WebCore::ShouldAssumeContentIsAlwaysEditable, WebCore::EditAction) (childToInsert=&lt;unknown type in webkit/WebKitBuild/Debug/lib/libewebkit2.so.1, CU 0x47e7cb28, DIE 0x47f576f2&gt;, childToInsertBefore=&lt;unknown type in webkit/WebKitBuild/Debug/lib/libewebkit2.so.1, CU 0x47e7cb28, DIE 0x47f576f7&gt;, shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable, editingAction=WebCore::EditActionUnspecified) at ../../Source/WebCore/editing/InsertNodeBeforeCommand.h:38
#3  0x00007f675352f8b9 in WebCore::CompositeEditCommand::insertNodeBefore (this=0x7f673a3be8c0, insertChild=..., refChild=..., shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:345
#4  0x00007f675354adfc in WebCore::InsertLineBreakCommand::doApply (this=0x7f673a3be8c0) at ../../Source/WebCore/editing/InsertLineBreakCommand.cpp:123
#5  0x00007f675352f05e in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x7f673a3b53c0, prpCommand=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:278
#6  0x00007f675354d330 in WebCore::InsertParagraphSeparatorCommand::doApply (this=0x7f673a3b53c0) at ../../Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp:176
#7  0x00007f675352f05e in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x7f673a2dd000, prpCommand=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:278
#8  0x00007f67523dd271 in WebCore::TypingCommand::insertParagraphSeparator (this=0x7f673a2dd000) at ../../Source/WebCore/editing/TypingCommand.cpp:398
#9  0x00007f67523dca08 in WebCore::TypingCommand::doApply (this=0x7f673a2dd000) at ../../Source/WebCore/editing/TypingCommand.cpp:275
#10 0x00007f675352ed8a in WebCore::CompositeEditCommand::apply (this=0x7f673a2dd000) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:227
#11 0x00007f675352eb3b in WebCore::applyCommand (command=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:186
#12 0x00007f67523dc61a in WebCore::TypingCommand::insertParagraphSeparator (document=..., options=0) at ../../Source/WebCore/editing/TypingCommand.cpp:222
#13 0x00007f6752394288 in WebCore::executeInsertParagraph (frame=...) at ../../Source/WebCore/editing/EditorCommand.cpp:524
#14 0x00007f6752397cde in WebCore::Editor::Command::execute (this=0x7fffa7e05df0, parameter=..., triggeringEvent=0x0) at ../../Source/WebCore/editing/EditorCommand.cpp:1703
#15 0x00007f675223c46d in WebCore::Document::execCommand (this=0x7f673a026a40, commandName=..., userInterface=false, value=...) at ../../Source/WebCore/dom/Document.cpp:4657
#16 0x00007f675396e06b in WebCore::jsDocumentPrototypeFunctionExecCommand (state=0x7fffa7e05ec0) at DerivedSources/WebCore/JSDocument.cpp:5066
#17 0x00007f66f3fff0c8 in ?? ()
#18 0x00007fffa7e05f30 in ?? ()
#19 0x00007f674c0af5e4 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>