commit | afc1acf5c6964ff56a47ded4a8817de92c70aea9 | [log] [tgz] |
---|---|---|
author | Ewann Pelle <ewannpv@chromium.org> | Fri Feb 07 13:02:57 2025 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 07 14:04:57 2025 |
tree | af169ac7e9eec69bad7370b117f24b4d99623977 | |
parent | af13b32e35ae97a5b828108628a2b5343b97d736 [diff] |
[iOS] Fixes drag during webStateList update `_visibleItemsDuringDrag` should be recreated after a webStateList update. Otherwise the `destinationItemIndex` could be greater than its count. This CL also adds a safety check before allowing to drop an item to an invalid index. Bug: 394365060 Change-Id: I442611d3d78bb62afe119c03ad739580af9610fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6243857 Commit-Queue: Ewann Pellé <ewannpv@chromium.org> Reviewed-by: Louis Romero <lpromero@google.com> Cr-Commit-Position: refs/heads/main@{#1417268} NOKEYCHECK=True GitOrigin-RevId: c1460e4c0ff90e4a2ffa46ff200141c66fa8b5cc
This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.