<?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>266465</bug_id>
          
          <creation_ts>2023-12-15 01:28:10 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: isStartOfParagraph(startOfParagraphToMove) in imported/w3c/web-platform-tests/editing/run/delete.html?6001-7000</short_desc>
          <delta_ts>2024-08-30 06:36:51 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Dyackhov">vitaly</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1999845</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-12-15 01:28:10 -0800</bug_when>
    <thetext>The subtest causing this assertion to fail:
```
[&quot;&lt;span style=display:inline-table&gt;fo[o&lt;/span&gt;&lt;span style=display:inline-table&gt;b]ar&lt;/span&gt;&quot;,
    [[&quot;delete&quot;,&quot;&quot;]],
    &quot;&lt;span style=\&quot;display:inline-table\&quot;&gt;fo[]&lt;/span&gt;&lt;span style=\&quot;display:inline-table\&quot;&gt;ar&lt;/span&gt;&quot;,
    [true],
    {&quot;delete&quot;:[false,false,&quot;&quot;,false,false,&quot;&quot;]}],
```
in `LayoutTests/imported/w3c/web-platform-tests/editing/data/delete.js`

Stack trace:
```
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007f62f465a115 in WTFCrashWithInfo(int, char const*, char const*, int) () at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Assertions.h:778
#2  0x00007f62f95b133b in WebCore::CompositeEditCommand::moveParagraph(WebCore::VisiblePosition const&amp;, WebCore::VisiblePosition const&amp;, WebCore::VisiblePosition const&amp;, bool, bool) (this=0x7f6006892480, startOfParagraphToMove=..., endOfParagraphToMove=..., destination=..., preserveSelection=false, preserveStyle=true) at /app/webkit/Source/WebCore/editing/CompositeEditCommand.cpp:1444
#3  0x00007f62f95cbb01 in WebCore::DeleteSelectionCommand::mergeParagraphs() (this=0x7f6006892480) at /app/webkit/Source/WebCore/editing/DeleteSelectionCommand.cpp:850
#4  0x00007f62f95ccdba in WebCore::DeleteSelectionCommand::doApply() (this=0x7f6006892480) at /app/webkit/Source/WebCore/editing/DeleteSelectionCommand.cpp:1038
#5  0x00007f62f95aa7c6 in WebCore::CompositeEditCommand::applyCommandToComposite(WTF::Ref&lt;WebCore::EditCommand, WTF::RawPtrTraits&lt;WebCore::EditCommand&gt; &gt;&amp;&amp;) (this=0x7f6033cd4e80, command=...) at /app/webkit/Source/WebCore/editing/CompositeEditCommand.cpp:498
#6  0x00007f62f95ad5ec in WebCore::CompositeEditCommand::deleteSelection(WebCore::VisibleSelection const&amp;, bool, bool, bool, bool, bool) (this=0x7f6033cd4e80, selection=..., smartDelete=false, mergeBlocksAfterDelete=true, replace=false, expandForSpecialElements=true, sanitizeMarkup=true) at /app/webkit/Source/WebCore/editing/CompositeEditCommand.cpp:874
#7  0x00007f62f967eb43 in WebCore::TypingCommand::deleteKeyPressed(WebCore::TextGranularity, bool) (this=0x7f6033cd4e80, granularity=WebCore::TextGranularity::CharacterGranularity, shouldAddToKillRing=false) at /app/webkit/Source/WebCore/editing/TypingCommand.cpp:766
#8  0x00007f62f967c528 in WebCore::TypingCommand::doApply() (this=0x7f6033cd4e80) at /app/webkit/Source/WebCore/editing/TypingCommand.cpp:374
#9  0x00007f62f95aa037 in WebCore::CompositeEditCommand::apply() (this=0x7f6033cd4e80) at /app/webkit/Source/WebCore/editing/CompositeEditCommand.cpp:402
#10 0x00007f62f967b507 in WebCore::TypingCommand::deleteKeyPressed(WTF::Ref&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt; &gt;&amp;&amp;, WTF::OptionSet&lt;WebCore::TypingCommand::Option&gt;, WebCore::TextGranularity) (document=..., options=..., granularity=WebCore::TextGranularity::CharacterGranularity) at /app/webkit/Source/WebCore/editing/TypingCommand.cpp:195
#11 0x00007f62f9603c27 in WebCore::executeDelete(WebCore::LocalFrame&amp;, WebCore::Event*, WebCore::EditorCommandSource, WTF::String const&amp;) (frame=..., source=WebCore::EditorCommandSource::DOM) at /app/webkit/Source/WebCore/editing/EditorCommand.cpp:301
#12 0x00007f62f96098f0 in WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const (this=0x7ffc3f2e1c80, parameter=..., triggeringEvent=0x0) at /app/webkit/Source/WebCore/editing/EditorCommand.cpp:1925
#13 0x00007f62f927a741 in WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;) (this=0x7f602d344000, commandName=..., userInterface=false, value=...) at /app/webkit/Source/WebCore/dom/Document.cpp:6409
#14 0x00007f62f6a16622 in WebCore::jsDocumentPrototypeFunction_execCommandBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::IDLOperation&lt;WebCore::JSDocument&gt;::ClassParameter) (lexicalGlobalObject=0x7f6031737260, callFrame=0x7ffc3f2e1eb0, castedThis=0x7f6291e24fa0) at /app/webkit/WebKitBuild/GTK/Debug/WebCore/DerivedSources/JSDocument.cpp:6475
#15 0x00007f62f6a3f08f in WebCore::IDLOperation&lt;WebCore::JSDocument&gt;::call&lt;WebCore::jsDocumentPrototypeFunction_execCommandBody&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*) (lexicalGlobalObject=..., callFrame=..., operationName=0x7f62ed7d8c27 &quot;execCommand&quot;) at /app/webkit/Source/WebCore/bindings/js/JSDOMOperation.h:63
#16 0x00007f62f6a16703 in WebCore::jsDocumentPrototypeFunction_execCommand(JSC::JSGlobalObject*, JSC::CallFrame*) (lexicalGlobalObject=0x7f6031737260, callFrame=0x7ffc3f2e1eb0) at /app/webkit/WebKitBuild/GTK/Debug/WebCore/DerivedSources/JSDocument.cpp:6480
#17 0x00007f6294008038 in  ()
#18 0x00007ffc3f2e1f50 in  ()
#19 0x00007f629467fc53 in  ()
#20 0x0000000000000000 in  ()
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999846</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-12-15 01:40:07 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21854</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999847</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-15 01:43:17 -0800</bug_when>
    <thetext>Test gardening commit 272104@main (0826b15031a1): &lt;https://commits.webkit.org/272104@main&gt;

Reviewed commits have been landed. Closing PR #21854 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001568</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-22 01:29:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/120036108&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056540</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-30 06:36:50 -0700</bug_when>
    <thetext>Committed 282962@main (ae3c1353c144): &lt;https://commits.webkit.org/282962@main&gt;

Reviewed commits have been landed. Closing PR #32817 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>