mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Initial structuredClone implementation (#32960)
* Initial structuredClone implementation Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Rename PostMessageOptions to StructuredSerializeOptions Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update wpt test 2020 layout result Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove dublicated StructuredClone implementation Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove comment from StructuredSerializeOptions webidl Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
f989d3776e
commit
08eb4faf4d
20 changed files with 74 additions and 862 deletions
|
@ -16,7 +16,7 @@ use script_traits::PortMessageTask;
|
|||
|
||||
use crate::dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||
use crate::dom::bindings::codegen::Bindings::MessagePortBinding::{
|
||||
MessagePortMethods, PostMessageOptions,
|
||||
MessagePortMethods, StructuredSerializeOptions,
|
||||
};
|
||||
use crate::dom::bindings::conversions::root_from_object;
|
||||
use crate::dom::bindings::error::{Error, ErrorResult};
|
||||
|
@ -288,7 +288,7 @@ impl MessagePortMethods for MessagePort {
|
|||
&self,
|
||||
cx: SafeJSContext,
|
||||
message: HandleValue,
|
||||
options: RootedTraceableBox<PostMessageOptions>,
|
||||
options: RootedTraceableBox<StructuredSerializeOptions>,
|
||||
) -> ErrorResult {
|
||||
if self.detached.get() {
|
||||
return Ok(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue