mirror of
https://github.com/servo/servo.git
synced 2025-06-12 18:34:39 +00:00
* 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>
23 lines
759 B
Text
23 lines
759 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
/*
|
|
* The origin of this IDL file is:
|
|
* https://html.spec.whatwg.org/multipage/#messageport
|
|
*/
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface MessagePort : EventTarget {
|
|
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
|
[Throws] undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
|
undefined start();
|
|
undefined close();
|
|
|
|
// event handlers
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
dictionary StructuredSerializeOptions {
|
|
sequence<object> transfer = [];
|
|
};
|