commit | 8f94358b26ba6caf99b576547b1c49b759637b49 | [log] [tgz] |
---|---|---|
author | Scott Violet <sky@chromium.org> | Thu Sep 30 00:36:36 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 30 00:36:36 2021 |
tree | ee0bef7cbcc7b46d4164c830f28b0b8c9ff2cb0a | |
parent | f666e640b48549eeccbff46b7de37e899cacc6ae [diff] |
Revert "Fix Event to copy target" This reverts commit a65ab09ec03e490efe4896b03af8a2bcfb4f7d81 as it causes a use-after-free. The issue is some code keeps around Events. Code that does this makes a copy, and expects the Event to be valid. By allowing the target to be copied makes it all to easy to get a use-after-free if the EventTarget is used from the Event. Also note that I had to remove an assertion in a drag and drop test that was added after the original patch landed. Bug: 1253238 TEST: none Change-Id: Ib304e8d4d63162987ddd7cb5776d916bce5af9a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3193882 Reviewed-by: James Cook <jamescook@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/main@{#926563}
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.