mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
[XForms] label failing cross-domain check should trigger xforms-link-error. Bug 338517, r=smaug+doronr
This commit is contained in:
parent
bc59d964df
commit
4abdcce169
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user