From b05a3c39b8c9791c54ad6c6469fa41b516d633de Mon Sep 17 00:00:00 2001 From: Jason Tsai Date: Mon, 26 May 2025 22:57:21 +0900 Subject: [PATCH] doc: fix `cross_realm_transform` documentation Signed-off-by: Jason Tsai --- components/script/dom/globalscope.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index 38c3018e9b8..6d98e31d7c3 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -459,8 +459,8 @@ pub(crate) struct ManagedMessagePort { /// Whether the port has been closed by script in this global, /// so it can be removed. explicitly_closed: bool, - /// Handler for a transfered transform stream. - /// A message port can be used to transfer either a readable or a writable stream. + /// The handler for `message` or `messageerror` used in the cross realm transform, + /// if any was setup with this port. cross_realm_transform: Option, }