commit | 74132fcd943d3e50e97cb71ae2ec9b95da3e064c | [log] [tgz] |
---|---|---|
author | dpapad <dpapad@chromium.org> | Fri Feb 08 13:09:48 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 08 13:09:48 2019 |
tree | 35fbd443b36a3fed937000d4cd004685b5d0ad8d | |
parent | 12fb3f13540d9ca468323a71ccaa87d22081b583 [diff] |
Settings WebUI: Tweak logic that shows sync cancel dialog. The code was triggering a navigation from within a currentRouteChanged observer, which triggers another round of observer notifications, which resulted in observers getting in a weird state. Unfortunately triggering a navigation from within such an observer is not well suported from the routing mechanism (no such use case previously AFAIK). Fixed by yielding first, such that all observers finish, before triggering a new navigation. Bug: 929026 Change-Id: Iee89af435bb2c8a7c738622abdc45d568173d07b Reviewed-on: https://chromium-review.googlesource.com/c/1460398 Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Thomas Tangl <tangltom@chromium.org> Reviewed-by: Thomas Tangl <tangltom@chromium.org> Cr-Commit-Position: refs/heads/master@{#630287}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .