diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 23:55:57 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 23:55:57 +0000 |
commit | d88bf0abc08d368fd615a645bd0125ee6ab4f7c2 (patch) | |
tree | 1468242a3927c53b9548463b8bcb02fc32d4f6f3 /third_party | |
parent | 3962ea98fe59edad2b2c1dcb1b1893304526369b (diff) | |
download | chromium_src-d88bf0abc08d368fd615a645bd0125ee6ab4f7c2.zip chromium_src-d88bf0abc08d368fd615a645bd0125ee6ab4f7c2.tar.gz chromium_src-d88bf0abc08d368fd615a645bd0125ee6ab4f7c2.tar.bz2 |
Treat files downloaded from the address bar as "always safe" (including extensions per discussion with asargent and the extensions folks).
This required plumbing the PageTransition::Type from render_view.cc back up through various layers to the download system, as well as adding an extra state qualifier bit on the Type to mark navigations triggered "FROM_ADDRESS_BAR" (since the Type itself sans-qualifier cannot be used to reliably check this).
This also fixes an inconsistency in IsDangerousFile() where "auto-open" lowered our safety checks for Dangerous files but not for AllowOnUserGesture files.
BUG=87192,92345
TEST=Paste the PDF link from bug 87192 comment 0 into your address bar and hit enter. The file should download without triggering any warning UI in the download shelf.
Review URL: http://codereview.chromium.org/7624031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions