<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ASSERTION FAILED: startIndex <= endIndex in WebCore::ApplyBlockElementCommand::doApply"
href="https://bugs.webkit.org/show_bug.cgi?id=151111">151111</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ASSERTION FAILED: startIndex <= endIndex in WebCore::ApplyBlockElementCommand::doApply
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Local Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>HTML Editing
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rhodovan.u-szeged@partner.samsung.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>116980
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=265201" name="attach_265201" title="Test">attachment 265201</a> <a href="attachment.cgi?id=265201&action=edit" title="Test">[details]</a></span>
Test
Load the attached test with debug MiniBrowser:
a<font></font><li></li>
<li></li>
<embed></embed>a
<base contenteditable="false"><base>a
<time hidden><sub contenteditable="false"></sub></time>
a
<style>
* {
display:inline-grid-grid;
}
</style>
<script>
document.designMode = 'on';
document.execCommand("selectAll");
document.execCommand("indent");
document.execCommand("indent");
</script>
OS: Ubuntu 15.04 x86_64
Checked build: debug EFL
Checked version: 29ae33c
Backtrace:
ASSERTION FAILED: startIndex <= endIndex
../../Source/WebCore/editing/ApplyBlockElementCommand.cpp(92) : virtual void WebCore::ApplyBlockElementCommand::doApply()
1 0x7fb168b7489f WTFCrash
2 0x7fb16ff90e59 WebCore::ApplyBlockElementCommand::doApply()
3 0x7fb16ffa6f4c WebCore::CompositeEditCommand::apply()
4 0x7fb16ffa6cfd WebCore::applyCommand(WTF::PassRefPtr<WebCore::CompositeEditCommand>)
5 0x7fb16ee0b3a6
6 0x7fb16ee0f59e WebCore::Editor::Command::execute(WTF::String const&, WebCore::Event*) const
7 0x7fb16ecb3d39 WebCore::Document::execCommand(WTF::String const&, bool, WTF::String const&)
8 0x7fb1703e622d WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
9 0x7fb10b7ff0c8
Aborted (core dumped)
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fe901d648a4 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321 *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb) bt
#0 0x00007fe901d648a4 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1 0x00007fe909180e59 in WebCore::ApplyBlockElementCommand::doApply (this=0x7fe8e92dc318) at ../../Source/WebCore/editing/ApplyBlockElementCommand.cpp:92
#2 0x00007fe909196f4c in WebCore::CompositeEditCommand::apply (this=0x7fe8e92dc318) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:227
#3 0x00007fe909196cfd in WebCore::applyCommand (command=...) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:186
#4 0x00007fe907ffb3a6 in WebCore::executeIndent (frame=...) at ../../Source/WebCore/editing/EditorCommand.cpp:456
#5 0x00007fe907fff59e in WebCore::Editor::Command::execute (this=0x7ffdf0ce66f0, parameter=..., triggeringEvent=0x0)
at ../../Source/WebCore/editing/EditorCommand.cpp:1703
#6 0x00007fe907ea3d39 in WebCore::Document::execCommand (this=0x7fe8e9024940, commandName=..., userInterface=false, value=...)
at ../../Source/WebCore/dom/Document.cpp:4657
#7 0x00007fe9095d622d in WebCore::jsDocumentPrototypeFunctionExecCommand (state=0x7ffdf0ce67c0) at DerivedSources/WebCore/JSDocument.cpp:5066
#8 0x00007fe8a3fff0c8 in ?? ()
#9 0x00007ffdf0ce6830 in ?? ()
#10 0x00007fe901d0d036 in llint_entry () from webkit/WebKitBuild/Debug/lib/libjavascriptcore_efl.so.1</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>