commit | 9074c171ebd6553d023414ad984e80caa6c1fc67 | [log] [tgz] |
---|---|---|
author | Eric Sum <esum@google.com> | Wed Jun 12 19:41:10 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 12 19:41:10 2024 |
tree | b560265ec784144ec62f5fe74cb65364417f7592 | |
parent | c16b87dcbf48681f579ad3cce0e00cd678430eab [diff] |
Use WeakPtr for NativeWidgetDelegate on mac. The NativeWidgetDelegate (implemented by Widget) can be destroyed before NativeWidgetMac for the CLIENT_OWNS_WIDGET ownership model. Using a raw_ptr risks use-after-free, so a WeakPtr is more appropriate. A couple of unit tests have been added to exercise this cases. To get them to pass, it took the changes in this CL, plus these: https://crrev.com/c/5617677 https://crrev.com/c/5617579 Bug: b:294094124 Change-Id: Ibb08e1e8978af553501d3c3b1dce6eba3cb681e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5623298 Reviewed-by: Allen Bauer <kylixrd@chromium.org> Commit-Queue: Eric Sum <esum@google.com> Cr-Commit-Position: refs/heads/main@{#1314185}
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.