Bug 1059707 Don't print a deprecation warning for theme XBL binding documents r=smaug

This commit is contained in:
Neil Rashbrook 2014-08-29 20:33:16 +01:00
parent bbf77ff477
commit 1c56da8a40

View File

@ -828,6 +828,7 @@ nsXULElement::BindToTree(nsIDocument* aDocument,
{
if (!aBindingParent &&
aDocument &&
!aDocument->IsLoadedAsInteractiveData() &&
!aDocument->AllowXULXBL() &&
!aDocument->HasWarnedAbout(nsIDocument::eImportXULIntoContent)) {
nsContentUtils::AddScriptRunner(new XULInContentErrorReporter(aDocument));