mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Change assertion to error console report for malformed XBL file. (Bug 397561) r=bzbarsky
This commit is contained in:
parent
c6bd227acc
commit
0a8ed314df
@ -450,8 +450,15 @@ nsXBLStreamListener::Load(nsIDOMEvent* aEvent)
|
||||
xblDocBindingManager->GetXBLDocumentInfo(documentURI);
|
||||
xblDocBindingManager->RemoveXBLDocumentInfo(info); // Break the self-imposed cycle.
|
||||
if (!info) {
|
||||
// FIXME: How about an error console warning?
|
||||
NS_WARNING("An XBL file is malformed. Did you forget the XBL namespace on the bindings tag?");
|
||||
if (IsChromeOrResourceURI(documentURI)) {
|
||||
NS_WARNING("An XBL file is malformed. Did you forget the XBL namespace on the bindings tag?");
|
||||
}
|
||||
nsContentUtils::ReportToConsole(nsContentUtils::eXBL_PROPERTIES,
|
||||
"MalformedXBL",
|
||||
nsnull, 0, documentURI,
|
||||
EmptyString(), 0, 0,
|
||||
nsIScriptError::warningFlag,
|
||||
"XBL");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
@ -41,4 +41,5 @@ TooDeepBindingRecursion=The XBL binding "%S" is already used by too many ancesto
|
||||
CircularExtendsBinding=Extending the XBL binding "%S" with "%S" would lead to it extending itself
|
||||
# LOCALIZATION NOTE: do not localize <handler command="…">
|
||||
CommandNotInChrome=Use of <handler command="…"> not allowed outside chrome.
|
||||
MalformedXBL = An XBL file is malformed. Did you forget the XBL namespace on the bindings tag?
|
||||
InvalidExtendsBinding=Extending "%S" is invalid. In general, do not extend tag names.
|
||||
|
Loading…
Reference in New Issue
Block a user