Reviewed by Maciej.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 May 2005 00:57:52 +0000 (00:57 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 May 2005 00:57:52 +0000 (00:57 +0000)
        fix for  <rdar://problem/4117656> deleting an input element in its onBlur handler crashes Safari

        * khtml/rendering/render_form.cpp: (RenderLineEdit::handleFocusOut): added nil check for element

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9167 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_form.cpp

index 3d592eac68fee1f1091d10f7092e7e617728b7c3..74260a8fdeb22053458d581d2d4a17c61ec236ce 100644 (file)
@@ -1,3 +1,11 @@
+2005-05-12  Adele Peterson  <adele@apple.com>
+
+        Reviewed by Maciej.
+
+        fix for  <rdar://problem/4117656> deleting an input element in its onBlur handler crashes Safari
+
+        * khtml/rendering/render_form.cpp: (RenderLineEdit::handleFocusOut): added nil check for element
+
 2005-05-12  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Kevin.
index 25e2b29b561eb3f43fc4bf0ba768fc1ef6608985..60a3995868ded3f4d0e594734ebbbe5e48f2fecb 100644 (file)
@@ -591,7 +591,7 @@ void RenderLineEdit::addSearchResult()
 
 void RenderLineEdit::handleFocusOut()
 {
-    if ( widget() && widget()->edited() ) {
+    if ( widget() && widget()->edited() && element()) {
         element()->onChange();
         widget()->setEdited( false );
     }