partly import changes from tenfourfox:

- #654: M1746720 M1737816 M1746011 M1739957 M1740985+backbugs M1742421, update HSTS, TLDs (861ae8f62)
- #654: lozad and yt workarounds (5e969c18d)
This commit is contained in:
2022-02-25 11:31:59 +08:00
parent f6e4a6062e
commit b554fc9027
11 changed files with 1076 additions and 2250 deletions
+2
View File
@@ -434,6 +434,8 @@ nsHttpHandler::AddStandardRequestHeaders(nsHttpHeaderArray *request,
!hostLine.EqualsLiteral("imgur.com") &&
!hostLine.EqualsLiteral("github.com") &&
!hostLine.EqualsLiteral("gist.github.com") &&
!hostLine.EqualsLiteral("youtube.com") &&
!hostLine.EqualsLiteral("www.youtube.com") &&
1)) {
rv = request->SetHeader(nsHttp::User_Agent, UserAgent(),
false, nsHttpHeaderArray::eVarietyDefault);