[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
mjs
mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:15:48 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit b50afe601fc9bc1808e4f1405466b3ce1bd6fd27
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Dec 3 01:09:01 2003 +0000
Reviewed by John.
<rdar://problem/3488220>: namespaces test from David Faure causes Safari to crash in DOM::DocumentImpl::createElementNS
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::createElementNS): Check if new element is NULL
before messing with it, to avoid a crash.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index f8ce51d..617e06d 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,13 @@
+2003-12-02 Maciej Stachowiak <mjs at apple.com>
+
+ Reviewed by John.
+
+ <rdar://problem/3488220>: namespaces test from David Faure causes Safari to crash in DOM::DocumentImpl::createElementNS
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::createElementNS): Check if new element is NULL
+ before messing with it, to avoid a crash.
+
2003-12-02 David Hyatt <hyatt at apple.com>
Fix for 3497999, null check the text() of RenderTexts to avoid a crash in current().
diff --git a/WebCore/khtml/xml/dom_docimpl.cpp b/WebCore/khtml/xml/dom_docimpl.cpp
index 6b416ae..17b821d 100644
--- a/WebCore/khtml/xml/dom_docimpl.cpp
+++ b/WebCore/khtml/xml/dom_docimpl.cpp
@@ -516,7 +516,7 @@ ElementImpl *DocumentImpl::createElementNS( const DOMString &_namespaceURI, cons
// (elements not in this namespace are treated as normal XML elements)
e = createHTMLElement(qName.mid(colonPos+1));
int exceptioncode = 0;
- if (colonPos >= 0)
+ if (e && colonPos >= 0)
e->setPrefix(qName.left(colonPos), exceptioncode);
}
if (!e)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list