commit | f5cbb8d780a8646ca92995167cacce75d19d6205 | [log] [tgz] |
---|---|---|
author | Anand K Mistry <amistry@chromium.org> | Fri Oct 15 00:46:15 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 15 00:46:15 2021 |
tree | 2ee3b8e701d6f961b0130313492879e3902e2235 | |
parent | a6f5710c598be8747f7401cb36e08a5701dbaa09 [diff] |
Crostini: Invalidate callback weak ptrs when JS is disallowed A quick user (or integration test ;) ) could close the resize dialog before the resize callback is run. Closing the dialog is a navigation event that disallows JS on the WebUI page. Since JS is disallowed, running ResolveJavascriptCallback() will then CHECK-fail. Fix by introducing a second WeakPtrFactory for use with callbacks, and invaidate the weak pointers when JS is disallowed. Bug: b:202364091 Change-Id: I8fdb3292eabb635bd038379a632c6c51bd81d654 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3216294 Commit-Queue: Anand K Mistry <amistry@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: David Munro <davidmunro@google.com> Cr-Commit-Position: refs/heads/main@{#931799}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.