mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Add preference to allow the loading of FTP subresources for corner cases
This commit is contained in:
parent
fdd8829fea
commit
797f3eae35
4 changed files with 19 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ uint32_t nsIOService::gDefaultSegmentSize = 4096;
|
|||
uint32_t nsIOService::gDefaultSegmentCount = 24;
|
||||
|
||||
bool nsIOService::sBlockToplevelDataUriNavigations = false;
|
||||
bool nsIOService::sBlockFTPSubresources = false;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
@ -243,6 +244,8 @@ nsIOService::Init()
|
|||
|
||||
Preferences::AddBoolVarCache(&sBlockToplevelDataUriNavigations,
|
||||
"security.data_uri.block_toplevel_data_uri_navigations", false);
|
||||
Preferences::AddBoolVarCache(&sBlockFTPSubresources,
|
||||
"security.block_ftp_subresources", true);
|
||||
Preferences::AddBoolVarCache(&mOfflineMirrorsConnectivity, OFFLINE_MIRRORS_CONNECTIVITY, true);
|
||||
|
||||
gIOService = this;
|
||||
|
|
@ -1869,5 +1872,11 @@ nsIOService::BlockToplevelDataUriNavigations()
|
|||
return sBlockToplevelDataUriNavigations;
|
||||
}
|
||||
|
||||
/*static*/ bool
|
||||
nsIOService::BlockFTPSubresources()
|
||||
{
|
||||
return sBlockFTPSubresources;
|
||||
}
|
||||
|
||||
} // namespace net
|
||||
} // namespace mozilla
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue