mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-10 18:29:43 +00:00
commit
c51bf4c5a1
|
@ -12,5 +12,6 @@ endif
|
|||
set verbose
|
||||
cp ../esr60/security/nss/lib/ckfw/builtins/certdata.txt security/nss/lib/ckfw/builtins/certdata.txt
|
||||
cp ../esr60/security/manager/ssl/StaticHPKPins.h security/manager/ssl/StaticHPKPins.h
|
||||
cp ../esr60/netwerk/dns/effective_tld_names.dat netwerk/dns/effective_tld_names.dat
|
||||
perl ./104fx_import_esr60_stspreload.pl > security/manager/ssl/nsSTSPreloadList.inc
|
||||
|
||||
|
|
|
@ -10596,15 +10596,17 @@ nsDocShell::DoURILoad(nsIURI* aURI,
|
|||
// the principal, and thus does not have flags on the protocol that
|
||||
// ask for it. If the load is for a data: URI, inherit the principal if
|
||||
// the system principal initiated the load to maintain compatibility
|
||||
// with addons, but warn the user as a penalty (TenFourFox issue 525).
|
||||
// with addons (TenFourFox issue 525). This still maintains unique URIs
|
||||
// for web content, so it's still an improvement over previously.
|
||||
bool isData = false;
|
||||
rv = aURI->SchemeIs("data", &isData);
|
||||
if (NS_SUCCEEDED(rv) && isData) {
|
||||
if (nsContentUtils::IsSystemPrincipal(triggeringPrincipal)) {
|
||||
#if DEBUG
|
||||
fprintf(stderr,
|
||||
"Warning: TenFourFox enabling inherited principal for data: URI from system.\n"
|
||||
"Warning: Make sure you are using a minimum set of up-to-date addons.\n"
|
||||
);
|
||||
#endif
|
||||
inherit = true;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user