| Commit-Queue | +1 |
Yishui LiuIs it possible to also add a test for this? Just testing that when web_contents() is empty, this returns nullptr
test added for testing the empty contents case. Thanks for helping me figure out the test crash issue
Skip payments autofill upstream if there is no web content
With this change `AutofillClient` will return nullptr if the web
content is already destroyed, so that save of Autofill data will not
be offered.Yishui LiuThis is not really related to upstream although the crash happens during CVC save. Can we update the title to reflect that this ensures we return nullptr if the web contents isn't present, as there are cases where the strike database is attempted to be retrieved *after* the web contents is destroyed
CL description updated.
// Do not offer save of Autofill data if the `web_contents` is destroyed.Yishui LiuLets remove this
comment removed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (web_contents() == nullptr) {
return nullptr;
}turbo nit/optional:
```
if (!web_contents()) {
return nullptr;
}
```
// Ensure that, when web content is destroyed, `GetStrikeDatabase` will returnweb contents
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
turbo nit/optional:
```
if (!web_contents()) {
return nullptr;
}
```
if check updated.
// Ensure that, when web content is destroyed, `GetStrikeDatabase` will returnYishui Liuweb contents
comments updated.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |