RESOLVED FIXED 199126
Nullptr crash in DeleteSelectionCommand::handleGeneralDelete
https://bugs.webkit.org/show_bug.cgi?id=199126
Summary Nullptr crash in DeleteSelectionCommand::handleGeneralDelete
Ryosuke Niwa
Reported 2019-06-21 19:28:15 PDT
e.g. 0 WebCore 0x00000001bdd37420 WebCore::DeleteSelectionCommand::handleGeneralDelete() + 2348 (Node.h:595) 1 WebCore 0x00000001bdd36fbc WebCore::DeleteSelectionCommand::handleGeneralDelete() + 1224 (DeleteSelectionCommand.cpp:593) 2 WebCore 0x00000001bdd3993c WebCore::DeleteSelectionCommand::doApply() + 1228 (DeleteSelectionCommand.cpp:926) 3 WebCore 0x00000001bdd26ca0 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::Ref<WebCore::EditCommand, WTF::DumbPtrTraits<WebCore::EditCommand> >&&) + 68 (CompositeEditCommand.cpp:463) 4 WebCore 0x00000001bdd28754 WebCore::CompositeEditCommand::deleteSelection(WebCore::VisibleSelection const&, bool, bool, bool, bool, bool) + 128 (CompositeEditCommand.cpp:855) 5 WebCore 0x00000001bdda5d78 WebCore::TypingCommand::deleteKeyPressed(WebCore::TextGranularity, bool) + 3284 (TypingCommand.cpp:763) 6 WebCore 0x00000001bdd26914 WebCore::CompositeEditCommand::apply() + 304 (CompositeEditCommand.cpp:372) 7 WebCore 0x00000001bdda4da8 WebCore::TypingCommand::deleteKeyPressed(WebCore::Document&, unsigned int, WebCore::TextGranularity) + 104 (TypingCommand.cpp:196) 8 WebCore 0x00000001bdd4e808 WebCore::Editor::deleteWithDirection(WebCore::SelectionDirection, WebCore::TextGranularity, bool, bool) + 480 (Editor.cpp:0) 9 WebCore 0x00000001bdd73a7c WebCore::executeDeleteBackward(WebCore::Frame&, WebCore::Event*, WebCore::EditorCommandSource, WTF::String const&) + 36 (EditorCommand.cpp:309) 10 WebCore 0x00000001bdd56b78 WebCore::Editor::Command::execute(WTF::String const&, WebCore::Event*) const + 332 (EditorCommand.cpp:1852) 11 WebKit 0x00000001b0ecc4cc WebKit::WebPage::executeEditingCommand(WTF::String const&, WTF::String const&) + 120 (WebPage.cpp:1240) 12 WebKit 0x00000001b0eebf4c void IPC::handleMessage<Messages::WebPage::ExecuteEditCommand, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&, WTF::String const&)>(IPC::Decoder&, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&, WTF::String const&)) + 116 (HandleMessage.h:41) <rdar://problem/51161612>
Attachments
Fixes the crash (2.74 KB, patch)
2019-06-21 19:31 PDT, Ryosuke Niwa
wenson_hsieh: review+
Ryosuke Niwa
Comment 1 2019-06-21 19:31:36 PDT
Created attachment 372669 [details] Fixes the crash
Megan Gardner
Comment 2 2019-06-21 19:36:48 PDT
Comment on attachment 372669 [details] Fixes the crash R+ as well.
Ryosuke Niwa
Comment 3 2019-06-21 19:44:28 PDT
Waiting for EWS...
Ryosuke Niwa
Comment 4 2019-06-21 21:04:25 PDT
Radar WebKit Bug Importer
Comment 5 2019-06-21 21:05:39 PDT
Note You need to log in before you can comment on or make changes to this bug.