summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mozilla/files/mozilla-1.0.1-xuldom.patch')
-rw-r--r--net-www/mozilla/files/mozilla-1.0.1-xuldom.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-www/mozilla/files/mozilla-1.0.1-xuldom.patch b/net-www/mozilla/files/mozilla-1.0.1-xuldom.patch
new file mode 100644
index 000000000000..143ad0c038b0
--- /dev/null
+++ b/net-www/mozilla/files/mozilla-1.0.1-xuldom.patch
@@ -0,0 +1,14 @@
+--- mozilla/content/xul/content/src/nsXULElement.cpp.orig 2002-08-24 02:08:08.000000000 +0200
++++ mozilla/content/xul/content/src/nsXULElement.cpp 2002-08-27 16:27:35.000000000 +0200
+@@ -993,6 +993,11 @@
+ if (NS_FAILED(rv))
+ return rv;
+
++ // We can't insert an ancestor or ourself.
++ if (IsAncestor(aNewChild, this)) {
++ return NS_ERROR_DOM_HIERARCHY_REQUEST_ERR;
++ }
++
+ nsCOMPtr<nsIContent> newcontent = do_QueryInterface(aNewChild);
+ NS_ASSERTION(newcontent != nsnull, "not an nsIContent");
+ if (! newcontent)