mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 878325 - Propagate exceptions out of CreateTemplateBuilder and LoadDataSources. r=bz
This commit is contained in:
parent
0e971c2ed9
commit
8dd33a69a6
@ -3871,8 +3871,10 @@ XULDocument::CreateTemplateBuilder(nsIContent* aElement)
|
||||
if (! builder)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
builder->Init(aElement);
|
||||
builder->CreateContents(aElement, false);
|
||||
nsresult rv = builder->Init(aElement);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
rv = builder->CreateContents(aElement, false);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -1243,7 +1243,8 @@ nsXULTemplateBuilder::LoadDataSources(nsIDocument* aDocument,
|
||||
if (!mRoot->IsXUL()) {
|
||||
// Hmm. This must be an HTML element. Try to set it as a
|
||||
// JS property "by hand".
|
||||
InitHTMLTemplateRoot();
|
||||
rv = InitHTMLTemplateRoot();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user