Skip to content

[Platform-provided behaviors] Introduce behaviors for CE#58628

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7666964
Mar 20, 2026
Merged

[Platform-provided behaviors] Introduce behaviors for CE#58628
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7666964

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 19, 2026

This CL implements the core infrastructure for platform-provided
behaviors. attachInternals() is updated to accept an optional for
behaviors, the ElementBehavior base interface is created to represent
platform-provided capabilities and a read-only behaviors attribute is
added to ElementInternals to track attached behaviors. Behaviors are
immutable once attached via attachInternals().

Explainer:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PlatformProvidedBehaviors/explainer.md
Design doc:
https://docs.google.com/document/d/1LA1hhzxmi4OmZoGtIdnwvL3g7y48YjXTOoUvFtxFugE/edit?usp=sharing

Bug: 486928684
Change-Id: Ic071377e884f4d78e06895ca88273ec134592540
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7666964
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Ana Sollano Kim <ansollan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1602752}

This CL implements the core infrastructure for platform-provided
behaviors. `attachInternals()` is updated to accept an optional for
behaviors, the `ElementBehavior` base interface is created to represent
platform-provided capabilities and a read-only behaviors attribute is
added to ElementInternals to track attached behaviors. Behaviors are
immutable once attached via `attachInternals()`.

Explainer:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PlatformProvidedBehaviors/explainer.md
Design doc:
https://docs.google.com/document/d/1LA1hhzxmi4OmZoGtIdnwvL3g7y48YjXTOoUvFtxFugE/edit?usp=sharing

Bug: 486928684
Change-Id: Ic071377e884f4d78e06895ca88273ec134592540
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7666964
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Ana Sollano Kim <ansollan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1602752}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit f7e7efe into master Mar 20, 2026
24 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7666964 branch March 20, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants