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

        <tr>
          <th>Summary</th>
          <td>ASSERTION FAILED: node-&gt;parentNode() in WebCore::positionInParentBeforeNode
          </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>Blocks</th>
          <td>116980
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=265168" name="attach_265168" title="Test">attachment 265168</a> <a href="attachment.cgi?id=265168&amp;action=edit" title="Test">[details]</a></span>
Test

Load the attached test with debug MiniBrowser:

&lt;html hidden&gt;
&lt;script&gt;a&lt;/script&gt;
&lt;style&gt;
* {
    display: block
}
&lt;/style&gt;
&lt;dl draggable=&quot;true&quot;&gt;
&lt;script&gt;
    document.designMode = 'on';
    document.execCommand(&quot;selectAll&quot;, null); 
    document.execCommand(&quot;insertText&quot; , &quot;a&quot;);
&lt;/script&gt;


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


Backtrace:

ASSERTION FAILED: node-&gt;parentNode()
../../Source/WebCore/dom/Position.h(275) : WebCore::Position WebCore::positionInParentBeforeNode(const WebCore::Node*)
1   0x7fe3645cbe17 WTFCrash
2   0x7fe36a60c527 WebCore::positionInParentBeforeNode(WebCore::Node const*)
3   0x7fe36ba15533 WebCore::InsertTextCommand::doApply()
4   0x7fe36b9f4205 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;, WebCore::VisibleSelection const&amp;)
5   0x7fe36a8a2065 WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&amp;, bool)
6   0x7fe36a8a4bbc WebCore::TypingCommandLineOperation::operator()(unsigned long, unsigned long, bool) const
7   0x7fe36a8a51b2 void WebCore::forEachLineInString&lt;WebCore::TypingCommandLineOperation&gt;(WTF::String const&amp;, WebCore::TypingCommandLineOperation const&amp;)
8   0x7fe36a8a1f8f WebCore::TypingCommand::insertText(WTF::String const&amp;, bool)
9   0x7fe36a8a1a40 WebCore::TypingCommand::doApply()
10  0x7fe36b9f3d8a WebCore::CompositeEditCommand::apply()
11  0x7fe36b9f3b3b WebCore::applyCommand(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;)
12  0x7fe36ba207f3 WebCore::TextInsertionBaseCommand::applyTextInsertionCommand(WebCore::Frame*, WTF::PassRefPtr&lt;WebCore::TextInsertionBaseCommand&gt;, WebCore::VisibleSelection const&amp;, WebCore::VisibleSelection const&amp;)
13  0x7fe36a8a101e WebCore::TypingCommand::insertText(WebCore::Document&amp;, WTF::String const&amp;, WebCore::VisibleSelection const&amp;, unsigned int, WebCore::TypingCommand::TextCompositionType)
14  0x7fe36a8a0ce0 WebCore::TypingCommand::insertText(WebCore::Document&amp;, WTF::String const&amp;, unsigned int, WebCore::TypingCommand::TextCompositionType)
15  0x7fe36a85937f
16  0x7fe36a85ccde WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const
17  0x7fe36a70146d WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;)
18  0x7fe36be3306b WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
19  0x7fe30bfff0c8
Aborted (core dumped)

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fe3645cbe1c in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321     *(int *)(uintptr_t)0xbbadbeef = 0;
#0  0x00007fe3645cbe1c in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007fe36a60c527 in WebCore::positionInParentBeforeNode (node=0x7fe352826a40) at ../../Source/WebCore/dom/Position.h:275
#2  0x00007fe36ba15533 in WebCore::InsertTextCommand::doApply (this=0x7fe352bd10f8) at ../../Source/WebCore/editing/InsertTextCommand.cpp:177
#3  0x00007fe36b9f4205 in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x7fe352a94000, command=..., selection=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:293
#4  0x00007fe36a8a2065 in WebCore::TypingCommand::insertTextRunWithoutNewlines (this=0x7fe352a94000, text=..., selectInsertedText=false) at ../../Source/WebCore/editing/TypingCommand.cpp:379
#5  0x00007fe36a8a4bbc in WebCore::TypingCommandLineOperation::operator() (this=0x7ffcdd8548c0, lineOffset=0, lineLength=0, isLastLine=true) at ../../Source/WebCore/editing/TypingCommand.cpp:63
#6  0x00007fe36a8a51b2 in WebCore::forEachLineInString&lt;WebCore::TypingCommandLineOperation&gt; (string=..., operation=...) at ../../Source/WebCore/editing/TextInsertionBaseCommand.h:61
#7  0x00007fe36a8a1f8f in WebCore::TypingCommand::insertText (this=0x7fe352a94000, text=..., selectInsertedText=false) at ../../Source/WebCore/editing/TypingCommand.cpp:371
#8  0x00007fe36a8a1a40 in WebCore::TypingCommand::doApply (this=0x7fe352a94000) at ../../Source/WebCore/editing/TypingCommand.cpp:281
#9  0x00007fe36b9f3d8a in WebCore::CompositeEditCommand::apply (this=0x7fe352a94000) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:227
#10 0x00007fe36b9f3b3b in WebCore::applyCommand (command=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:186
#11 0x00007fe36ba207f3 in WebCore::TextInsertionBaseCommand::applyTextInsertionCommand (frame=0x7fe352ae5000, command=..., selectionForInsertion=..., endingSelection=...) at ../../Source/WebCore/editing/TextInsertionBaseCommand.cpp:50
#12 0x00007fe36a8a101e in WebCore::TypingCommand::insertText (document=..., text=..., selectionForInsertion=..., options=0, compositionType=WebCore::TypingCommand::TextCompositionNone) at ../../Source/WebCore/editing/TypingCommand.cpp:190
#13 0x00007fe36a8a0ce0 in WebCore::TypingCommand::insertText (document=..., text=..., options=0, composition=WebCore::TypingCommand::TextCompositionNone) at ../../Source/WebCore/editing/TypingCommand.cpp:160
#14 0x00007fe36a85937f in WebCore::executeInsertText (frame=..., value=...) at ../../Source/WebCore/editing/EditorCommand.cpp:535
#15 0x00007fe36a85ccde in WebCore::Editor::Command::execute (this=0x7ffcdd854be0, parameter=..., triggeringEvent=0x0) at ../../Source/WebCore/editing/EditorCommand.cpp:1703
#16 0x00007fe36a70146d in WebCore::Document::execCommand (this=0x7fe352826a40, commandName=..., userInterface=true, value=...) at ../../Source/WebCore/dom/Document.cpp:4657
#17 0x00007fe36be3306b in WebCore::jsDocumentPrototypeFunctionExecCommand (state=0x7ffcdd854cb0) at DerivedSources/WebCore/JSDocument.cpp:5066
#18 0x00007fe30bfff0c8 in ?? ()
#19 0x00007ffcdd854d20 in ?? ()
#20 0x00007fe3645745e4 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>