[Webkit-unassigned] [Bug 151090] New: ASSERTION FAILED: node->parentNode() in WebCore::positionInParentBeforeNode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 10 05:05:29 PST 2015


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

            Bug ID: 151090
           Summary: ASSERTION FAILED: node->parentNode() in
                    WebCore::positionInParentBeforeNode
    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
            Blocks: 116980

Created attachment 265168
  --> https://bugs.webkit.org/attachment.cgi?id=265168&action=review
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

-- 
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/20151110/1a2d0d0d/attachment.html>


More information about the webkit-unassigned mailing list