-
Notifications
You must be signed in to change notification settings - Fork 859
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2100 from brave/francois-2766-mark-of-the-web
Remove source and referrer URLs from download metadata
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
patches/components-download-internal-common-download_item_impl.cc.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,15 @@ | ||
diff --git a/components/download/internal/common/download_item_impl.cc b/components/download/internal/common/download_item_impl.cc | ||
index 4b536f504a4cd61aefb1efcc42e5de801586d62b..24c153bd00a14d6215ff5798f290e7845b328c2c 100644 | ||
--- a/components/download/internal/common/download_item_impl.cc | ||
+++ b/components/download/internal/common/download_item_impl.cc | ||
@@ -1680,8 +1680,8 @@ void DownloadItemImpl::OnDownloadCompleting() { | ||
base::Unretained(download_file_.get()), | ||
GetTargetFilePath(), | ||
delegate_->GetApplicationClientIdForFileScanning(), | ||
- delegate_->IsOffTheRecord() ? GURL() : GetURL(), | ||
- delegate_->IsOffTheRecord() ? GURL() : GetReferrerUrl(), | ||
+ GURL(), // Never leak download URLs in metadata. | ||
+ GURL(), // See brave-browser#2766. | ||
std::move(callback))); | ||
} | ||
|