mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
[XForms] incorrect dup schema error message using inline schemas. Bug 350067, patch by msterlin, r=olli+aaronr
This commit is contained in:
parent
8ad8ca662a
commit
59ea834934
@ -842,15 +842,12 @@ nsXFormsModelElement::InitializeInstances()
|
||||
// document has finished loading.
|
||||
mPendingInlineSchemas.AppendString(id);
|
||||
} else {
|
||||
if (!IsDuplicateSchema(el)) {
|
||||
nsCOMPtr<nsISchema> schema;
|
||||
// no need to observe errors via the callback. instead, rely on
|
||||
// this method returning a failure code when it encounters errors.
|
||||
rv = mSchemas->ProcessSchemaElement(el, nsnull,
|
||||
getter_AddRefs(schema));
|
||||
if (NS_SUCCEEDED(rv))
|
||||
mSchemaCount++;
|
||||
}
|
||||
// We have an inline schema in the model element that was
|
||||
// referenced by the schema attribute. It will be processed
|
||||
// in FinishConstruction so we skip it now to avoid processing
|
||||
// it twice and giving invalid 'duplicate schema' errors.
|
||||
mSchemaTotal--;
|
||||
i--;
|
||||
}
|
||||
} else {
|
||||
nsCAutoString uriSpec;
|
||||
|
Loading…
Reference in New Issue
Block a user