Merge pull request #17 from classilla/master

keep up
This commit is contained in:
Riccardo 2018-11-26 17:00:34 +01:00 committed by GitHub
commit c51bf4c5a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2021 additions and 564 deletions

View File

@ -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

View File

@ -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