mirror of
https://github.com/daijro/camoufox.git
synced 2026-10-29 16:05:58 +00:00
fix: correct fingerprint-injection.patch hunk line count and trailing whitespace
- Change hunk header from @@ -625,8 +625,12 @@ to @@ -625,6 +625,13 @@ - Remove trailing whitespace from line 182
This commit is contained in:
@@ -174,12 +174,12 @@ index 8e577bd9fd..3ed748a75f 100644
|
||||
// Check whether an exception overrides the global cookie behavior
|
||||
// Note that the code for getting the URI here matches that in
|
||||
// nsHTMLDocument::SetCookie.
|
||||
@@ -625,8 +625,12 @@ bool Navigator::CookieEnabled() {
|
||||
@@ -625,6 +625,13 @@ bool Navigator::CookieEnabled() {
|
||||
}
|
||||
|
||||
bool Navigator::OnLine() {
|
||||
+ if (auto value = MaskConfig::GetBool("navigator.onLine"); value.has_value())
|
||||
+ return value.value();
|
||||
+ return value.value();
|
||||
+ if (nsContentUtils::ShouldResistFingerprinting(
|
||||
+ GetDocShell(), RFPTarget::NetworkConnection)) {
|
||||
+ return true;
|
||||
|
||||
Reference in New Issue
Block a user