diff --git a/content/xbl/src/nsXBLBinding.cpp b/content/xbl/src/nsXBLBinding.cpp index 8061451e35a5..c4ba829c4f03 100644 --- a/content/xbl/src/nsXBLBinding.cpp +++ b/content/xbl/src/nsXBLBinding.cpp @@ -574,6 +574,22 @@ nsXBLBinding::GenerateAnonymousContent() // See if there's an includes attribute. nsAutoString includes; content->GetAttribute(kNameSpaceID_None, kIncludesAtom, includes); + +#ifdef DEBUG + if (!includes.IsEmpty()) { + nsCAutoString id; + mPrototypeBinding->GetID(id); + nsCAutoString message("An XBL Binding with an id of "); + message += id; + message += " and found in the file "; + nsCAutoString uri; + mPrototypeBinding->GetDocURI(uri); + message += uri; + message += " is still using the deprecated\n syntax! Use instead!\n"; + NS_WARNING(message); + } +#endif + if (includes != NS_LITERAL_STRING("*")) { PRInt32 childCount; mBoundElement->ChildCount(childCount); @@ -676,11 +692,7 @@ nsXBLBinding::GenerateAnonymousContent() insertionPoint = nsnull; } - if (!insertionPoint) { - NS_ERROR("Filtered insertion point wasn't properly constructed.\n"); - return NS_ERROR_FAILURE; - } - else + if (insertionPoint) insertionPoint->AddChild(content); } } diff --git a/themes/modern/global/globalBindings.xml b/themes/modern/global/globalBindings.xml index e909bb39d9db..4b65bb2ef2db 100644 --- a/themes/modern/global/globalBindings.xml +++ b/themes/modern/global/globalBindings.xml @@ -177,7 +177,7 @@ - + @@ -205,6 +205,8 @@ + + diff --git a/xpfe/global/resources/content/xulBindings.xml b/xpfe/global/resources/content/xulBindings.xml index f218953501d3..179f1a40d278 100644 --- a/xpfe/global/resources/content/xulBindings.xml +++ b/xpfe/global/resources/content/xulBindings.xml @@ -45,25 +45,28 @@ - + + - + + - + + - + @@ -83,7 +86,7 @@ - +