mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
parent
dee48511aa
commit
b39b43014b
1 changed files with 4 additions and 0 deletions
|
|
@ -45,6 +45,10 @@ void URIUtils::resolveHref(const nsAString& href, const nsAString& base,
|
||||||
void
|
void
|
||||||
URIUtils::ResetWithSource(nsIDocument *aNewDoc, nsINode *aSourceNode)
|
URIUtils::ResetWithSource(nsIDocument *aNewDoc, nsINode *aSourceNode)
|
||||||
{
|
{
|
||||||
|
if (!aSourceNode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> sourceDoc = aSourceNode->OwnerDoc();
|
nsCOMPtr<nsIDocument> sourceDoc = aSourceNode->OwnerDoc();
|
||||||
nsIPrincipal* sourcePrincipal = sourceDoc->NodePrincipal();
|
nsIPrincipal* sourcePrincipal = sourceDoc->NodePrincipal();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue