commit | da536894f822fc7c5befcfeeffb5c464aad65611 | [log] [tgz] |
---|---|---|
author | Sylvain Defresne <sdefresne@chromium.org> | Wed Feb 05 18:46:16 2025 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Feb 05 19:08:12 2025 |
tree | dbf3d3c44c0452bae2177cb7f04c947b5099608e | |
parent | 5e37679712bb27c54c3296ac59e36952770e3771 [diff] |
[ios] Add a workaround for a bug in WebKit Calling +[WKWebsitDataStore removeDataStoreForIdentifier:completion:] without instantiating any WKWebsitDataStore leads to a crash. This is a bug in WebKit (likely caused by some lazy initialization performed when the first WKWebsitDataStore, and this method depends on the lazy initialization to have happened). Additionally, use `base::BindPostTask(...)` to ensure the callback is called on the correct sequence even if WebKit invoke the block on a background queue (the documentation does not precise on which queue the completion will be invoked). Bug: 333865629 Change-Id: Ieaa9e0f48ec068329cc2ecba8342eb45716ffde4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6233834 Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Mike Dougherty <michaeldo@chromium.org> Reviewed-by: Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1416307} NOKEYCHECK=True GitOrigin-RevId: d99f2e85b6cbf7ebdc31a733e4e911b2d392d051
This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.