Adding missing nil check for focus node.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Aug 2006 02:09:49 +0000 (02:09 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Aug 2006 02:09:49 +0000 (02:09 +0000)
        * page/Frame.cpp: (WebCore::Frame::setIsActive):

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

WebCore/ChangeLog
WebCore/page/Frame.cpp

index a2ad092328569faab013f917098544ec72ea7145..cc457bc7467d18ccadbe1cb1da43d64948d99eda 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-30  Adele Peterson  <adele@apple.com>
+
+        Adding missing nil check for focus node.
+
+        * page/Frame.cpp: (WebCore::Frame::setIsActive):
+
 2006-08-30  Adele Peterson  <adele@apple.com>
 
         Reviewed by Hyatt.
index 4c6b0645ce5bff2caffe43b29be31c4fe96e3910..b035995b021cda904ac9ffe2e46e4b6ab2665fed 100644 (file)
@@ -3359,7 +3359,7 @@ void Frame::setIsActive(bool flag)
     }
    
     // 5. Enable or disable secure keyboard entry
-    if ((flag && !secureKeyboardEntry() && doc && doc->focusNode()->hasTagName(inputTag) && 
+    if ((flag && !secureKeyboardEntry() && doc && doc->focusNode() && doc->focusNode()->hasTagName(inputTag) && 
             static_cast<HTMLInputElement*>(doc->focusNode())->inputType() == HTMLInputElement::PASSWORD) ||
         (!flag && secureKeyboardEntry()))
             setSecureKeyboardEntry(flag);