commit | 0c75e88e66cd8232b1e5d0624d9039c5b90aaebb | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Thu Sep 09 20:45:28 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 09 20:45:28 2021 |
tree | b5f55e93bcc296f4edb6e143a7f742689b71b9ba | |
parent | 87da4763a9274e50fdbe3980c95171239b446e05 [diff] |
webhid: Close service connection when context is lost This fixes an issue where the execution context could be destroyed before the mojo connection to the HID service is disconnected, causing blink::HID to be torn down with pending Promise callbacks. This CL makes blink::HID an ExecutionContextLifecycleObserver so it can respond to ContextDestroyed and resolve the pending callbacks. Bug: 1243284 Change-Id: Ic1860ffa39d7e1fc7197b14c8cb0bbe4570d1115 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3140735 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/main@{#919947}
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.