deCOMtaminate nsINodeInfo and nsINodeInfoManager. See bug 225060 for details. r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@149340 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -240,16 +240,16 @@ nsScriptLoader::InNonScriptingContainer(nsIDOMHTMLScriptElement* aScriptElement)
|
||||
NS_ASSERTION(nodeInfo, "element without node info");
|
||||
|
||||
if (nodeInfo) {
|
||||
nsCOMPtr<nsIAtom> localName = nodeInfo->GetNameAtom();
|
||||
nsIAtom *localName = nodeInfo->NameAtom();
|
||||
|
||||
// XXX noframes and noembed are currently unconditionally not
|
||||
// displayed and processed. This might change if we support either
|
||||
// prefs or per-document container settings for not allowing
|
||||
// frames or plugins.
|
||||
if (content->IsContentOfType(nsIContent::eHTML) &&
|
||||
((localName.get() == nsHTMLAtoms::iframe) ||
|
||||
(localName.get() == nsHTMLAtoms::noframes) ||
|
||||
(localName.get() == nsHTMLAtoms::noembed))) {
|
||||
((localName == nsHTMLAtoms::iframe) ||
|
||||
(localName == nsHTMLAtoms::noframes) ||
|
||||
(localName == nsHTMLAtoms::noembed))) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user