<?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>123732</bug_id>
          
          <creation_ts>2013-11-04 03:08:08 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: !m_insertChild-&gt;parentNode() in WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand</short_desc>
          <delta_ts>2022-11-17 04:48:46 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=239533</see_also>
          <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>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>noam</cc>
    
    <cc>sullivan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>946596</commentid>
    <comment_count>0</comment_count>
      <attachid>215905</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2013-11-04 03:08:08 -0800</bug_when>
    <thetext>Created attachment 215905
Test case

The failing test:

&lt;details&gt;&lt;/details&gt;
&lt;font&gt;A&lt;/font&gt;
&lt;style&gt;&lt;/style&gt;
&lt;iframe onload=&quot;   
		document.designMode=&amp;apos;on&amp;apos;;     
		document.execCommand(&amp;apos;selectall&amp;apos;);     
		document.execCommand(&amp;apos;italic&amp;apos;);
		document.execCommand(&amp;apos;RemoveFormat&amp;apos;);&quot; seamless=&quot; &quot;&gt;
&lt;/iframe&gt;


The backtrace:


Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 21412]
0x00007ffff4af0ac1 in WTFCrash () at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:342
342	    *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb) bt
#0  0x00007ffff4af0ac1 in WTFCrash () at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:342
#1  0x00007ffff335e245 in WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand (this=0x8326a0, insertChild=&lt;incomplete type&gt;, 
    refChild=&lt;incomplete type&gt;, shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/InsertNodeBeforeCommand.cpp:44
#2  0x00007ffff3318759 in WebCore::InsertNodeBeforeCommand::create (childToInsert=&lt;incomplete type&gt;, childToInsertBefore=&lt;incomplete type&gt;, 
    shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/InsertNodeBeforeCommand.h:38
#3  0x00007ffff3310118 in WebCore::CompositeEditCommand::insertNodeBefore (this=0x832020, insertChild=&lt;incomplete type&gt;, refChild=&lt;incomplete type&gt;, 
    shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:329
#4  0x00007ffff336b815 in WebCore::RemoveNodePreservingChildrenCommand::doApply (this=0x832020)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp:52
#5  0x00007ffff330fb3c in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x821650, prpCommand=&lt;incomplete type&gt;)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:262
#6  0x00007ffff3310ae0 in WebCore::CompositeEditCommand::removeNodePreservingChildren (this=0x821650, node=&lt;incomplete type&gt;, 
    shouldAssumeContentIsAlwaysEditable=WebCore::DoNotAssumeContentIsAlwaysEditable)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:405
#7  0x00007ffff33044d5 in WebCore::ApplyStyleCommand::removeInlineStyleFromElement (this=0x821650, style=0x831690, element=&lt;incomplete type&gt;, 
    mode=WebCore::ApplyStyleCommand::RemoveIfNeeded, extractedStyle=0x74add0)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/ApplyStyleCommand.cpp:890
#8  0x00007ffff3305175 in WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode (this=0x821650, style=0x831690, targetNode=0x8bcbd0)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/ApplyStyleCommand.cpp:1051
#9  0x00007ffff33057c3 in WebCore::ApplyStyleCommand::removeInlineStyle (this=0x821650, style=0x831690, start=..., end=...)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/ApplyStyleCommand.cpp:1104
#10 0x00007ffff3302a12 in WebCore::ApplyStyleCommand::applyInlineStyle (this=0x821650, style=0x831690)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/ApplyStyleCommand.cpp:630
#11 0x00007ffff32ffe57 in WebCore::ApplyStyleCommand::doApply (this=0x821650)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/ApplyStyleCommand.cpp:220
#12 0x00007ffff330fb3c in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x831290, prpCommand=&lt;incomplete type&gt;)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:262
#13 0x00007ffff336afc5 in WebCore::RemoveFormatCommand::doApply (this=0x831290)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/RemoveFormatCommand.cpp:92
#14 0x00007ffff330f8fc in WebCore::CompositeEditCommand::apply (this=0x831290)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:211
#15 0x00007ffff330f6fc in WebCore::applyCommand (command=&lt;incomplete type&gt;)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/CompositeEditCommand.cpp:170
#16 0x00007ffff3333335 in WebCore::Editor::removeFormattingAndStyle (this=0x7a1e60) at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/Editor.cpp:700
#17 0x00007ffff3347652 in WebCore::executeRemoveFormat (frame=...) at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/EditorCommand.cpp:977
#18 0x00007ffff33491af in WebCore::Editor::Command::execute (this=0x7fffffffa810, parameter=..., triggeringEvent=0x0)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/editing/EditorCommand.cpp:1713
#19 0x00007ffff32106ac in WebCore::Document::execCommand (this=0x81b610, commandName=..., userInterface=false, value=...)
    at /home/reni/Data/REPOS/webkitnix/Source/WebCore/dom/Document.cpp:4110
#20 0x00007ffff3fab309 in WebCore::jsDocumentPrototypeFunctionExecCommand (exec=0x7fffa37fef50)
    at /home/reni/Data/REPOS/webkitnix/WebKitBuild/Debug/DerivedSources/WebCore/JSDocument.cpp:2705
#21 0x00007fffaa282105 in ?? ()
#22 0x00007fffffffa950 in ?? ()
#23 0x00007ffff4875638 in llint_op_call () from /home/reni/Data/REPOS/webkitnix/WebKitBuild/Debug/lib/libWebKitNix.so.0
#24 0x00007fffaa282940 in ?? ()
#25 0x0000000000689dd8 in ?? ()
#26 0x0000000000000001 in ?? ()
#27 0x0000000000000001 in ?? ()
#28 0x00000000ffffffff in ?? ()
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
#29 0x0000000000000000 in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173728</commentid>
    <comment_count>1</comment_count>
      <attachid>273733</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2016-03-11 08:13:33 -0800</bug_when>
    <thetext>Created attachment 273733
Test case

New test case.

Checked on:
OS: Mac OS X 10.11.1 (x86_64), x86_64
Build: ASAN debug
Version: ecad464</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217097</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-03 13:17:20 -0700</bug_when>
    <thetext>This still occurs under r204037.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217098</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-08-03 13:19:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/27684325&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>215905</attachid>
            <date>2013-11-04 03:08:08 -0800</date>
            <delta_ts>2016-03-11 08:13:33 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>lastCrash.html</filename>
            <type>text/html</type>
            <size>284</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PGRldGFpbHM+PC9kZXRhaWxzPgo8Zm9udD5BPC9mb250Pgo8c3R5bGU+PC9zdHlsZT4KPGlmcmFt
ZSBvbmxvYWQ9IiAgIAoJCWRvY3VtZW50LmRlc2lnbk1vZGU9JmFwb3M7b24mYXBvczs7ICAgICAK
CQlkb2N1bWVudC5leGVjQ29tbWFuZCgmYXBvcztzZWxlY3RhbGwmYXBvczspOyAgICAgCgkJZG9j
dW1lbnQuZXhlY0NvbW1hbmQoJmFwb3M7aXRhbGljJmFwb3M7KTsKCQlkb2N1bWVudC5leGVjQ29t
bWFuZCgmYXBvcztSZW1vdmVGb3JtYXQmYXBvczspOyIgc2VhbWxlc3M9IiAiPgo8L2lmcmFtZT4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>273733</attachid>
            <date>2016-03-11 08:13:33 -0800</date>
            <delta_ts>2016-03-11 08:13:33 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>205</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PHNjcmlwdD4Kd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkgewogICAgZG9jdW1lbnQuZXhlY0Nv
bW1hbmQoInNlbGVjdEFsbCIpOwogICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoInJlbW92ZUZvcm1h
dCIpOwp9Cjwvc2NyaXB0Pgo8aHRtbCBjb250ZW50ZWRpdGFibGU9InBsYWludGV4dC1vbmx5Ij4K
PHByZT4KPHMgY29udGVudGVkaXRhYmxlPSJmYWxzZSI+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>