[XForms] label failing cross-domain check should trigger xforms-link-error. Bug 338517, r=smaug+doronr

This commit is contained in:
allan%beaufour.dk 2006-05-22 08:16:21 +00:00
parent bc59d964df
commit 4abdcce169

View File

@ -250,6 +250,10 @@ nsXFormsLabelElement::LoadExternalLabel(const nsAString& aSrc)
const PRUnichar *strings[] = { NS_LITERAL_STRING("label").get() };
nsXFormsUtils::ReportError(NS_LITERAL_STRING("externalLinkLoadOrigin"),
strings, 1, mElement, mElement);
nsCOMPtr<nsIModelElementPrivate> modelPriv =
nsXFormsUtils::GetModel(mElement);
nsCOMPtr<nsIDOMNode> model = do_QueryInterface(modelPriv);
nsXFormsUtils::DispatchEvent(model, eEvent_LinkError, nsnull, mElement);
}
}
}