forked from bromite/bromite
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some privacy issue from TAO api
in the future it should be possible to disable it completely
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
build/patches/00Temp-PerformanceNavigationTiming-privacy-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
From: uazo <uazo@users.noreply.github.com> | ||
Date: Wed, 11 Oct 2023 09:40:53 +0000 | ||
Subject: Temp PerformanceNavigationTiming privacy fix | ||
|
||
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html | ||
--- | ||
.../renderer/core/timing/performance_navigation_timing.cc | 2 ++ | ||
.../blink/renderer/core/timing/performance_resource_timing.cc | 3 ++- | ||
2 files changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/third_party/blink/renderer/core/timing/performance_navigation_timing.cc b/third_party/blink/renderer/core/timing/performance_navigation_timing.cc | ||
--- a/third_party/blink/renderer/core/timing/performance_navigation_timing.cc | ||
+++ b/third_party/blink/renderer/core/timing/performance_navigation_timing.cc | ||
@@ -31,6 +31,7 @@ using network::mojom::blink::NavigationDeliveryType; | ||
namespace { | ||
|
||
String GetSystemEntropy(DocumentLoader* loader) { | ||
+ if ((true)) return "high"; | ||
if (loader) { | ||
switch (loader->GetTiming().SystemEntropyAtNavigationStart()) { | ||
case mojom::blink::SystemEntropy::kHigh: | ||
@@ -215,6 +216,7 @@ AtomicString PerformanceNavigationTiming::type() const { | ||
} | ||
|
||
AtomicString PerformanceNavigationTiming::deliveryType() const { | ||
+ if ((true)) return g_empty_atom; | ||
DocumentLoader* loader = GetDocumentLoader(); | ||
if (!loader) { | ||
return GetDeliveryType(); | ||
diff --git a/third_party/blink/renderer/core/timing/performance_resource_timing.cc b/third_party/blink/renderer/core/timing/performance_resource_timing.cc | ||
--- a/third_party/blink/renderer/core/timing/performance_resource_timing.cc | ||
+++ b/third_party/blink/renderer/core/timing/performance_resource_timing.cc | ||
@@ -122,7 +122,7 @@ uint64_t PerformanceResourceTiming::GetTransferSize( | ||
AtomicString PerformanceResourceTiming::GetDeliveryType() const { | ||
return info_->cache_state == mojom::blink::CacheState::kNone | ||
? g_empty_atom | ||
- : delivery_type_names::kCache; | ||
+ : g_empty_atom; | ||
} | ||
|
||
AtomicString PerformanceResourceTiming::deliveryType() const { | ||
@@ -156,6 +156,7 @@ AtomicString PerformanceResourceTiming::GetNextHopProtocol( | ||
returnedProtocol = g_empty_atom; | ||
} | ||
|
||
+ returnedProtocol = g_empty_atom; | ||
return returnedProtocol; | ||
} | ||
|
||
-- | ||
2.25.1 |