mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 753455 - Improved warning message from XBL. r=bz
This commit is contained in:
parent
5c6f11d71c
commit
96357dc537
@ -836,9 +836,20 @@ nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI,
|
|||||||
|
|
||||||
nsXBLPrototypeBinding* protoBinding = docInfo->GetPrototypeBinding(ref);
|
nsXBLPrototypeBinding* protoBinding = docInfo->GetPrototypeBinding(ref);
|
||||||
|
|
||||||
NS_WARN_IF_FALSE(protoBinding, "Unable to locate an XBL binding");
|
if (!protoBinding) {
|
||||||
if (!protoBinding)
|
#ifdef DEBUG
|
||||||
|
nsCAutoString uriSpec;
|
||||||
|
aURI->GetSpec(uriSpec);
|
||||||
|
nsCAutoString doc;
|
||||||
|
boundDocument->GetDocumentURI()->GetSpec(doc);
|
||||||
|
nsCAutoString message("Unable to locate an XBL binding for URI ");
|
||||||
|
message += uriSpec;
|
||||||
|
message += " in document ";
|
||||||
|
message += doc;
|
||||||
|
NS_WARNING(message.get());
|
||||||
|
#endif
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
NS_ENSURE_TRUE(aDontExtendURIs.AppendElement(protoBinding->BindingURI()),
|
NS_ENSURE_TRUE(aDontExtendURIs.AppendElement(protoBinding->BindingURI()),
|
||||||
NS_ERROR_OUT_OF_MEMORY);
|
NS_ERROR_OUT_OF_MEMORY);
|
||||||
|
Loading…
Reference in New Issue
Block a user