From 799b678747c2f2917292cff62a9f40a661bf2280 Mon Sep 17 00:00:00 2001 From: Leon Clarke Date: Thu, 14 Jan 2010 16:39:36 +0000 Subject: Check for the absence of a frame. This crashes in the situation where the XHR responseXML method is being called on a document with meta tags. http://b/issue?id=2346028 --- WebCore/dom/Document.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WebCore/dom') diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp index 13c2fae..69b326a 100644 --- a/WebCore/dom/Document.cpp +++ b/WebCore/dom/Document.cpp @@ -2257,7 +2257,8 @@ void Document::processMetadataSettings(const String& content) String key(buffer.substring(keyBegin, keyEnd - keyBegin)); String value(buffer.substring(valueBegin, valueEnd - valueBegin)); - frame()->settings()->setMetadataSettings(key, value); + if (frame()) + frame()->settings()->setMetadataSettings(key, value); } } #endif -- cgit v1.1