commit | 4227e07dc0e76e34cf17738598e299530bb12116 | [log] [tgz] |
---|---|---|
author | Joey Arhar <jarhar@chromium.org> | Thu Jun 11 05:19:56 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 11 05:19:56 2020 |
tree | 86a0f67373a28a9e99dc282a8c04414a6bb7478d | |
parent | d52797863d08f430a7a8159d5ae4ef7a29574dd2 [diff] |
Restrict sanitization of visible input values This patch makes it so we only sanitize the text in input elements when the value attribute (defaultValue) when the default value is actually being used. Before this patch, the visible text entered by the user is sanitized in-place every time the value attribute (for the default value) is modified, even though we aren't using the default value anymore. This patch will check the dirty flag, which signals if we are using the default value attribute or not, before sanitizing the visible value. This way we will still apply sanitization to default values provided programmatically when they are actually used, but won't change text a user entered. Bug: 1067117 Change-Id: Ic185d6d173d40c1b0726c0c3fb67a6937fc8534f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2133229 Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#777263}
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 .
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.