[Autofill Assistant] Fix to always use the page URL in controller.
Before this patch, scripts were checked for the url from DidFinishLoad. This generally works, because most URLs loaded from a page belong to the same domain, but not all. In some cases, depending on loading order, this resulted in the set of runnable script being cleared unexpectedly. With this patch, the controller always uses the page URL. In most cases, since DidFinishLoad reports loading resources, this reports the same URL, wehich is a no-op for GetOrCheckScripts. The set of runnable scripts should now be stable on a given page. Bug: 806868 Change-Id: Ifb8f5955c00396a9d2165eb0bacf73c8c825f76d Reviewed-on: https://chromium-review.googlesource.com/1257002Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Cr-Commit-Position: refs/heads/master@{#595855}
Showing
Please register or sign in to comment