From 9ef9b667e320a67216ff21acecd520236b3c7b40 Mon Sep 17 00:00:00 2001 From: "peterv%netscape.com" Date: Wed, 8 Jan 2003 22:44:35 +0000 Subject: [PATCH] That shouldn't have gone in. git-svn-id: svn://10.0.0.236/trunk@136022 18797224-902f-48f8-a5cc-f745e15eee43 --- .../transformiix/source/base/txURIUtils.cpp | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/mozilla/extensions/transformiix/source/base/txURIUtils.cpp b/mozilla/extensions/transformiix/source/base/txURIUtils.cpp index ac8c5621c9a..2cdb7432a57 100644 --- a/mozilla/extensions/transformiix/source/base/txURIUtils.cpp +++ b/mozilla/extensions/transformiix/source/base/txURIUtils.cpp @@ -33,7 +33,6 @@ #include "txURIUtils.h" #ifndef TX_EXE -//#include "nsDOMAttribute.h" #include "nsNetUtil.h" #include "nsIScriptSecurityManager.h" #include "nsIDocument.h" @@ -345,31 +344,19 @@ PRBool URIUtils::CanCallerAccess(nsIDOMNode *aNode) // fails we QI to nsIDocument. If both those QI's fail we won't let // the caller access this unknown node. nsCOMPtr principal; - nsCOMPtr content = do_QueryInterface(aNode); - - if (!content) { -// nsCOMPtr attr = do_QueryInterface(aNode); -// if (attr) { -// nsCOMPtr domDoc; -// aNode->GetOwnerDocument(getter_AddRefs(domDoc)); -// if (!domDoc) { -// } -// } - } + nsCOMPtr content(do_QueryInterface(aNode)); if (!content) { nsCOMPtr doc = do_QueryInterface(aNode); if (!doc) { - // aNode is neither a nsIContent nor an nsIDOMAttributePrivate nor - // an nsIDocument, something weird is going on... + // aNode is neither a nsIContent nor an nsIDocument, something + // weird is going on... - NS_ERROR("aNode is neither an nsIContent nor an " - "nsIDOMAttributePrivate nor an nsIDocument!"); + NS_ERROR("aNode is neither an nsIContent nor an nsIDocument!"); return PR_FALSE; } - doc->GetPrincipal(getter_AddRefs(principal)); } else {