mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
nsContentSecurityManager::CheckFTPSubresourceLoad: fix crash when viewing HTML in FTP site
This commit is contained in:
parent
969d239b65
commit
ac0a9f144e
1 changed files with 3 additions and 0 deletions
|
|
@ -139,6 +139,9 @@ nsContentSecurityManager::CheckFTPSubresourceLoad(nsIChannel* aChannel)
|
|||
nsIPrincipal* triggeringPrincipal = loadInfo->TriggeringPrincipal();
|
||||
nsCOMPtr<nsIURI> tURI;
|
||||
triggeringPrincipal->GetURI(getter_AddRefs(tURI));
|
||||
if(!tURI) {
|
||||
return NS_OK;
|
||||
}
|
||||
bool isTrigFtpURI = (NS_SUCCEEDED(tURI->SchemeIs("ftp", &isTrigFtpURI)) && isTrigFtpURI);
|
||||
if (isTrigFtpURI) {
|
||||
return NS_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue