<?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>15134</bug_id>
          
          <creation_ts>2007-09-02 15:48:35 -0700</creation_ts>
          <short_desc>Assertion failure in WebCore::AppendNodeCommand::doApply() while editing &lt;ul&gt;</short_desc>
          <delta_ts>2012-06-03 00:19:08 -0700</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>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>data:text/html,&lt;ul contenteditable=&quot;true&quot;&gt;&lt;/ul&gt;</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lilek">dev+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1004</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-09-02 15:48:35 -0700</bug_when>
    <thetext>Load the HTML snippet at the URL and focus it.  Enter a couple lines, then backspace to delete what you&apos;ve just entered.  When everything is erased, hit backspace once more and you&apos;ll hit this assert:

This asserts on both Tiger (10.4.10, 8R218) and Windows XP with r25436 with Safari 3.0.3 Public Beta.  In a release build, this deletes the &lt;ul&gt;.

ASSERTION FAILED: isContentEditable(m_parentNode.get()) || enclosingNodeOfType(m_parentNode.get(), &amp;isContentEditable) || !m_parentNode-&gt;attached()
(WebKit/WebCore/editing/AppendNodeCommand.cpp:46 virtual void WebCore::AppendNodeCommand::doApply())

Thread 0 Crashed:
0   com.apple.WebCore        	0x01213934 WebCore::AppendNodeCommand::doApply() + 508
1   com.apple.WebCore        	0x01229884 WebCore::EditCommand::apply() + 496 (EditCommand.cpp:92)
2   com.apple.WebCore        	0x0121e1fc WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;) + 72 (CompositeEditCommand.cpp:97)
3   com.apple.WebCore        	0x0121e720 WebCore::CompositeEditCommand::appendNode(WebCore::Node*, WebCore::Node*) + 208 (CompositeEditCommand.cpp:172)
4   com.apple.WebCore        	0x0121e824 WebCore::CompositeEditCommand::insertNodeAfter(WebCore::Node*, WebCore::Node*) + 216 (CompositeEditCommand.cpp:135)
5   com.apple.WebCore        	0x012208d0 WebCore::CompositeEditCommand::breakOutOfEmptyListItem() + 592 (CompositeEditCommand.cpp:820)
6   com.apple.WebCore        	0x01253778 WebCore::TypingCommand::deleteKeyPressed(WebCore::TextGranularity) + 412 (TypingCommand.cpp:363)
7   com.apple.WebCore        	0x01254b50 WebCore::TypingCommand::deleteKeyPressed(WebCore::Document*, bool, WebCore::TextGranularity) + 240 (TypingCommand.cpp:69)
8   com.apple.WebCore        	0x0145c308 WebCore::Editor::deleteRange(WebCore::Range*, bool, bool, bool, WebCore::EditorDeleteAction, WebCore::TextGranularity) + 428 (Editor.cpp:254)
9   com.apple.WebCore        	0x0145c744 WebCore::Editor::deleteWithDirection(WebCore::SelectionController::EDirection, WebCore::TextGranularity, bool, bool) + 656 (Editor.cpp:315)
10  com.apple.WebKit         	0x0035b188 -[WebHTMLView deleteBackward:] + 240 (WebHTMLView.mm:4359)
11  com.apple.WebKit         	0x0036a18c -[WebHTMLView(WebNSTextInputSupport) doCommandBySelector:] + 1164 (WebHTMLView.mm:5636)
12  com.apple.WebKit         	0x00369c58 -[WebHTMLView(WebInternal) _interceptEditingKeyEvent:shouldSaveCommand:] + 780 (WebHTMLView.mm:5279)
13  com.apple.WebKit         	0x003c2d74 WebEditorClient::handleKeypress(WebCore::KeyboardEvent*) + 228 (WebEditorClient.mm:437)
14  com.apple.WebCore        	0x01457e5c WebCore::Editor::handleKeypress(WebCore::KeyboardEvent*) + 164 (Editor.cpp:115)
15  com.apple.WebCore        	0x014c1d40 WebCore::EventHandler::defaultKeyboardEventHandler(WebCore::KeyboardEvent*) + 112 (EventHandler.cpp:1489)
16  com.apple.WebCore        	0x0128f120 WebCore::EventTargetNode::defaultEventHandler(WebCore::Event*) + 308 (EventTargetNode.cpp:593)
17  com.apple.WebCore        	0x0128e150 WebCore::EventTargetNode::dispatchGenericEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 2632 (EventTargetNode.cpp:266)
18  com.apple.WebCore        	0x0128e7cc WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool, WebCore::EventTarget*) + 396 (EventTargetNode.cpp:308)
19  com.apple.WebCore        	0x0128e860 WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 80 (EventTargetNode.cpp:292)
20  com.apple.WebCore        	0x014c52ec WebCore::EventHandler::keyEvent(WebCore::PlatformKeyboardEvent const&amp;) + 800 (EventHandler.cpp:1480)
21  com.apple.WebCore        	0x014bdd68 WebCore::EventHandler::keyEvent(NSEvent*) + 520 (EventHandlerMac.mm:141)
22  com.apple.WebKit         	0x00356670 -[WebHTMLView keyDown:] + 360 (WebHTMLView.mm:3577)
23  com.apple.AppKit         	0x937d9fa0 -[NSWindow sendEvent:] + 6424</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1003</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-09-02 16:42:51 -0700</bug_when>
    <thetext>This might be P1 material.

In the attached testcase, there&apos;s a contenteditable list.  Pasting something into it that contains new lines then hitting enter twice to create a new list item hits this assert in a debug build, but in a release build it deletes the item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999</commentid>
    <comment_count>2</comment_count>
      <attachid>16183</attachid>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-09-02 16:43:11 -0700</bug_when>
    <thetext>Created attachment 16183
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-02 17:30:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/5456956&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640154</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-03 00:19:08 -0700</bug_when>
    <thetext>I can&apos;t reproduce this assertion failure anymore.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16183</attachid>
            <date>2007-09-02 16:43:11 -0700</date>
            <delta_ts>2007-09-02 16:43:11 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>15134.html</filename>
            <type>text/html</type>
            <size>387</size>
            <attacher name="Matt Lilek">dev+webkit</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KPHA+U2VsZWN0IGFuZCBjb3B5IHRoZSB0d28gbGluZXMgYmVsb3cuICBG
b2N1cyB0aGUgY29udGVudGVkaXRhYmxlIGxpc3QgYW5kIGhpdCBlbnRlciB0byBjcmVhdGUgYSBu
ZXcgYnVsbGV0IHBvaW50LiBQYXN0ZSB0aGUgY29udGVudHMgaW50byB0aGUKICAgIGl0ZW0gYW5k
IGhpdCBlbnRlciB0d2ljZSAtIGluIGEgcmVsZWFzZSBidWlsZCwgdGhlIGxpc3QgaXRlbSB3aWxs
IGJlIGRlbGV0ZWQsIGluIGEgZGVidWcgYnVpbGQsIHlvdSdsbCBoaXQgYW4gYXNzZXJ0LjwvcD4K
CjxwcmU+U3ByaW5nClN1bW1lcgpGYWxsPC9wcmU+Cgo8dWwgY29udGVudGVkaXRhYmxlPSJ0cnVl
Ij4KICAgIDxsaT5XaW50ZXI8L2xpPgo8L3VsPgo8L2JvZHk+Cgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>