diff options
author | Taym Haddadi <haddadi.taym@gmail.com> | 2024-08-08 12:12:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 10:12:45 +0000 |
commit | 08eb4faf4d2805283137a19739b092cd7ddff600 (patch) | |
tree | 89a3c6966bacc0c06ee9ced07b509036528f1e55 /components/script/dom/worker.rs | |
parent | f989d3776eca7c4a21f03a406a11c1b1228b285e (diff) | |
download | servo-08eb4faf4d2805283137a19739b092cd7ddff600.tar.gz servo-08eb4faf4d2805283137a19739b092cd7ddff600.zip |
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>
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r-- | components/script/dom/worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs index 2ea9b3e497c..9158579c599 100644 --- a/components/script/dom/worker.rs +++ b/components/script/dom/worker.rs @@ -18,7 +18,7 @@ use uuid::Uuid; use crate::dom::abstractworker::{SimpleWorkerErrorHandler, WorkerScriptMsg}; use crate::dom::bindings::cell::DomRefCell; -use crate::dom::bindings::codegen::Bindings::MessagePortBinding::PostMessageOptions; +use crate::dom::bindings::codegen::Bindings::MessagePortBinding::StructuredSerializeOptions; use crate::dom::bindings::codegen::Bindings::WorkerBinding::{WorkerMethods, WorkerOptions}; use crate::dom::bindings::error::{Error, ErrorResult, Fallible}; use crate::dom::bindings::inheritance::Castable; @@ -243,7 +243,7 @@ impl WorkerMethods for Worker { &self, cx: JSContext, message: HandleValue, - options: RootedTraceableBox<PostMessageOptions>, + options: RootedTraceableBox<StructuredSerializeOptions>, ) -> ErrorResult { let mut rooted = CustomAutoRooter::new( options |