commit | cded02d9fc877842c35ba1c1225a5d0a4e210cb2 | [log] [tgz] |
---|---|---|
author | avvall <avvall@google.com> | Wed Jul 06 19:31:54 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 06 19:31:54 2022 |
tree | 2819b7a917421d0ea3a95fbb349a3eebaf892268 | |
parent | 8fbe1aeec3b14f95fd8e81927672287903ffcf5a [diff] |
WebView: Adding check and log error for invalid file URIs Currently, there are no warnings or checks if the onShowFileChooser API is given an invalid file URI. In order to fix this, we check the file URIs to see if we can open them using the GURL#is_valid API. If not, an error is logged. Test: See bug ticket comments for testing information. Bug: 1298648 Change-Id: I26cb4739c5f3b504a3f9469c968689c56df51ade Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3690012 Commit-Queue: Adam Walls <avvall@google.com> Reviewed-by: Michael Bai <michaelbai@chromium.org> Reviewed-by: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1021306}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.