<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>127340</bug_id>
          
          <creation_ts>2014-01-21 05:14:41 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: container-&gt;renderer() in WebCore::CompositeEditCommand::appendBlockPlaceholder</short_desc>
          <delta_ts>2024-01-22 15:15:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>sullivan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>970221</commentid>
    <comment_count>0</comment_count>
      <attachid>221735</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-01-21 05:14:41 -0800</bug_when>
    <thetext>Created attachment 221735
Test case

The failing test:

&lt;body style=&quot;-webkit-flow-from: foo; &quot;&gt; 
&lt;script&gt; 
	document.designMode=&quot;on&quot;; 
	document.execCommand(&quot;selectall&quot;);  
	document.execCommand(&quot;insertparagraph&quot;); 
&lt;/script&gt;


The backtrace:

ASSERTION FAILED: container-&gt;renderer()
/home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/CompositeEditCommand.cpp(912) : WTF::PassRefPtr&lt;WebCore::Node&gt; WebCore::CompositeEditCommand::appendBlockPlaceholder(WTF::PassRefPtr&lt;WebCore::Element&gt;)
1   0x7ffff5c172a1 WTFCrash
2   0x7ffff0a7c883 WebCore::CompositeEditCommand::appendBlockPlaceholder(WTF::PassRefPtr&lt;WebCore::Element&gt;)
3   0x7ffff0ac8e16 WebCore::InsertParagraphSeparatorCommand::doApply()
4   0x7ffff0a78e94 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
5   0x7ffff0af551a WebCore::TypingCommand::insertParagraphSeparator()
6   0x7ffff0af4ef5 WebCore::TypingCommand::doApply()
7   0x7ffff0a78c54 WebCore::CompositeEditCommand::apply()
8   0x7ffff0a78a4c WebCore::applyCommand(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;)
9   0x7ffff0af4c30 WebCore::TypingCommand::insertParagraphSeparator(WebCore::Document&amp;, unsigned int)
10  0x7ffff0aaeea1
11  0x7ffff0ab1f22 WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const
12  0x7ffff0976ab2 WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;)
13  0x7ffff1812910 WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
14  0x7fff9d5640e5

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5c172a6 in WTFCrash () at /home/reni/Data/REPOS/webkit_sec/Source/WTF/wtf/Assertions.cpp:333
333	    *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb) bt
#0  0x00007ffff5c172a6 in WTFCrash () at /home/reni/Data/REPOS/webkit_sec/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007ffff0a7c883 in WebCore::CompositeEditCommand::appendBlockPlaceholder (this=0x12244c0, container=...)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/CompositeEditCommand.cpp:912
#2  0x00007ffff0ac8e16 in WebCore::InsertParagraphSeparatorCommand::doApply (this=0x12244c0)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp:222
#3  0x00007ffff0a78e94 in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x1218800, prpCommand=...)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/CompositeEditCommand.cpp:278
#4  0x00007ffff0af551a in WebCore::TypingCommand::insertParagraphSeparator (this=0x1218800)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/TypingCommand.cpp:395
#5  0x00007ffff0af4ef5 in WebCore::TypingCommand::doApply (this=0x1218800) at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/TypingCommand.cpp:272
#6  0x00007ffff0a78c54 in WebCore::CompositeEditCommand::apply (this=0x1218800)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/CompositeEditCommand.cpp:227
#7  0x00007ffff0a78a4c in WebCore::applyCommand (command=...) at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/CompositeEditCommand.cpp:182
#8  0x00007ffff0af4c30 in WebCore::TypingCommand::insertParagraphSeparator (document=..., options=0)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/TypingCommand.cpp:219
#9  0x00007ffff0aaeea1 in WebCore::executeInsertParagraph (frame=...) at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/EditorCommand.cpp:557
#10 0x00007ffff0ab1f22 in WebCore::Editor::Command::execute (this=0x7fffffffb110, parameter=..., triggeringEvent=0x0)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/editing/EditorCommand.cpp:1740
#11 0x00007ffff0976ab2 in WebCore::Document::execCommand (this=0x11c7fa0, commandName=..., userInterface=false, value=...)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/dom/Document.cpp:4220
#12 0x00007ffff1812910 in WebCore::jsDocumentPrototypeFunctionExecCommand (exec=0x7fff93d8bf48)
    at /home/reni/Data/REPOS/webkit_sec/WebKitBuild/Debug/DerivedSources/WebCore/JSDocument.cpp:3369
#13 0x00007fff9d5640e5 in ?? ()
#14 0x00007fff93d8bf98 in ?? ()
#15 0x00007ffff5c05421 in llint_op_call () from /home/reni/Data/REPOS/webkit_sec/WebKitBuild/Debug/lib/libjavascriptcore_efl.so.0
#16 0x00007fff9d5648e0 in ?? ()
#17 0x0000000001141690 in ?? ()
#18 0x0000000001150ce0 in ?? ()
#19 0x00007fffed3ea9a0 in thread_context_stack () from /home/reni/Data/REPOS/webkit_sec/WebKitBuild/Dependencies/Root/lib64/libglib-2.0.so.0
#20 0x0000000001158030 in ?? ()
#21 0x00007ffff16b79a0 in WebCore::JSDOMWindowBase::supportsProfiling (object=0x7fff9d5648e0)
    at /home/reni/Data/REPOS/webkit_sec/Source/WebCore/bindings/js/JSDOMWindowBase.cpp:125
#22 0x00007fffffffb2a0 in ?? ()
#23 0x00007ffff59c7864 in JSC::JITCode::execute (this=0xf0458b4832eb0000, vm=0xb8077500f07d, protoCallFrame=0x8348f0458948fed4, topOfStack=0x1a36e8c7894860c0)
    at /home/reni/Data/REPOS/webkit_sec/Source/JavaScriptCore/jit/JITCode.cpp:48
Backtrace stopped: previous frame inner to this frame (corrupt stack?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217140</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-03 13:49:36 -0700</bug_when>
    <thetext>This still occurs under r204037.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217144</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-08-03 13:50:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/27685003&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926971</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-20 10:44:28 -0800</bug_when>
    <thetext>I am not able to reproduce this assert failed using attached test case in Minibrowser WK2 Debug build based of 259136@main.

Just wanted to update. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006685</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2024-01-22 15:15:29 -0800</bug_when>
    <thetext>Closing based on Ahmad&apos;s testing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>221735</attachid>
            <date>2014-01-21 05:14:41 -0800</date>
            <delta_ts>2014-01-21 05:14:41 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>lastCrash.html</filename>
            <type>text/html</type>
            <size>169</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PGJvZHkgc3R5bGU9Ii13ZWJraXQtZmxvdy1mcm9tOiBmb287ICI+IAo8c2NyaXB0PiAKCWRvY3Vt
ZW50LmRlc2lnbk1vZGU9Im9uIjsgCglkb2N1bWVudC5leGVjQ29tbWFuZCgic2VsZWN0YWxsIik7
ICAKCWRvY3VtZW50LmV4ZWNDb21tYW5kKCJpbnNlcnRwYXJhZ3JhcGgiKTsgCjwvc2NyaXB0Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>