| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool MayContainSensitiveData() const;I think this should probably have some sort of comment saying what its definition of "sensitive" is and when it's appropriate to use. (For example, I could imagine some people expecting that dates could be sensitive.)
case mojom::blink::FormControlType::kSelectOne:I don't understand why `kSelectOne` is in one category but `kSelectMultiple` is in the other.
(Also, other than the inclusion of `kSelectOne`, I *think* this is equivalent to `blink::Element::IsTextControl()`.)
return false;I'm inclined to think this should be `NOTREACHED()` rather than `return false`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I think this should probably have some sort of comment saying what its definition of "sensitive" is and when it's appropriate to use. (For example, I could imagine some people expecting that dates could be sensitive.)
Updated with the comment, it's mostly tied to autofill. Thanks.
I don't understand why `kSelectOne` is in one category but `kSelectMultiple` is in the other.
(Also, other than the inclusion of `kSelectOne`, I *think* this is equivalent to `blink::Element::IsTextControl()`.)
This mostly mirrors [ToAutofillFormControlType](https://source.chromium.org/chromium/chromium/src/+/main:components/autofill/content/renderer/form_autofill_util.cc;drc=a636e7dace1ec22bdd5eb4ab27ccbca9712020d3;bpv=1;bpt=1;l=2287). The only difference was `kInputDate` which was not included as it's not possible for credit card and passwords. As we move to renderer/core, it makes sense to include this as well to be complete. Thanks for catching.
I'm inclined to think this should be `NOTREACHED()` rather than `return false`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi Stephen, could you PTAL at //components/autofill, thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
bool IsPotentialSensitiveAutofillControl() const;I think it's probably better to add an `ly` to the name so that it's `IsPotentiallySensitiveAutofillControl`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I think it's probably better to add an `ly` to the name so that it's `IsPotentiallySensitiveAutofillControl`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |