mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
[DOM] Reset mCompileResult in txMozillaXSLTProcessor::ImportStylesheet.
This commit is contained in:
parent
d377b3ae17
commit
9d8a3f0848
1 changed files with 3 additions and 0 deletions
|
|
@ -604,6 +604,9 @@ txMozillaXSLTProcessor::ImportStylesheet(nsIDOMNode *aStyle)
|
|||
NS_ENSURE_TRUE(!mStylesheetDocument && !mStylesheet,
|
||||
NS_ERROR_NOT_IMPLEMENTED);
|
||||
|
||||
// Reset mCompileResult when importing.
|
||||
mCompileResult = NS_OK;
|
||||
|
||||
nsCOMPtr<nsINode> node = do_QueryInterface(aStyle);
|
||||
if (!node || !nsContentUtils::SubjectPrincipalOrSystemIfNativeCaller()->Subsumes(node->NodePrincipal())) {
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue