Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios] Fix crash related to download and prerendering
When a WebState is removed from the WebStateList while a download is pending/started/complete, it needs to inform the delegate so that it can be stopped. This requires remembering in DownloadManagerTabHelper whether the delegate has been started, which happens from `DidCreateDownload()` if the WebState is visible by that point or `WasShown()`. (cherry picked from commit 794decd) Fixed: 1317293 Change-Id: I72dedbf8c03107405edb6b1fc4abf4e150dee951 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3592976 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by: Harry Souders <harrysouders@google.com> Commit-Queue: Harry Souders <harrysouders@google.com> Cr-Original-Commit-Position: refs/heads/main@{#993753} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3594442 Reviewed-by: Krishna Govind <govind@chromium.org> Commit-Queue: Krishna Govind <govind@chromium.org> Owners-Override: Krishna Govind <govind@chromium.org> Cr-Commit-Position: refs/branch-heads/5005@{#33} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information