Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Unified Diff: chrome/browser/resources/safe_browsing/README.md

Issue 2060923002: Neutralize dangerous subresource files during Save Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@save-package-cleanup-1
Patch Set: Add a note to safe_browsing/README.md about "Save as" downloads Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/safe_browsing/README.md
diff --git a/chrome/browser/resources/safe_browsing/README.md b/chrome/browser/resources/safe_browsing/README.md
index d61aafff67c4d23b8dea5dddb84a0be33e5b5ccf..9740245c09ea396ea7ea6ea5a9663df60a08301a 100644
--- a/chrome/browser/resources/safe_browsing/README.md
+++ b/chrome/browser/resources/safe_browsing/README.md
@@ -66,6 +66,16 @@ See `download_file_types.proto` for all fields.
3. The `default_file_type`'s settings will be filled in.
* `platform_settings.danger_level`: (required)
+ Note that this policy affects how individual file downloads are handled as
+ well as how subresources are handled for *"Save As ..."* download of a
+ complete web page.
+
+ For *"Save As ..."* downloads, if any subresource ends up with a file type
+ that is considered `DANGEROUS` or `ALLOW_ON_USER_GESTURE`, then the filename
+ will be changed to end in `.download` to prevent the accidental opening of a
+ dangerous file that was only meant to be consumed as a subresource of a web
+ page.
+
asanka 2016/06/16 18:51:17 +nparker: PTAL?
Nathan Parker 2016/06/16 20:34:03 LGTM. Thanks.
* `NOT_DANGEROUS`: Safe to download and open, even if the download
was accidental.
* `DANGEROUS`: Always warn the user that this file may harm their
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | chrome/test/data/save_page/dubious-subresources.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698