<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->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->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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rhodovan.u-szeged@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&action=edit" title="Test">[details]</a></span>
Test
Load the attached test with debug MiniBrowser:
<html hidden>
<script>a</script>
<style>
* {
display: block
}
</style>
<dl draggable="true">
<script>
document.designMode = 'on';
document.execCommand("selectAll", null);
document.execCommand("insertText" , "a");
</script>
OS: Ubuntu 14.10 x86_64
Checked build: debug EFL
Checked version: 9fa8210
Backtrace:
ASSERTION FAILED: node->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<WebCore::CompositeEditCommand>, WebCore::VisibleSelection const&)
5 0x7fe36a8a2065 WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&, bool)
6 0x7fe36a8a4bbc WebCore::TypingCommandLineOperation::operator()(unsigned long, unsigned long, bool) const
7 0x7fe36a8a51b2 void WebCore::forEachLineInString<WebCore::TypingCommandLineOperation>(WTF::String const&, WebCore::TypingCommandLineOperation const&)
8 0x7fe36a8a1f8f WebCore::TypingCommand::insertText(WTF::String const&, bool)
9 0x7fe36a8a1a40 WebCore::TypingCommand::doApply()
10 0x7fe36b9f3d8a WebCore::CompositeEditCommand::apply()
11 0x7fe36b9f3b3b WebCore::applyCommand(WTF::PassRefPtr<WebCore::CompositeEditCommand>)
12 0x7fe36ba207f3 WebCore::TextInsertionBaseCommand::applyTextInsertionCommand(WebCore::Frame*, WTF::PassRefPtr<WebCore::TextInsertionBaseCommand>, WebCore::VisibleSelection const&, WebCore::VisibleSelection const&)
13 0x7fe36a8a101e WebCore::TypingCommand::insertText(WebCore::Document&, WTF::String const&, WebCore::VisibleSelection const&, unsigned int, WebCore::TypingCommand::TextCompositionType)
14 0x7fe36a8a0ce0 WebCore::TypingCommand::insertText(WebCore::Document&, WTF::String const&, unsigned int, WebCore::TypingCommand::TextCompositionType)
15 0x7fe36a85937f
16 0x7fe36a85ccde WebCore::Editor::Command::execute(WTF::String const&, WebCore::Event*) const
17 0x7fe36a70146d WebCore::Document::execCommand(WTF::String const&, bool, WTF::String const&)
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<WebCore::TypingCommandLineOperation> (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>