commit | 95f31b9f36c02b47c6872520041fedb491ce8693 | [log] [tgz] |
---|---|---|
author | Min Qin <qinmin@chromium.org> | Tue Jun 12 17:13:49 2018 |
committer | Min Qin <qinmin@chromium.org> | Tue Jun 12 17:13:49 2018 |
tree | 8006f1e9d32c02716f4c06a7220a52e3c489ba0f | |
parent | 27813b0c26e46ed1906d9cab2d379c3b9c245961 [diff] |
Prompt user before openning a download from extension Downloads api allows an extension to open a download with a user gesture. However, the current user gesture check is passed from the renderer, and it can be easily compromised. This CL adds a prompt dialog to notify user before opening a download. BUG=666824 Change-Id: I6ec9709fa183f9784db323603f356dc6aa9ea6e1 Reviewed-on: https://chromium-review.googlesource.com/1069320 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#564250}(cherry picked from commit 7b7cbbbf249aaa55b915ed3b316aceeb5c0c0bdb) Reviewed-on: https://chromium-review.googlesource.com/1097535 Reviewed-by: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/branch-heads/3440@{#302} Cr-Branched-From: 010ddcfda246975d194964ccf20038ebbdec6084-refs/heads/master@{#561733}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .