<?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>173186</bug_id>
          
          <creation_ts>2017-06-09 15:03:12 -0700</creation_ts>
          <short_desc>Delete second list item inside a single table cell should not delete the whole table</short_desc>
          <delta_ts>2022-11-17 11:49:31 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=173117</see_also>
    
    <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=731913</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Javier Fernandez">jfernandez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>jfernandez</cc>
    
    <cc>rniwa</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1317651</commentid>
    <comment_count>0</comment_count>
      <attachid>312495</attachid>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2017-06-09 15:03:12 -0700</bug_when>
    <thetext>Created attachment 312495
Test case to reproduce the issue

What steps will reproduce the problem?
(1) Load the attached test case
(2) Place the cursor at the list item 2.
(3) Hit backspace to the list item is removed

What is the expected result?

The list item 2 is removed but the list still holds the item 1.

What happens instead?

The whole table is deleted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1317652</commentid>
    <comment_count>1</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2017-06-09 15:04:58 -0700</bug_when>
    <thetext>Maybe related to bug #173117 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1402048</commentid>
    <comment_count>2</comment_count>
    <who name="Javier Fernandez">jfernandez</who>
    <bug_when>2018-02-26 08:14:32 -0800</bug_when>
    <thetext>The Blink bug (731913) has been already fixed, so perhaps we try a similar approach with this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912946</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-16 13:38:31 -0800</bug_when>
    <thetext>Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/5961ff06240e30a18405608f06d8eea4730c7b8f

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/8a344c3387b2bfe58dc8c8a94b1683187effef2e/Source/WebCore/editing/DeleteSelectionCommand.cpp#L112

!IsListItem(position.xxx

Still haven&apos;t figured out xxx yet. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912948</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-16 13:39:49 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #3)
&gt; Blink Commit -
&gt; https://chromium.googlesource.com/chromium/src.git/+/
&gt; 5961ff06240e30a18405608f06d8eea4730c7b8f
&gt; 
&gt; Webkit GitHub Source -
&gt; https://github.com/WebKit/WebKit/blob/
&gt; 8a344c3387b2bfe58dc8c8a94b1683187effef2e/Source/WebCore/editing/
&gt; DeleteSelectionCommand.cpp#L112
&gt; 
&gt; !IsListItem(position.xxx
&gt; 
&gt; Still haven&apos;t figured out xxx yet. Thanks!

Although before that I am not able to reproduce this bug and only 2. bullet get destroyed and 1. remains. So I think the test case attached is working fine in Safari 16.1.

Do we need anything else or we can close this? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913252</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-11-17 11:49:31 -0800</bug_when>
    <thetext>No longer reproduces.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>312495</attachid>
            <date>2017-06-09 15:03:12 -0700</date>
            <delta_ts>2017-06-09 15:03:12 -0700</delta_ts>
            <desc>Test case to reproduce the issue</desc>
            <filename>deleteSecondLiDeletesTable.html</filename>
            <type>text/html</type>
            <size>251</size>
            <attacher name="Javier Fernandez">jfernandez</attacher>
            
              <data encoding="base64">PHN0eWxlPgp0ZCB7IHdpZHRoOiAyMDBweDsgfQo8L3N0eWxlPgpCYWNrc3BhY2luZyB0aGUgc2Vj
b25kIExJIGVsZW1lbnQgaW5zaWRlIHRoZSB0YWJsZSBjZWxsIHJlbW92ZXMgdGhlIGl0ZW0gYnV0
IGFsc28gdGhlIHdob2xlIHRhYmxlLgo8ZGl2IGlkPSJlZGl0YWJsZSIgY29udGVudGVkaXRhYmxl
Pjx0YWJsZSBib3JkZXI9IjEiPjx0cj48dGQ+PG9sPjxsaT48L2xpPjxsaT48L2xpPjwvb2w+PC90
ZD48L3RyPjwvdGFibGU+CjwvZGl2Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>