зеркало из https://github.com/mozilla/gecko-dev.git
Followup to bug 84582 to restore the old error-handling behavior here. Fixesone of the reftests.
This commit is contained in:
Родитель
75d0ec2b2f
Коммит
8f37c9e8d4
|
@ -2534,7 +2534,14 @@ nsXULDocument::InsertXMLStylesheetPI(const nsXULPrototypePI* aProtoPI,
|
|||
++mPendingSheets;
|
||||
}
|
||||
|
||||
return rv;
|
||||
// Ignore errors from UpdateStyleSheet; we don't want failure to
|
||||
// do that to break the XUL document load. But do propagate out
|
||||
// NS_ERROR_OUT_OF_MEMORY.
|
||||
if (rv == NS_ERROR_OUT_OF_MEMORY) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче