[Invokers] Only dispatch invoke for built-ins or actions containing '-' (This relands https://chromium-review.googlesource.com/c/chromium/src/+/5366502 after fixing timeout issues in https://chromium-review.googlesource.com/c/chromium/src/+/5372478) This change refactors the `HandleInvokeInternal` calls to use an enum class of known attribute values including a `kCustom` key which can determine if the invoke action meets the criteria for being a "custom" action - that is it includes a dash (see https://github.com/whatwg/html/pull/9841/commits/b40ba866cc21553f63d8f6244becbdbc38176310). This also updates the tests to reflect this; only actions with a `-`, or otherwise known actions, will dispatch an event. All other actions do not, and must be manually dispatched. This does not preclude web authors from manually dispatching said events. Bug: 40947660 Change-Id: Ie6efeac7991c449b54d0c8b7ed360501ae5c8d37 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5388656 Reviewed-by: Joey Arhar <jarhar@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Auto-Submit: Keith Cirkel <chromium@keithcirkel.co.uk> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1277851}
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.