commit | ad256cdfdd100baa0eae5a457f70f9ba4a642a81 | [log] [tgz] |
---|---|---|
author | Stephane Zermatten <szermatt@chromium.org> | Fri Feb 01 09:58:35 2019 |
committer | Stephane Zermatten <szermatt@chromium.org> | Fri Feb 01 09:58:35 2019 |
tree | 7caab57b262212a53aea5f8b0c9b632ac404d00b | |
parent | e49f31f0ee44daf56762162620cb5d5b51885b7c [diff] |
This is the cherry pick merge for the M73 branch which was approved here: http://crbug.com/927203 [Autofill Assistant] Avoid race conditions in graceful shutdown. Before this patch, there were cases where the controller would enter graceful shutdown because of a script, with a successful message, and then notice an error, and change that message to an error. The error was usually caused by DidStartNavigation noticing an unexpected navigation event, triggered by an action run at the end of the last script. This patch attempts to avoid such case by: - only checking for unexpected navigation events in the PROMPT state. This specifically excludes the STOPPED and RUNNING states. - not reporting errors or accepting script updates (OnGetScript) in the STOPPED state - stopping script checks when entering the fatal error state Bug: 806868 Change-Id: I408d2652257d9524740e44c79b7fa5201ef7cc17 Reviewed-on: https://chromium-review.googlesource.com/c/1436047 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by: Mathias Carlen <mcarlen@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#626937}(cherry picked from commit a42a78954e4c0da3d5b7dd1935626e815416fe09) Reviewed-on: https://chromium-review.googlesource.com/c/1449551 Reviewed-by: Stephane Zermatten <szermatt@chromium.org> Cr-Commit-Position: refs/branch-heads/3683@{#108} Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
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 .