Disable attachto capability in XBL. Fix for bug#55265. r=danm, sr=alecf

This commit is contained in:
hyatt%netscape.com 2001-03-05 21:45:13 +00:00
Родитель f1852f8c8b
Коммит 7a319c9908
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -776,6 +776,8 @@ nsXBLBinding::InstallEventHandlers(nsIXBLBinding** aBinding)
if (found) {
nsCOMPtr<nsIDOMEventReceiver> receiver = do_QueryInterface(mBoundElement);
/*
// Disable ATTACHTO capability for Mozilla 1.0
nsAutoString attachType;
child->GetAttribute(kNameSpaceID_None, kAttachToAtom, attachType);
if (attachType == NS_LITERAL_STRING("_document") ||
@ -798,6 +800,7 @@ nsXBLBinding::InstallEventHandlers(nsIXBLBinding** aBinding)
domDoc->GetElementById(attachType, getter_AddRefs(otherElement));
receiver = do_QueryInterface(otherElement);
}
*/
// Figure out if we're using capturing or not.
PRBool useCapture = PR_FALSE;