-
Stephane Zermatten authored
happen. Before this change, ConfigureBottomSheetAction would return immediately after asking for the viewport to be resized. Depending on how quickly that happened, a Focus action following ConfigureBottomSheetAction might see the window height before the resize and not be able to focus. The current workaround for that is to wait after resizing the viewport before focusing on an element, but the time it takes varies a lot. With this change, ConfigureBottomSheetAction waits until the viewport resize has been seen from the Javascript side, so we don't wait longer than strictly necessary. A maximum wait time avoids scripts getting stuck in this action. Bug: b/133665079 Change-Id: Ia37076710634542bb4f15c77f30275c234383cb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640408 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by:
Jordan Demeulenaere <jdemeulenaere@chromium.org> Cr-Commit-Position: refs/heads/master@{#665557}
fc4d56bb