<?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>70045</bug_id>
          
          <creation_ts>2011-10-13 12:22:54 -0700</creation_ts>
          <short_desc>Crash in DeleteSelectionCommand::handleGeneralDelete</short_desc>
          <delta_ts>2011-10-13 13:57:40 -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>528+ (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></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>darin</cc>
    
    <cc>enrica</cc>
    
    <cc>morrita</cc>
    
    <cc>ojan</cc>
    
    <cc>tkent</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>483385</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-13 12:22:54 -0700</bug_when>
    <thetext>Stack trace:
0x6846a438	 [chrome.dll	 - htmlediting.cpp:976	WebCore::caretMaxOffset(WebCore::Node const *)
0x684ab73d	 [chrome.dll	 - deleteselectioncommand.cpp:420	WebCore::DeleteSelectionCommand::handleGeneralDelete()
0x684ac9b7	 [chrome.dll	 - deleteselectioncommand.cpp:800	WebCore::DeleteSelectionCommand::doApply()
0x6847a1d2	 [chrome.dll	 - editcommand.cpp:92	WebCore::EditCommand::apply()
0x68493734	 [chrome.dll	 - compositeeditcommand.cpp:102	WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
0x6849471c	 [chrome.dll	 - compositeeditcommand.cpp:406	WebCore::CompositeEditCommand::deleteSelection(bool,bool,bool,bool)
0x68497858	 [chrome.dll	 - inserttextcommand.cpp:110	WebCore::InsertTextCommand::doApply()
0x6847a1d2	 [chrome.dll	 - editcommand.cpp:92	WebCore::EditCommand::apply()
0x684937be	 [chrome.dll	 - compositeeditcommand.cpp:113	WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;,WebCore::VisibleSelection const &amp;)
0x6843eda3	 [chrome.dll	 - typingcommand.cpp:397	WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const &amp;,bool)
0x6843ecdb	 [chrome.dll	 - typingcommand.cpp:384	WebCore::TypingCommand::insertText(WTF::String const &amp;,bool)
0x6843e9f0	 [chrome.dll	 - typingcommand.cpp:307	WebCore::TypingCommand::doApply()
0x6847a1d2	 [chrome.dll	 - editcommand.cpp:92	WebCore::EditCommand::apply()
0x6847a3a9	 [chrome.dll	 - editcommand.cpp:224	WebCore::applyCommand(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
0x6843e716	 [chrome.dll	 - typingcommand.cpp:208	WebCore::TypingCommand::insertText(WebCore::Document *,WTF::String const &amp;,WebCore::VisibleSelection const &amp;,unsigned int,WebCore::TypingCommand::TextCompositionType)
0x6841d63c	 [chrome.dll	 - editor.cpp:1099	WebCore::Editor::insertTextWithoutSendingTextEvent(WTF::String const &amp;,bool,WebCore::TextEvent *)
0x6841b4a7	 [chrome.dll	 - editor.cpp:176	WebCore::Editor::handleTextEvent(WebCore::TextEvent *)
0x685a81f5	 [chrome.dll	 - node.cpp:2793	WebCore::Node::defaultEventHandler(WebCore::Event *)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483390</commentid>
    <comment_count>1</comment_count>
      <attachid>110888</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-13 12:25:56 -0700</bug_when>
    <thetext>Created attachment 110888
fixes the crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483431</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-13 13:23:10 -0700</bug_when>
    <thetext>http://crbug.com/99408

We have 21 crash reports in Chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483444</commentid>
    <comment_count>3</comment_count>
      <attachid>110888</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-10-13 13:39:51 -0700</bug_when>
    <thetext>Comment on attachment 110888
fixes the crash

View in context: https://bugs.webkit.org/attachment.cgi?id=110888&amp;action=review

&gt; Source/WebCore/ChangeLog:10
&gt; +        No new tests because we don&apos;t have a reduction.

Disappointing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483452</commentid>
    <comment_count>4</comment_count>
      <attachid>110888</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-13 13:52:56 -0700</bug_when>
    <thetext>Comment on attachment 110888
fixes the crash

View in context: https://bugs.webkit.org/attachment.cgi?id=110888&amp;action=review

Thanks for the review.

&gt;&gt; Source/WebCore/ChangeLog:10
&gt;&gt; +        No new tests because we don&apos;t have a reduction.
&gt; 
&gt; Disappointing.

Yeah I know :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483459</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-10-13 13:57:40 -0700</bug_when>
    <thetext>Committed r97395: &lt;http://trac.webkit.org/changeset/97395&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110888</attachid>
            <date>2011-10-13 12:25:56 -0700</date>
            <delta_ts>2011-10-13 13:52:56 -0700</delta_ts>
            <desc>fixes the crash</desc>
            <filename>bug-70045-20111013122555.patch</filename>
            <type>text/plain</type>
            <size>1582</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDk3MzgwKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMTAtMTMgIFJ5b3N1a2Ug
Tml3YSAgPHJuaXdhQHdlYmtpdC5vcmc+CisKKyAgICAgICAgQ3Jhc2ggaW4gRGVsZXRlU2VsZWN0
aW9uQ29tbWFuZDo6aGFuZGxlR2VuZXJhbERlbGV0ZQorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NzAwNDUKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBFeGl0IGVhcmx5IHdoZW4gbV91cHN0cmVhbVN0YXJ0IGlz
IG51bGwuCisKKyAgICAgICAgTm8gbmV3IHRlc3RzIGJlY2F1c2Ugd2UgZG9uJ3QgaGF2ZSBhIHJl
ZHVjdGlvbi4KKworICAgICAgICAqIGVkaXRpbmcvRGVsZXRlU2VsZWN0aW9uQ29tbWFuZC5jcHA6
CisgICAgICAgIChXZWJDb3JlOjpEZWxldGVTZWxlY3Rpb25Db21tYW5kOjpoYW5kbGVHZW5lcmFs
RGVsZXRlKToKKwogMjAxMS0xMC0xMyAgSnVsaWVuIENoYWZmcmF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mZnNldCA9PSAwICYmIGNh
bkhhdmVDaGlsZHJlbkZvckVkaXRpbmcoc3RhcnROb2RlKSAmJiAhc3RhcnROb2RlLT5oYXNUYWdO
YW1lKHRhYmxlVGFnKSkgewogICAgICAgICBzdGFydE9mZnNldCA9IDA7Cg==
</data>
<flag name="review"
          id="108523"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="108539"
          type_id="3"
          status="+"
          setter="rniwa"
    />
          </attachment>
      

    </bug>

</bugzilla>