- Darin fixed a regression I found from Darin's recent DOM change that broke GMail
* khtml/ecma/kjs_window.cpp:
(KJS::Window::get): Added nil check for document.
(KJS::Window::hasProperty): Ditto.
Test cases added: None (Darin should write one).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9227
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-05-27 Adele Peterson <adele@apple.com>
+
+ Reviewed by me, done by Darin.
+
+ - Darin fixed a regression I found from Darin's recent DOM change that broke GMail
+
+ * khtml/ecma/kjs_window.cpp:
+ (KJS::Window::get): Added nil check for document.
+ (KJS::Window::hasProperty): Ditto.
+
+ Test cases added: None (Darin should write one).
+
2005-05-27 Adele Peterson <adele@apple.com>
Reviewed by Darin.
// allow shortcuts like 'Image1' instead of document.images.Image1
DocumentImpl *doc = m_part->xmlDocImpl();
- if (isSafeScript(exec) && doc->isHTMLDocument()) { // might be XML
+ if (isSafeScript(exec) && doc && doc->isHTMLDocument()) { // might be XML
NodeImpl *element = doc->all()->namedItem(p.string());
if (element)
return getDOMNode(exec, element);
if (isSafeScript(exec)) {
DocumentImpl *doc = m_part->xmlDocImpl();
- if (doc->isHTMLDocument() && doc->all()->namedItem(p.string()))
+ if (doc && doc->isHTMLDocument() && doc->all()->namedItem(p.string()))
return true;
}