Skip to content

script: Prevent panic on multiple calls to MessagePort::close#58886

Open
servo-wpt-sync wants to merge 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_43553
Open

script: Prevent panic on multiple calls to MessagePort::close#58886
servo-wpt-sync wants to merge 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_43553

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Mar 31, 2026

Converted ManagedMessagePort from a struct to an enum with Enabled and Disabled variants.

Testing: ran ./mach test-wpt tests/wpt/tests/webmessaging/message-channels/close.any.js result: ```web-platform-test

Ran 18 checks (16 subtests, 2 tests)
Expected results: 18
Unexpected results: 0
OK
```

Fixes #<!-- nolink -->36765

Reviewed in servo/servo#43553

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 Servo project.

…ortDom an enum

Signed-off-by: Sabb <sarafaabbas@gmail.com>
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