Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
refactor(webapi): rename record role to plain
ldm0a7160b75ac37
diff --git a/moli-renderer-v8/src/context_bootstrap.rs b/moli-renderer-v8/src/context_bootstrap.rsindex 71ef84a9a..11753cfe7 100644--- a/moli-renderer-v8/src/context_bootstrap.rs+++ b/moli-renderer-v8/src/context_bootstrap.rs@@ -659,7 +659,7 @@ fn worker_unsupported_constructor_callback(}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]pub(in crate::context_bootstrap) struct GlobalCachesAccessorDeclaration {#[webapi(accessor_property,@@ -670,7 +670,7 @@ pub(in crate::context_bootstrap) struct GlobalCachesAccessorDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerBase64OperationsDeclaration {#[webapi(method,diff --git a/moli-renderer-v8/src/context_bootstrap/animation_runtime.rs b/moli-renderer-v8/src/context_bootstrap/animation_runtime.rsindex 9738831a4..9229f6bef 100644--- a/moli-renderer-v8/src/context_bootstrap/animation_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/animation_runtime.rs@@ -27,7 +27,7 @@ const KEYFRAME_EFFECT_TARGET_SLOT: &str = "__moliKeyframeEffectTarget";const KEYFRAME_EFFECT_KEYFRAMES_SLOT: &str = "__moliKeyframeEffectKeyframes";#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AnimationPromiseEntryDeclaration {#[webapi(slot = ANIMATION_PROMISE_RESOLVE_SLOT, init = "undefined")]resolve: (),@@ -156,7 +156,7 @@ struct ElementAnimationPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AnimationFinishMicrotaskPayloadDeclaration<'s> {#[webapi(slot = ANIMATION_MICROTASK_ANIMATION_SLOT)]animation: v8::Local<'s, v8::Object>,@@ -165,7 +165,7 @@ struct AnimationFinishMicrotaskPayloadDeclaration<'s> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AnimationPromiseResolverDeclaration<'s> {#[webapi(slot = ANIMATION_PROMISE_RESOLVE_SLOT)]resolve: v8::Local<'s, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/broadcast_channel.rs b/moli-renderer-v8/src/context_bootstrap/broadcast_channel.rsindex 362e48eea..4b9878bd4 100644--- a/moli-renderer-v8/src/context_bootstrap/broadcast_channel.rs+++ b/moli-renderer-v8/src/context_bootstrap/broadcast_channel.rs@@ -112,7 +112,7 @@ struct BroadcastChannelPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct BroadcastChannelMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/canvas/backing_store.rs b/moli-renderer-v8/src/context_bootstrap/canvas/backing_store.rsindex 65f7a7a77..fa3eb1a1c 100644--- a/moli-renderer-v8/src/context_bootstrap/canvas/backing_store.rs+++ b/moli-renderer-v8/src/context_bootstrap/canvas/backing_store.rs@@ -15,7 +15,7 @@ const CANVAS_HAS_CONTEXT_SLOT: &str = "__moliCanvasHasContext";const CANVAS_2D_CONTEXT_SLOT: &str = "__moliCanvas2DContext";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CanvasContextOwnerDeclaration<'scope> {#[webapi(data_property)]canvas: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/canvas/webgl.rs b/moli-renderer-v8/src/context_bootstrap/canvas/webgl.rsindex f273b3591..ae5afed9b 100644--- a/moli-renderer-v8/src/context_bootstrap/canvas/webgl.rs+++ b/moli-renderer-v8/src/context_bootstrap/canvas/webgl.rs@@ -55,7 +55,7 @@ struct WebGlViewportArgs {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebGlContextStateDeclaration<'s> {#[webapi(slot = WEBGL_VIEWPORT_SLOT)]viewport: v8::Local<'s, v8::Array>,@@ -732,7 +732,7 @@ pub(crate) fn webgl_get_context_attributes_callback(}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WebGlContextAttributes {alpha: bool,antialias: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/chrome_runtime.rs b/moli-renderer-v8/src/context_bootstrap/chrome_runtime.rsindex 0f77c9387..dd84a7dad 100644--- a/moli-renderer-v8/src/context_bootstrap/chrome_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/chrome_runtime.rs@@ -19,7 +19,7 @@ const INSTALL_STATE_NOT_INSTALLED: &str = "not_installed";const RUNNING_STATE_CANNOT_RUN: &str = "cannot_run";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ChromeInstallStateDeclaration {#[webapi(data_property = "DISABLED")]disabled: &'static str,@@ -30,7 +30,7 @@ struct ChromeInstallStateDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ChromeRunningStateDeclaration {#[webapi(data_property = "CANNOT_RUN")]cannot_run: &'static str,@@ -41,7 +41,7 @@ struct ChromeRunningStateDeclaration {}#[derive(WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct ChromeAppDeclaration<'scope> {#[webapi(native_data_property = "isInstalled",diff --git a/moli-renderer-v8/src/context_bootstrap/constructors/elements.rs b/moli-renderer-v8/src/context_bootstrap/constructors/elements.rsindex 3baadedbb..96bfa5265 100644--- a/moli-renderer-v8/src/context_bootstrap/constructors/elements.rs+++ b/moli-renderer-v8/src/context_bootstrap/constructors/elements.rs@@ -3,7 +3,7 @@ use crate::webidl;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct HtmlElementConstructorTrapHandlerDeclaration<'scope> {#[webapi(data_property)]construct: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/constructors/text_codecs.rs b/moli-renderer-v8/src/context_bootstrap/constructors/text_codecs.rsindex 327f26893..ad9fa402a 100644--- a/moli-renderer-v8/src/context_bootstrap/constructors/text_codecs.rs+++ b/moli-renderer-v8/src/context_bootstrap/constructors/text_codecs.rs@@ -79,7 +79,7 @@ struct TextDecoderPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TextEncoderEncodeIntoResultDeclaration {read: usize,written: usize,diff --git a/moli-renderer-v8/src/context_bootstrap/crypto/keys.rs b/moli-renderer-v8/src/context_bootstrap/crypto/keys.rsindex 1375d3b10..81f4164ba 100644--- a/moli-renderer-v8/src/context_bootstrap/crypto/keys.rs+++ b/moli-renderer-v8/src/context_bootstrap/crypto/keys.rs@@ -7,19 +7,19 @@ use crate::web_api_interfaces;use moli_webapi_declare::{WebApiFunctionTemplate, WebApiObject};#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NamedAlgorithmDeclaration<'scope> {name: Option<v8::Local<'scope, v8::String>>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AlgorithmNameCloneDeclaration<'scope> {name: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AlgorithmCloneDeclaration<'scope> {name: v8::Local<'scope, v8::Value>,hash: Option<v8::Local<'scope, v8::Object>>,@@ -30,7 +30,7 @@ struct AlgorithmCloneDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct HmacAlgorithmDeclaration<'scope> {name: Option<v8::Local<'scope, v8::String>>,hash: v8::Local<'scope, v8::Object>,@@ -38,14 +38,14 @@ struct HmacAlgorithmDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct SymmetricAlgorithmDeclaration<'scope> {name: Option<v8::Local<'scope, v8::String>>,length: usize,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct RsaAlgorithmDeclaration<'scope> {name: Option<v8::Local<'scope, v8::String>>,hash: v8::Local<'scope, v8::Object>,@@ -54,7 +54,7 @@ struct RsaAlgorithmDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NamedCurveAlgorithmDeclaration<'scope> {name: Option<v8::Local<'scope, v8::String>>,named_curve: Option<v8::Local<'scope, v8::String>>,diff --git a/moli-renderer-v8/src/context_bootstrap/crypto/subtle/key_gen.rs b/moli-renderer-v8/src/context_bootstrap/crypto/subtle/key_gen.rsindex 88747a98d..16acbcc5e 100644--- a/moli-renderer-v8/src/context_bootstrap/crypto/subtle/key_gen.rs+++ b/moli-renderer-v8/src/context_bootstrap/crypto/subtle/key_gen.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CryptoKeyPairDeclaration<'scope> {#[webapi(data_property, enumerable)]private_key: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/css_runtime/highlights.rs b/moli-renderer-v8/src/context_bootstrap/css_runtime/highlights.rsindex 06c4a6e90..f75d365b7 100644--- a/moli-renderer-v8/src/context_bootstrap/css_runtime/highlights.rs+++ b/moli-renderer-v8/src/context_bootstrap/css_runtime/highlights.rs@@ -13,7 +13,7 @@ const HIGHLIGHT_ITERATOR_PROTOTYPE_SLOT: &str = "__moliHighlightIteratorPrototypconst HIGHLIGHT_REGISTRY_ITERATOR_PROTOTYPE_SLOT: &str = "__moliHighlightRegistryIteratorPrototype";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct HighlightIteratorObjectDeclaration<'s> {#[webapi(slot = HIGHLIGHT_ITERATOR_RECORDS_SLOT)]records: v8::Local<'s, v8::Array>,@@ -24,7 +24,7 @@ struct HighlightIteratorObjectDeclaration<'s> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct HighlightIteratorResultDeclaration<'s> {value: v8::Local<'s, v8::Value>,done: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/css_runtime/install.rs b/moli-renderer-v8/src/context_bootstrap/css_runtime/install.rsindex d9b5f7263..0ac5e4d85 100644--- a/moli-renderer-v8/src/context_bootstrap/css_runtime/install.rs+++ b/moli-renderer-v8/src/context_bootstrap/css_runtime/install.rs@@ -8,7 +8,7 @@ use crate::native_bridge::document::install_adopted_style_sheets_array_primordiause moli_webapi_declare::WebApiObject;#[derive(Default, WebApiObject)]-#[webapi(record, own_to_string_tag = "CSS", readonly_to_string_tag)]+#[webapi(plain, own_to_string_tag = "CSS", readonly_to_string_tag)]struct CssNamespaceObjectDeclaration {#[webapi(method,diff --git a/moli-renderer-v8/src/context_bootstrap/dom_rect.rs b/moli-renderer-v8/src/context_bootstrap/dom_rect.rsindex da80d4716..c91bdb886 100644--- a/moli-renderer-v8/src/context_bootstrap/dom_rect.rs+++ b/moli-renderer-v8/src/context_bootstrap/dom_rect.rs@@ -158,7 +158,7 @@ struct DomRectConstructorDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DomRectJsonDeclaration {#[webapi(data_property, enumerable)]x: f64,diff --git a/moli-renderer-v8/src/context_bootstrap/event_legacy.rs b/moli-renderer-v8/src/context_bootstrap/event_legacy.rsindex 67dbc2aea..66052503b 100644--- a/moli-renderer-v8/src/context_bootstrap/event_legacy.rs+++ b/moli-renderer-v8/src/context_bootstrap/event_legacy.rs@@ -184,14 +184,14 @@ struct KeyboardEventGetModifierStateArgs {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyUiEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: i32,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyTextEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,@@ -199,7 +199,7 @@ struct LegacyTextEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyMouseEventBaseInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: i32,@@ -219,7 +219,7 @@ struct LegacyMouseEventBaseInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyMouseEventTailInitDeclaration<'scope> {#[webapi(constructor_default = 0)]buttons: i32,@@ -231,7 +231,7 @@ struct LegacyMouseEventTailInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyKeyboardEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,#[webapi(constructor_default = 0)]@@ -253,7 +253,7 @@ struct LegacyKeyboardEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct LegacyCustomEventInitDeclaration<'scope> {detail: v8::Local<'scope, v8::Value>,}diff --git a/moli-renderer-v8/src/context_bootstrap/events.rs b/moli-renderer-v8/src/context_bootstrap/events.rsindex b7ba2cbba..d63004b23 100644--- a/moli-renderer-v8/src/context_bootstrap/events.rs+++ b/moli-renderer-v8/src/context_bootstrap/events.rs@@ -16,14 +16,14 @@ const FORM_DATA_EVENT_FORM_DATA_SLOT: &str = "__moliFormDataEventFormData";const TRACK_EVENT_TRACK_SLOT: &str = "__moliTrackEventTrack";const EVENT_SUBCLASS_KIND_SLOT: &str = "__moliEventSubclassKind";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PageTransitionEventInitDeclaration {#[webapi(data_property, enumerable)]persisted: bool,}#[derive(WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct StorageEventStateDeclaration<'scope> {#[webapi(data_property)]key: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/events/base.rs b/moli-renderer-v8/src/context_bootstrap/events/base.rsindex 5858dec15..dc90dc0f8 100644--- a/moli-renderer-v8/src/context_bootstrap/events/base.rs+++ b/moli-renderer-v8/src/context_bootstrap/events/base.rs@@ -17,7 +17,7 @@ const EVENT_TIMESTAMP_PRIVATE_SLOT: &str = "__moliEventTimeStamp";const EVENT_IS_TRUSTED_GETTER_FUNCTION_SLOT: &str = "__moliEventIsTrustedGetterFunction";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct InitializedEventHeaderDeclaration<'scope> {#[webapi(data_property = "type")]event_type: v8::Local<'scope, v8::String>,@@ -49,7 +49,7 @@ struct InitializedEventStateDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct InitializedEventIsTrustedAccessorDeclaration {#[webapi(accessor_property,@@ -61,7 +61,7 @@ struct InitializedEventIsTrustedAccessorDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct InitializedEventTailDeclaration {#[webapi(init = false)]composed: (),diff --git a/moli-renderer-v8/src/context_bootstrap/events/subclasses/basic.rs b/moli-renderer-v8/src/context_bootstrap/events/subclasses/basic.rsindex 4a764a8e1..10d357a9d 100644--- a/moli-renderer-v8/src/context_bootstrap/events/subclasses/basic.rs+++ b/moli-renderer-v8/src/context_bootstrap/events/subclasses/basic.rs@@ -2,14 +2,14 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct UiEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct FocusEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,@@ -19,7 +19,7 @@ struct FocusEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TextEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,@@ -27,7 +27,7 @@ struct TextEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CustomEventInitDeclaration<'scope> {detail: v8::Local<'scope, v8::Value>,}diff --git a/moli-renderer-v8/src/context_bootstrap/events/subclasses/data.rs b/moli-renderer-v8/src/context_bootstrap/events/subclasses/data.rsindex a070cc252..b85baabca 100644--- a/moli-renderer-v8/src/context_bootstrap/events/subclasses/data.rs+++ b/moli-renderer-v8/src/context_bootstrap/events/subclasses/data.rs@@ -128,26 +128,26 @@ struct NavigateEventMethodsDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DragEventInitDeclaration<'scope> {data_transfer: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ClipboardEventInitDeclaration<'scope> {clipboard_data: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CapturedMouseEventInitDeclaration {surface_x: i32,surface_y: i32,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct MessageEventInitDeclaration<'scope> {data: v8::Local<'scope, v8::Value>,origin: v8::Local<'scope, v8::String>,@@ -157,7 +157,7 @@ struct MessageEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct InputEventInitDeclaration<'scope> {data: v8::Local<'scope, v8::Value>,input_type: v8::Local<'scope, v8::String>,@@ -165,20 +165,20 @@ struct InputEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CommandEventInitDeclaration<'scope> {source: v8::Local<'scope, v8::Value>,command: String,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct InterestEventInitDeclaration<'scope> {source: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ToggleEventStateDeclaration<'scope> {#[webapi(data_property = "oldState", readonly, dont_delete)]old_state: String,@@ -189,7 +189,7 @@ struct ToggleEventStateDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PopStateEventInitDeclaration<'scope> {state: v8::Local<'scope, v8::Value>,#[webapi(data_property = "hasUAVisualTransition")]@@ -197,13 +197,13 @@ struct PopStateEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PageTransitionEventOwnInitDeclaration {persisted: bool,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ErrorEventInitDeclaration<'scope> {message: v8::Local<'scope, v8::String>,filename: v8::Local<'scope, v8::String>,@@ -213,7 +213,7 @@ struct ErrorEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PromiseRejectionEventInitDeclaration<'scope> {promise: v8::Local<'scope, v8::Value>,reason: v8::Local<'scope, v8::Value>,@@ -258,14 +258,14 @@ struct SecurityPolicyViolationEventInitMembers {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NavigationCurrentEntryChangeEventInitDeclaration<'scope> {from: v8::Local<'scope, v8::Value>,navigation_type: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NavigateEventInitDeclaration<'scope> {navigation_type: v8::Local<'scope, v8::String>,destination: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/events/subclasses/keyboard.rs b/moli-renderer-v8/src/context_bootstrap/events/subclasses/keyboard.rsindex eb1ebaa72..50ea02612 100644--- a/moli-renderer-v8/src/context_bootstrap/events/subclasses/keyboard.rs+++ b/moli-renderer-v8/src/context_bootstrap/events/subclasses/keyboard.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct KeyboardEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,diff --git a/moli-renderer-v8/src/context_bootstrap/events/subclasses/pointer.rs b/moli-renderer-v8/src/context_bootstrap/events/subclasses/pointer.rsindex f3ac9e586..ab0707706 100644--- a/moli-renderer-v8/src/context_bootstrap/events/subclasses/pointer.rs+++ b/moli-renderer-v8/src/context_bootstrap/events/subclasses/pointer.rs@@ -29,7 +29,7 @@ impl<'scope> webidl::WebIdlConverter<'scope> for PointerEventReference<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct MouseEventBaseInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,@@ -48,7 +48,7 @@ struct MouseEventBaseInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct MouseEventModifierInitDeclaration {ctrl_key: bool,shift_key: bool,@@ -57,13 +57,13 @@ struct MouseEventModifierInitDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct MouseEventRelatedTargetDeclaration<'scope> {related_target: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WheelEventDeltaInitDeclaration {delta_x: f64,delta_y: f64,@@ -72,7 +72,7 @@ struct WheelEventDeltaInitDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PointerEventNumberInitDeclaration {pointer_id: f64,width: f64,@@ -87,7 +87,7 @@ struct PointerEventNumberInitDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PointerEventTailInitDeclaration<'scope> {is_primary: bool,pointer_type: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/context_bootstrap/file_api/install.rs b/moli-renderer-v8/src/context_bootstrap/file_api/install.rsindex 69863dd3b..91cb1f7e4 100644--- a/moli-renderer-v8/src/context_bootstrap/file_api/install.rs+++ b/moli-renderer-v8/src/context_bootstrap/file_api/install.rs@@ -15,7 +15,7 @@ struct FileReaderConstantsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct FileApiRuntimeQueuesDeclaration {#[webapi(slot = FILE_READER_QUEUE_SLOT, init = "array")]file_reader_queue: (),diff --git a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/callbacks.rs b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/callbacks.rsindex 6edbd2ecf..631be945a 100644--- a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/callbacks.rs+++ b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/callbacks.rs@@ -18,7 +18,7 @@ use crate::{use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct FormDataEventInitDeclaration<'scope> {form_data: v8::Local<'scope, v8::Object>,bubbles: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/iterators.rs b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/iterators.rsindex 8511127b7..eb64655f9 100644--- a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/iterators.rs+++ b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/iterators.rs@@ -37,7 +37,7 @@ struct FormDataIteratorPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct FormDataIteratorResultDeclaration<'scope> {#[webapi(data_property, enumerable)]done: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/serialize.rs b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/serialize.rsindex 29b5615db..5cd4637c9 100644--- a/moli-renderer-v8/src/context_bootstrap/form_data_runtime/serialize.rs+++ b/moli-renderer-v8/src/context_bootstrap/form_data_runtime/serialize.rs@@ -13,7 +13,7 @@ use moli_encoding::is_charset_sentinel_name;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct EmptyFileOptionsDeclaration {#[webapi(data_property, enumerable)]r#type: &'static str,diff --git a/moli-renderer-v8/src/context_bootstrap/geometry_runtime.rs b/moli-renderer-v8/src/context_bootstrap/geometry_runtime.rsindex dcf2569a5..b20eca932 100644--- a/moli-renderer-v8/src/context_bootstrap/geometry_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/geometry_runtime.rs@@ -120,7 +120,7 @@ dom_matrix_object_declaration!(DomMatrixObjectDeclaration, DOMMatrix);dom_matrix_object_declaration!(DomMatrixReadOnlyObjectDeclaration, DOMMatrixReadOnly);#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DomPointJsonDeclaration {x: f64,y: f64,@@ -129,7 +129,7 @@ struct DomPointJsonDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DomMatrixJsonDeclaration {a: f64,b: f64,diff --git a/moli-renderer-v8/src/context_bootstrap/history_runtime/traversal.rs b/moli-renderer-v8/src/context_bootstrap/history_runtime/traversal.rsindex 6a0306123..2e28acb55 100644--- a/moli-renderer-v8/src/context_bootstrap/history_runtime/traversal.rs+++ b/moli-renderer-v8/src/context_bootstrap/history_runtime/traversal.rs@@ -46,7 +46,7 @@ const TRAVERSAL_INTERCEPT_PROMISE_SLOT: &str = "__lmTraversalInterceptPromise";const NAVIGATION_ACTIVE_TRAVERSAL_INTERCEPT_SLOT: &str = "__lmNavigationActiveTraversalIntercept";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct TraversalPrecommitDataDeclaration<'scope> {#[webapi(slot = TRAVERSAL_PRECOMMIT_ACTIVE_SLOT)]active: bool,@@ -77,7 +77,7 @@ struct TraversalPrecommitDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct TraversalInterceptSettlementDataDeclaration<'scope> {#[webapi(slot = TRAVERSAL_INTERCEPT_ACTIVE_SLOT)]active: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/image_data.rs b/moli-renderer-v8/src/context_bootstrap/image_data.rsindex cd059a963..7295275a1 100644--- a/moli-renderer-v8/src/context_bootstrap/image_data.rs+++ b/moli-renderer-v8/src/context_bootstrap/image_data.rs@@ -68,7 +68,7 @@ struct ImageDataPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ImageDataSettingsDeclaration<'scope> {color_space: v8::Local<'scope, v8::String>,}diff --git a/moli-renderer-v8/src/context_bootstrap/indexed_db/core/cursors/entries.rs b/moli-renderer-v8/src/context_bootstrap/indexed_db/core/cursors/entries.rsindex cb9490bed..7baee767f 100644--- a/moli-renderer-v8/src/context_bootstrap/indexed_db/core/cursors/entries.rs+++ b/moli-renderer-v8/src/context_bootstrap/indexed_db/core/cursors/entries.rs@@ -3,7 +3,7 @@ use crate::util::serialize_v8_iter_array;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CursorSnapshotEntryObjectDeclaration<'scope> {#[webapi(data_property)]key: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/indexed_db/core/objects/metadata/descriptors/create.rs b/moli-renderer-v8/src/context_bootstrap/indexed_db/core/objects/metadata/descriptors/create.rsindex c6c13cda0..0a20c0285 100644--- a/moli-renderer-v8/src/context_bootstrap/indexed_db/core/objects/metadata/descriptors/create.rs+++ b/moli-renderer-v8/src/context_bootstrap/indexed_db/core/objects/metadata/descriptors/create.rs@@ -3,7 +3,7 @@ use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]#[webapi(- record,+ plain,scope_lifetime = 'scope,data_properties,enumerable@@ -17,7 +17,7 @@ struct IndexDescriptorDeclaration<'scope, 'value> {#[derive(WebApiObject)]#[webapi(- record,+ plain,scope_lifetime = 'scope,data_properties,enumerablediff --git a/moli-renderer-v8/src/context_bootstrap/indexed_db/event_target/version_change.rs b/moli-renderer-v8/src/context_bootstrap/indexed_db/event_target/version_change.rsindex 3ec9462d0..36e1230b7 100644--- a/moli-renderer-v8/src/context_bootstrap/indexed_db/event_target/version_change.rs+++ b/moli-renderer-v8/src/context_bootstrap/indexed_db/event_target/version_change.rs@@ -4,7 +4,7 @@ use crate::webidl;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct IdbVersionChangeEventFieldsDeclaration<'scope> {old_version: u64,new_version: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/location_navigation.rs b/moli-renderer-v8/src/context_bootstrap/location_navigation.rsindex 74ee0afef..7144dd196 100644--- a/moli-renderer-v8/src/context_bootstrap/location_navigation.rs+++ b/moli-renderer-v8/src/context_bootstrap/location_navigation.rs@@ -823,7 +823,7 @@ const NAVIGATION_ACTIVE_LOCATION_INTERCEPT_SETTLEMENT_SLOT: &str ="__lmNavigationActiveLocationInterceptSettlement";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LocationInterceptSettlementDataDeclaration<'scope> {#[webapi(slot = LOCATION_INTERCEPT_SETTLEMENT_ACTIVE_SLOT)]active: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/location_runtime/surface.rs b/moli-renderer-v8/src/context_bootstrap/location_runtime/surface.rsindex 040bd7f5b..f97a35f39 100644--- a/moli-renderer-v8/src/context_bootstrap/location_runtime/surface.rs+++ b/moli-renderer-v8/src/context_bootstrap/location_runtime/surface.rs@@ -4,7 +4,7 @@ use crate::webidl;use moli_webapi_declare::WebApiObject;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowLocationAccessorDeclaration {#[webapi(accessor_property,@@ -17,7 +17,7 @@ struct WindowLocationAccessorDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowHistoryAccessorDeclaration {#[webapi(accessor_property,@@ -28,7 +28,7 @@ struct WindowHistoryAccessorDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowNavigationAccessorDeclaration {#[webapi(accessor_property,@@ -40,7 +40,7 @@ struct WindowNavigationAccessorDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DocumentLocationAccessorDeclaration {#[webapi(accessor_property,diff --git a/moli-renderer-v8/src/context_bootstrap/media_queries/events/simple_event_target/listeners.rs b/moli-renderer-v8/src/context_bootstrap/media_queries/events/simple_event_target/listeners.rsindex 1a11fe69f..7a91bceed 100644--- a/moli-renderer-v8/src/context_bootstrap/media_queries/events/simple_event_target/listeners.rs+++ b/moli-renderer-v8/src/context_bootstrap/media_queries/events/simple_event_target/listeners.rs@@ -25,7 +25,7 @@ const SIMPLE_EVENT_TARGET_LISTENER_TYPE_ORDER_SLOT: &str ="__moliSimpleEventTargetListenerTypeOrder";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SimpleObjectAbortListenerDataDeclaration<'scope> {#[webapi(data_property, enumerable)]target: v8::Local<'scope, v8::Object>,@@ -42,7 +42,7 @@ struct SimpleObjectAbortListenerDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SimpleObjectEventListenerEntryDeclaration<'scope> {#[webapi(slot = SIMPLE_EVENT_TARGET_LISTENER_ORIGINAL_SLOT)]original: v8::Local<'scope, v8::Value>,@@ -63,7 +63,7 @@ struct SimpleObjectEventListenerEntryDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SimpleObjectEventHandlerEntryDeclaration<'scope> {#[webapi(slot = SIMPLE_EVENT_TARGET_LISTENER_ORIGINAL_SLOT)]original: Option<v8::Local<'scope, v8::String>>,diff --git a/moli-renderer-v8/src/context_bootstrap/message_ports/delivery.rs b/moli-renderer-v8/src/context_bootstrap/message_ports/delivery.rsindex 07a8f1c2e..baddc0845 100644--- a/moli-renderer-v8/src/context_bootstrap/message_ports/delivery.rs+++ b/moli-renderer-v8/src/context_bootstrap/message_ports/delivery.rs@@ -11,7 +11,7 @@ use crate::worker::worker_message_port_wrapper;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct MessagePortMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/navigation_activation.rs b/moli-renderer-v8/src/context_bootstrap/navigation_activation.rsindex 54fb97b3a..4346907dc 100644--- a/moli-renderer-v8/src/context_bootstrap/navigation_activation.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigation_activation.rs@@ -60,7 +60,7 @@ struct NavigationTransitionObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationTransitionSettleDataDeclaration<'scope> {#[webapi(slot = NAVIGATION_TRANSITION_SETTLE_NAVIGATION_SLOT)]navigation: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/navigation_callbacks/navigation.rs b/moli-renderer-v8/src/context_bootstrap/navigation_callbacks/navigation.rsindex c743b16dc..9d9df4973 100644--- a/moli-renderer-v8/src/context_bootstrap/navigation_callbacks/navigation.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigation_callbacks/navigation.rs@@ -803,7 +803,7 @@ const PRECOMMIT_COMMIT_ATTEMPT_ID_SLOT: &str = "__lmPrecommitCommitAttemptId";const NAVIGATION_PENDING_PRECOMMIT_COMMIT_SLOT: &str = "__lmNavigationPendingPrecommitCommit";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PrecommitCommitDataDeclaration<'scope> {#[webapi(slot = PRECOMMIT_COMMIT_ACTIVE_SLOT)]active: bool,@@ -1340,7 +1340,7 @@ const INTERCEPT_SETTLEMENT_ATTEMPT_ID_SLOT: &str = "__lmInterceptSettlementAttemconst NAVIGATION_ACTIVE_INTERCEPT_SETTLEMENT_SLOT: &str = "__lmNavigationActiveInterceptSettlement";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct InterceptSettlementDataDeclaration<'scope> {#[webapi(slot = INTERCEPT_SETTLEMENT_ACTIVE_SLOT)]active: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/navigation_events.rs b/moli-renderer-v8/src/context_bootstrap/navigation_events.rsindex 4da488554..0b1a37950 100644--- a/moli-renderer-v8/src/context_bootstrap/navigation_events.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigation_events.rs@@ -64,7 +64,7 @@ const ACTIVE_NAVIGATE_EVENT_SIGNAL_SLOT: &str = "__lmActiveNavigateEventSignal";const ACTIVE_NAVIGATE_EVENT_HREF_SLOT: &str = "__lmActiveNavigateEventHref";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationCurrentEntryChangeEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]from: v8::Local<'scope, v8::Value>,@@ -73,7 +73,7 @@ struct NavigationCurrentEntryChangeEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationErrorEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]message: v8::Local<'scope, v8::String>,@@ -88,14 +88,14 @@ struct NavigationErrorEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PopStateEventStateDeclaration<'scope> {#[webapi(data_property)]state: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct HashChangeEventStateDeclaration {#[webapi(data_property = "oldURL")]old_url: String,@@ -104,14 +104,14 @@ struct HashChangeEventStateDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PageTransitionEventStateDeclaration {#[webapi(data_property)]persisted: bool,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigateEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]navigation_type: v8::Local<'scope, v8::Value>,@@ -138,7 +138,7 @@ struct NavigateEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ActiveNavigateEventDataDeclaration<'scope> {#[webapi(slot = ACTIVE_NAVIGATE_EVENT_EVENT_SLOT)]event: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/navigation_lifecycle.rs b/moli-renderer-v8/src/context_bootstrap/navigation_lifecycle.rsindex 34ea4fd03..d4408a4d7 100644--- a/moli-renderer-v8/src/context_bootstrap/navigation_lifecycle.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigation_lifecycle.rs@@ -16,7 +16,7 @@ use crate::{native_bridge::NavigationAttemptId, util::get_private_value};use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationFinishedResolveDataDeclaration<'scope> {#[webapi(slot = NAVIGATION_FINISH_RESOLVE_SLOT)]resolve: v8::Local<'scope, v8::Function>,@@ -26,7 +26,7 @@ struct NavigationFinishedResolveDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationFinishedRejectDataDeclaration<'scope> {#[webapi(slot = NAVIGATION_FINISH_REJECT_SLOT)]reject: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/navigation_result.rs b/moli-renderer-v8/src/context_bootstrap/navigation_result.rsindex d163aca1f..261fe3580 100644--- a/moli-renderer-v8/src/context_bootstrap/navigation_result.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigation_result.rs@@ -24,7 +24,7 @@ const NAVIGATION_ACTIVE_CROSS_DOCUMENT_PENDING_SLOT: &str ="__lmNavigationActiveCrossDocumentPending";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationResultDeclaration<'scope> {#[webapi(data_property, enumerable)]committed: v8::Local<'scope, v8::Promise>,@@ -33,7 +33,7 @@ struct NavigationResultDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigationResultFallbackDeclaration {#[webapi(data_property, enumerable, name = "committed", init = "undefined")]committed: (),@@ -42,7 +42,7 @@ struct NavigationResultFallbackDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CapturedPromiseResolverRecordDeclaration {#[webapi(data_property = "resolve", init = "undefined")]resolve: (),@@ -51,7 +51,7 @@ struct CapturedPromiseResolverRecordDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CapturedPromiseResolverFunctionsDeclaration<'scope> {#[webapi(data_property)]resolve: v8::Local<'scope, v8::Value>,@@ -60,7 +60,7 @@ struct CapturedPromiseResolverFunctionsDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossDocumentPendingNavigationDeclaration<'scope> {#[webapi(slot = CROSS_DOCUMENT_PENDING_ACTIVE_SLOT,diff --git a/moli-renderer-v8/src/context_bootstrap/navigator_runtime/media_capabilities.rs b/moli-renderer-v8/src/context_bootstrap/navigator_runtime/media_capabilities.rsindex c1755b737..147444402 100644--- a/moli-renderer-v8/src/context_bootstrap/navigator_runtime/media_capabilities.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigator_runtime/media_capabilities.rs@@ -27,7 +27,7 @@ struct MediaCapabilitiesPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct MediaCapabilitiesDecodingInfoDeclaration<'scope> {#[webapi(data_property, enumerable)]supported: bool,@@ -46,7 +46,7 @@ struct MediaCapabilitiesDecodingInfoDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct MediaCapabilitiesEncodingInfoDeclaration<'scope> {#[webapi(data_property, enumerable)]supported: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/navigator_runtime/navigator.rs b/moli-renderer-v8/src/context_bootstrap/navigator_runtime/navigator.rsindex 8f74b3350..540d7637a 100644--- a/moli-renderer-v8/src/context_bootstrap/navigator_runtime/navigator.rs+++ b/moli-renderer-v8/src/context_bootstrap/navigator_runtime/navigator.rs@@ -468,7 +468,7 @@ struct UserActivationObjectDeclaration {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct WindowNavigatorBackingDeclaration<'scope, 'profile> {#[webapi(data_property, enumerable)]user_agent: &'profile str,@@ -571,7 +571,7 @@ struct WindowNavigatorBackingDeclaration<'scope, 'profile> {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct WorkerNavigatorBackingDeclaration<'scope, 'profile> {#[webapi(data_property, enumerable)]user_agent: &'profile str,diff --git a/moli-renderer-v8/src/context_bootstrap/notification_runtime.rs b/moli-renderer-v8/src/context_bootstrap/notification_runtime.rsindex 457308601..a810597e7 100644--- a/moli-renderer-v8/src/context_bootstrap/notification_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/notification_runtime.rs@@ -210,7 +210,7 @@ struct NotificationConstructorConstantsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NotificationConstructorPermissionDeclaration {#[webapi(accessor_property,diff --git a/moli-renderer-v8/src/context_bootstrap/opfs.rs b/moli-renderer-v8/src/context_bootstrap/opfs.rsindex 9a0b143f1..a4a8bc292 100644--- a/moli-renderer-v8/src/context_bootstrap/opfs.rs+++ b/moli-renderer-v8/src/context_bootstrap/opfs.rs@@ -805,7 +805,7 @@ struct FileSystemWritableFileStreamPrototypeDeclaration {#[derive(WebApiObject)]// An internal UnderlyingSink record, not a Web IDL interface instance.-#[webapi(record)]+#[webapi(plain)]struct FileSystemWritableSinkObjectDeclaration {#[webapi(slot = FILE_SYSTEM_WRITABLE_SINK_STATE_SLOT)]state_json: String,diff --git a/moli-renderer-v8/src/context_bootstrap/performance_runtime/entries.rs b/moli-renderer-v8/src/context_bootstrap/performance_runtime/entries.rsindex 8728f5ddb..4e36de50e 100644--- a/moli-renderer-v8/src/context_bootstrap/performance_runtime/entries.rs+++ b/moli-renderer-v8/src/context_bootstrap/performance_runtime/entries.rs@@ -45,7 +45,7 @@ struct PerformanceEntryObjectDeclaration<'scope, 'name, 'entry_type> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PerformanceEntryJsonSnapshotDeclaration {name: String,entry_type: String,@@ -118,7 +118,7 @@ struct PerformanceResourceTimingSlotDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PerformanceResourceTimingJsonSnapshotDeclaration {name: String,entry_type: String,diff --git a/moli-renderer-v8/src/context_bootstrap/performance_runtime/install.rs b/moli-renderer-v8/src/context_bootstrap/performance_runtime/install.rsindex 91edef008..0fc947230 100644--- a/moli-renderer-v8/src/context_bootstrap/performance_runtime/install.rs+++ b/moli-renderer-v8/src/context_bootstrap/performance_runtime/install.rs@@ -78,7 +78,7 @@ struct PerformanceObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PerformanceJsonSnapshotDeclaration<'scope> {time_origin: Option<v8::Local<'scope, v8::Value>>,timing: Option<v8::Local<'scope, v8::Value>>,diff --git a/moli-renderer-v8/src/context_bootstrap/performance_runtime/memory.rs b/moli-renderer-v8/src/context_bootstrap/performance_runtime/memory.rsindex fdbf6e257..4419420e3 100644--- a/moli-renderer-v8/src/context_bootstrap/performance_runtime/memory.rs+++ b/moli-renderer-v8/src/context_bootstrap/performance_runtime/memory.rs@@ -15,7 +15,7 @@ const MEMORY_SLOTS: &[&str] = &[TOTAL_HEAP_SLOT, USED_HEAP_SLOT, HEAP_LIMIT_SLOTconst SAMPLE_INTERVAL: Duration = Duration::from_secs(20 * 60);#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct MemoryInfoPrototypeDeclaration {#[webapi(accessor_property, name = "totalJSHeapSize", enumerable, getter = memory_info_getter, data = callback_data_index_value(scope, 0))]total_js_heap_size: (),diff --git a/moli-renderer-v8/src/context_bootstrap/resize_observer_runtime.rs b/moli-renderer-v8/src/context_bootstrap/resize_observer_runtime.rsindex 17674c1b4..f2ab9e428 100644--- a/moli-renderer-v8/src/context_bootstrap/resize_observer_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/resize_observer_runtime.rs@@ -42,7 +42,7 @@ struct ResizeObserverEntryDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ResizeObserverObservedRecordDeclaration<'scope> {#[webapi(slot = RESIZE_OBSERVER_RECORD_TARGET_SLOT)]target: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/runtime_state.rs b/moli-renderer-v8/src/context_bootstrap/runtime_state.rsindex e90bbdd23..276f64e94 100644--- a/moli-renderer-v8/src/context_bootstrap/runtime_state.rs+++ b/moli-renderer-v8/src/context_bootstrap/runtime_state.rs@@ -135,7 +135,7 @@ struct DocumentPrototypeRuntimeDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowComputedStyleMethodDeclaration {#[webapi(method,@@ -147,7 +147,7 @@ struct WindowComputedStyleMethodDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowPublicSurfaceAccessorsDeclaration<'scope> {history_slot: v8::Local<'scope, v8::Value>,navigation_slot: v8::Local<'scope, v8::Value>,@@ -264,7 +264,7 @@ struct WindowPublicSurfaceAccessorsDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct WindowLegacyAliasAccessorsDeclaration {#[webapi(accessor_property,@@ -374,7 +374,7 @@ struct WindowAdditionalReplaceableAccessorsDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ConsoleObjectDeclaration {#[webapi(method, callback = console_log_callback)]log: (),@@ -454,14 +454,14 @@ struct WindowBootstrapGlobalSlotsDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WindowEvalGlobalDeclaration<'scope> {#[webapi(data_property = "eval")]intrinsic_eval: v8::Local<'scope, v8::Value>,}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyNamespaceDeclaration {#[webapi(method, length = 1, callback = webassembly_namespace_instance_callback)]namespace_instance: (),@@ -469,12 +469,12 @@ struct WebAssemblyNamespaceDeclaration {#[cfg(feature = "wpt-extensions")]#[derive(WebApiObject)]-#[webapi(record, prototype = "WebDriver", require_prototype)]+#[webapi(plain, prototype = "WebDriver", require_prototype)]struct WebDriverObjectDeclaration {}#[cfg(feature = "wpt-extensions")]#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebDriverPrototypeDeclaration {#[webapi(method, length = 0, callback = webdriver_delete_all_cookies_callback)]delete_all_cookies: (),@@ -482,7 +482,7 @@ struct WebDriverPrototypeDeclaration {#[cfg(feature = "wpt-extensions")]#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebDriverPrototypeMetadataDeclaration<'scope> {#[webapi(data_property = "constructor")]constructor: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/shared_installers/constants.rs b/moli-renderer-v8/src/context_bootstrap/shared_installers/constants.rsindex 7301eba81..466d3d5a9 100644--- a/moli-renderer-v8/src/context_bootstrap/shared_installers/constants.rs+++ b/moli-renderer-v8/src/context_bootstrap/shared_installers/constants.rs@@ -3,7 +3,7 @@ use crate::web_api_interfaces;use moli_webapi_declare::{WebApiFunctionTemplate, WebApiObject};#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct NodeFilterConstantsObjectDeclaration {#[webapi(constant = "FILTER_ACCEPT", value = 1u32)]_filter_accept: (),diff --git a/moli-renderer-v8/src/context_bootstrap/shared_installers/prototypes.rs b/moli-renderer-v8/src/context_bootstrap/shared_installers/prototypes.rsindex 5208d0efa..ee8669420 100644--- a/moli-renderer-v8/src/context_bootstrap/shared_installers/prototypes.rs+++ b/moli-renderer-v8/src/context_bootstrap/shared_installers/prototypes.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct InterfacePrototypeTagDeclaration<'tag> {#[webapi(to_string_tag)]tag: &'tag str,diff --git a/moli-renderer-v8/src/context_bootstrap/shared_worker_host.rs b/moli-renderer-v8/src/context_bootstrap/shared_worker_host.rsindex 66e4e3614..2d1d19db6 100644--- a/moli-renderer-v8/src/context_bootstrap/shared_worker_host.rs+++ b/moli-renderer-v8/src/context_bootstrap/shared_worker_host.rs@@ -88,7 +88,7 @@ struct SharedWorkerObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SharedWorkerHostEventInitDeclaration {#[webapi(data_property, enumerable)]cancelable: bool,@@ -104,7 +104,7 @@ struct SharedWorkerHostEventFallbackDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SharedWorkerHostErrorEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]message: v8::Local<'scope, v8::String>,@@ -138,7 +138,7 @@ struct SharedWorkerHostErrorEventFallbackDeclaration<'scope, 'text> {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope, data_properties, enumerable)]+#[webapi(plain, scope_lifetime = 'scope, data_properties, enumerable)]struct SharedWorkerHostErrorEventDetailsDeclaration<'scope, 'text> {message: &'text str,filename: &'text str,diff --git a/moli-renderer-v8/src/context_bootstrap/stream_adapter/construction.rs b/moli-renderer-v8/src/context_bootstrap/stream_adapter/construction.rsindex 0914487b5..d14e93e78 100644--- a/moli-renderer-v8/src/context_bootstrap/stream_adapter/construction.rs+++ b/moli-renderer-v8/src/context_bootstrap/stream_adapter/construction.rs@@ -97,14 +97,14 @@ struct ReadableStreamObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ReadableStreamStartRejectedDataDeclaration<'scope> {#[webapi(slot = READABLE_STREAM_START_REJECTED_STREAM_SLOT)]stream: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ReadableStreamStartFulfilledDataDeclaration<'scope> {#[webapi(slot = READABLE_STREAM_START_REJECTED_STREAM_SLOT)]stream: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/stream_adapter/pipe_owner.rs b/moli-renderer-v8/src/context_bootstrap/stream_adapter/pipe_owner.rsindex 2a3b851f8..5928b85c5 100644--- a/moli-renderer-v8/src/context_bootstrap/stream_adapter/pipe_owner.rs+++ b/moli-renderer-v8/src/context_bootstrap/stream_adapter/pipe_owner.rs@@ -30,7 +30,7 @@ const PIPE_OWNER_SHUTDOWN_REASON_SLOT: &str = "__moliPipeOwnerShutdownReason";const PIPE_OWNER_ABORT_REGISTRATION_SLOT: &str = "__moliPipeOwnerAbortRegistration";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PipeOwnerDeclaration<'scope> {#[webapi(slot = PIPE_OWNER_SOURCE_SLOT)]source: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/stream_adapter/read_request.rs b/moli-renderer-v8/src/context_bootstrap/stream_adapter/read_request.rsindex 4a339ef7b..db5fc1551 100644--- a/moli-renderer-v8/src/context_bootstrap/stream_adapter/read_request.rs+++ b/moli-renderer-v8/src/context_bootstrap/stream_adapter/read_request.rs@@ -16,7 +16,7 @@ const READ_REQUEST_CLOSE_STEPS_SLOT: &str = "__moliStreamReadRequestCloseSteps";const READ_REQUEST_ERROR_STEPS_SLOT: &str = "__moliStreamReadRequestErrorSteps";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct InternalReadRequestDeclaration<'scope> {#[webapi(slot = READ_REQUEST_CHUNK_STEPS_SLOT)]chunk_steps: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/stream_adapter/utils.rs b/moli-renderer-v8/src/context_bootstrap/stream_adapter/utils.rsindex 9d66bd4a8..47dda2f1b 100644--- a/moli-renderer-v8/src/context_bootstrap/stream_adapter/utils.rs+++ b/moli-renderer-v8/src/context_bootstrap/stream_adapter/utils.rs@@ -5,7 +5,7 @@ const DELAYED_PENDING_READ_REJECT_SLOT: &str = "__moliReadableStreamDelayedRejecconst DELAYED_PENDING_READ_REASON_SLOT: &str = "__moliReadableStreamDelayedReason";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StreamIteratorResultDeclaration<'scope> {#[webapi(data_property, enumerable)]value: v8::Local<'scope, v8::Value>,@@ -14,7 +14,7 @@ struct StreamIteratorResultDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PendingReadEntryDeclaration {#[webapi(slot = READABLE_STREAM_PENDING_READ_PROMISE_SLOT, init = "undefined")]promise: (),@@ -25,14 +25,14 @@ struct PendingReadEntryDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PendingReadPromiseDeclaration<'scope> {#[webapi(slot = READABLE_STREAM_PENDING_READ_PROMISE_SLOT)]promise: v8::Local<'scope, v8::Promise>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PendingReadResolverDeclaration<'scope> {#[webapi(slot = READABLE_STREAM_PENDING_READ_RESOLVE_SLOT)]resolve: v8::Local<'scope, v8::Value>,@@ -41,7 +41,7 @@ struct PendingReadResolverDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DelayedPendingReadRejectDeclaration<'scope> {#[webapi(slot = DELAYED_PENDING_READ_REJECT_SLOT)]reject: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/touch_runtime.rs b/moli-renderer-v8/src/context_bootstrap/touch_runtime.rsindex 78588034e..84ef94abf 100644--- a/moli-renderer-v8/src/context_bootstrap/touch_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/touch_runtime.rs@@ -109,7 +109,7 @@ struct TouchListPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TouchUiEventInitDeclaration<'scope> {view: v8::Local<'scope, v8::Value>,detail: f64,diff --git a/moli-renderer-v8/src/context_bootstrap/trusted_types.rs b/moli-renderer-v8/src/context_bootstrap/trusted_types.rsindex 23f0e7708..a84334191 100644--- a/moli-renderer-v8/src/context_bootstrap/trusted_types.rs+++ b/moli-renderer-v8/src/context_bootstrap/trusted_types.rs@@ -42,14 +42,14 @@ struct TrustedTypesFactoryDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct TrustedTypeObjectDeclaration<'scope> {#[webapi(slot = TRUSTED_TYPE_VALUE_SLOT)]value: v8::Local<'scope, v8::String>,}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct TrustedTypePrototypeDeclaration {#[webapi(method = "toString", callback = trusted_type_to_string_callback, length = 0)]to_string: (),diff --git a/moli-renderer-v8/src/context_bootstrap/url_search_params_runtime/iterators.rs b/moli-renderer-v8/src/context_bootstrap/url_search_params_runtime/iterators.rsindex 72840cdf3..9003dc3dd 100644--- a/moli-renderer-v8/src/context_bootstrap/url_search_params_runtime/iterators.rs+++ b/moli-renderer-v8/src/context_bootstrap/url_search_params_runtime/iterators.rs@@ -43,7 +43,7 @@ struct UrlSearchParamsIteratorPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct UrlSearchParamsIteratorResultDeclaration<'scope> {#[webapi(data_property, enumerable)]done: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/web_audio_runtime.rs b/moli-renderer-v8/src/context_bootstrap/web_audio_runtime.rsindex eab98bd85..665a65ba2 100644--- a/moli-renderer-v8/src/context_bootstrap/web_audio_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/web_audio_runtime.rs@@ -82,7 +82,7 @@ struct AudioWorkletNodeObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AudioWorkletModuleStateDeclaration<'scope> {#[webapi(slot = AUDIO_WORKLET_MODULE_CONTEXT_SLOT)]context: v8::Local<'scope, v8::Object>,@@ -99,21 +99,21 @@ struct AudioWorkletModuleStateDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AudioWorkletWorkerCallbackDataDeclaration<'scope> {#[webapi(slot = AUDIO_WORKLET_CALLBACK_MODULE_SLOT)]module_state: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AudioWorkletBlobOptionsDeclaration {#[webapi(data_property = "type")]kind: &'static str,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AudioWorkletWorkerOptionsDeclaration {#[webapi(data_property = "type")]kind: &'static str,@@ -121,7 +121,7 @@ struct AudioWorkletWorkerOptionsDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AudioWorkletProcessorConstructMessageDeclaration<'scope> {#[webapi(data_property = "__moliAudioWorkletType")]message_type: &'static str,@@ -245,7 +245,7 @@ struct AnalyserNodePrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct OfflineAudioCompletePayloadDeclaration<'scope> {#[webapi(slot = OFFLINE_AUDIO_COMPLETE_CONTEXT_SLOT)]context: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/context_bootstrap/web_storage/helpers.rs b/moli-renderer-v8/src/context_bootstrap/web_storage/helpers.rsindex 9d6f24c76..147a8bbb7 100644--- a/moli-renderer-v8/src/context_bootstrap/web_storage/helpers.rs+++ b/moli-renderer-v8/src/context_bootstrap/web_storage/helpers.rs@@ -15,7 +15,7 @@ pub(super) const STORAGE_OWNER_INTERNAL_FIELD_INDEX: usize = 1;pub(super) const STORAGE_OWNER_CHILD_HANDLE_SLOT: &str = "__moliStorageOwnerChildHandle";#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StoragePrototypeIndexDescriptorStoreDeclaration {}const STORAGE_INTERNAL_NAME_UNITS: &[u16] = &[diff --git a/moli-renderer-v8/src/context_bootstrap/web_storage/install.rs b/moli-renderer-v8/src/context_bootstrap/web_storage/install.rsindex cf73d5b2e..991881b28 100644--- a/moli-renderer-v8/src/context_bootstrap/web_storage/install.rs+++ b/moli-renderer-v8/src/context_bootstrap/web_storage/install.rs@@ -21,7 +21,7 @@ use crate::web_api_interfaces;use moli_webapi_declare::{WebApiFunctionTemplate, WebApiObject};#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct StoragePrototypeMethodsDeclaration {#[webapi(method, length = 1, callback = storage_get_item_callback)]get_item: (),@@ -45,7 +45,7 @@ struct StoragePrototypeMetadataDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StorageAliasesDeclaration<'scope> {#[webapi(data_property = "localStorage")]local_storage: v8::Local<'scope, v8::Object>,@@ -54,7 +54,7 @@ struct StorageAliasesDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StorageConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "Storage")]constructor: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/context_bootstrap/web_storage/interceptors.rs b/moli-renderer-v8/src/context_bootstrap/web_storage/interceptors.rsindex cfd806cdf..720538f00 100644--- a/moli-renderer-v8/src/context_bootstrap/web_storage/interceptors.rs+++ b/moli-renderer-v8/src/context_bootstrap/web_storage/interceptors.rs@@ -9,7 +9,7 @@ use crate::util::{throw_type_error, v8_string_from_utf16_units, v8_string_to_u16use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct StorageValuePropertyDescriptorDeclaration<'scope> {value: v8::Local<'scope, v8::Value>,writable: bool,@@ -18,7 +18,7 @@ struct StorageValuePropertyDescriptorDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct StorageAccessorPropertyDescriptorDeclaration<'scope> {get: Option<v8::Local<'scope, v8::Value>>,set: Option<v8::Local<'scope, v8::Value>>,diff --git a/moli-renderer-v8/src/context_bootstrap/webassembly_runtime.rs b/moli-renderer-v8/src/context_bootstrap/webassembly_runtime.rsindex cc32b62f2..51d937f56 100644--- a/moli-renderer-v8/src/context_bootstrap/webassembly_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/webassembly_runtime.rs@@ -55,7 +55,7 @@ const WEBASSEMBLY_DEFAULT_PROTOTYPE_NAMES: &[&str] = &[];#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyStreamingDataDeclaration<'scope> {#[webapi(slot = STREAMING_OPTIONS_SLOT)]options: v8::Local<'scope, v8::Value>,@@ -64,7 +64,7 @@ struct WebAssemblyStreamingDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyInstantiateStreamingResultDeclaration<'scope> {#[webapi(data_property, enumerable)]module: v8::Local<'scope, v8::Object>,@@ -73,7 +73,7 @@ struct WebAssemblyInstantiateStreamingResultDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyMemoryNativeDescriptorDeclaration<'scope> {#[webapi(data_property, enumerable)]initial: v8::Local<'scope, v8::Value>,@@ -84,7 +84,7 @@ struct WebAssemblyMemoryNativeDescriptorDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyMemoryTypeDeclaration<'scope> {#[webapi(data_property, enumerable)]minimum: v8::Local<'scope, v8::Value>,@@ -95,7 +95,7 @@ struct WebAssemblyMemoryTypeDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyMemoryTypeCloneDeclaration<'scope> {#[webapi(data_property, enumerable)]minimum: v8::Local<'scope, v8::Value>,@@ -106,7 +106,7 @@ struct WebAssemblyMemoryTypeCloneDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTableNativeDescriptorDeclaration<'scope> {#[webapi(data_property, enumerable)]element: v8::Local<'scope, v8::Value>,@@ -117,7 +117,7 @@ struct WebAssemblyTableNativeDescriptorDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTableTypeDeclaration<'scope> {#[webapi(data_property, enumerable)]minimum: v8::Local<'scope, v8::Value>,@@ -128,7 +128,7 @@ struct WebAssemblyTableTypeDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTableTypeCloneDeclaration<'scope> {#[webapi(data_property, enumerable)]minimum: v8::Local<'scope, v8::Value>,@@ -139,7 +139,7 @@ struct WebAssemblyTableTypeCloneDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyGlobalNativeDescriptorDeclaration<'scope> {#[webapi(data_property, enumerable)]mutable: v8::Local<'scope, v8::Value>,@@ -148,7 +148,7 @@ struct WebAssemblyGlobalNativeDescriptorDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyGlobalTypeDeclaration<'scope> {#[webapi(data_property, enumerable)]mutable: bool,@@ -157,7 +157,7 @@ struct WebAssemblyGlobalTypeDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyGlobalTypeCloneDeclaration<'scope> {#[webapi(data_property, enumerable)]r#mutable: v8::Local<'scope, v8::Value>,@@ -166,21 +166,21 @@ struct WebAssemblyGlobalTypeCloneDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTagTypeDeclaration<'scope> {#[webapi(data_property, enumerable)]parameters: v8::Local<'scope, v8::Array>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyMemoryFallbackTypeDeclaration {#[webapi(data_property, enumerable)]minimum: f64,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTableFallbackTypeDeclaration<'scope> {#[webapi(data_property, enumerable)]minimum: f64,@@ -189,7 +189,7 @@ struct WebAssemblyTableFallbackTypeDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebAssemblyTagTypeCloneDeclaration<'scope> {#[webapi(data_property, enumerable)]parameters: Option<v8::Local<'scope, v8::Array>>,diff --git a/moli-renderer-v8/src/context_bootstrap/webrtc.rs b/moli-renderer-v8/src/context_bootstrap/webrtc.rsindex d4a22e169..3392fb8cc 100644--- a/moli-renderer-v8/src/context_bootstrap/webrtc.rs+++ b/moli-renderer-v8/src/context_bootstrap/webrtc.rs@@ -121,7 +121,7 @@ struct RtcDataChannelObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct RtcSessionDescriptionInitDeclaration<'scope> {#[webapi(data_property, enumerable)]r#type: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/context_bootstrap/webrtc/ice_candidate.rs b/moli-renderer-v8/src/context_bootstrap/webrtc/ice_candidate.rsindex 645e62a52..4dae57aa3 100644--- a/moli-renderer-v8/src/context_bootstrap/webrtc/ice_candidate.rs+++ b/moli-renderer-v8/src/context_bootstrap/webrtc/ice_candidate.rs@@ -58,7 +58,7 @@ struct IceCandidatePrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct IceCandidateJsonDeclaration<'scope> {candidate: v8::Local<'scope, v8::Value>,sdp_mid: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/websocket/constructor.rs b/moli-renderer-v8/src/context_bootstrap/websocket/constructor.rsindex 1e9657ab3..d575cc484 100644--- a/moli-renderer-v8/src/context_bootstrap/websocket/constructor.rs+++ b/moli-renderer-v8/src/context_bootstrap/websocket/constructor.rs@@ -95,14 +95,14 @@ struct WebSocketStreamRegisteredSocketDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamAbortListenerDataDeclaration<'scope> {#[webapi(slot = WEBSOCKET_STREAM_ABORT_LISTENER_STREAM_SLOT)]stream: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamAbortListenerOptionsDeclaration {#[webapi(data_property, enumerable)]once: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/websocket/events.rs b/moli-renderer-v8/src/context_bootstrap/websocket/events.rsindex fc63fc50e..d80af1f8e 100644--- a/moli-renderer-v8/src/context_bootstrap/websocket/events.rs+++ b/moli-renderer-v8/src/context_bootstrap/websocket/events.rs@@ -10,7 +10,7 @@ struct WebSocketSimpleEventFallbackDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,@@ -19,7 +19,7 @@ struct WebSocketMessageEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WebSocketCloseEventInitDeclaration<'scope> {code: u16,reason: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/context_bootstrap/websocket/stream.rs b/moli-renderer-v8/src/context_bootstrap/websocket/stream.rsindex 98e975ff8..6930a3585 100644--- a/moli-renderer-v8/src/context_bootstrap/websocket/stream.rs+++ b/moli-renderer-v8/src/context_bootstrap/websocket/stream.rs@@ -15,7 +15,7 @@ use crate::web_api_interfaces;use moli_webapi_declare::WebApiObject;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamPromiseResolverRecordDeclaration {#[webapi(slot = WEBSOCKET_STREAM_PROMISE_RESOLVE_SLOT, init = "undefined")]resolve: (),@@ -24,7 +24,7 @@ struct WebSocketStreamPromiseResolverRecordDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamOpenInfoDeclaration<'scope> {#[webapi(data_property, enumerable)]readable: v8::Local<'scope, v8::Object>,@@ -37,7 +37,7 @@ struct WebSocketStreamOpenInfoDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamWritableSinkDeclaration<'scope> {#[webapi(slot = WEBSOCKET_ID_SLOT)]socket_id: f64,@@ -56,7 +56,7 @@ struct WebSocketStreamWritableSinkDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamReadableSourceDeclaration {#[webapi(slot = WEBSOCKET_ID_SLOT)]socket_id: f64,@@ -67,7 +67,7 @@ struct WebSocketStreamReadableSourceDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WebSocketStreamPendingWriteDeclaration<'scope> {#[webapi(slot = WEBSOCKET_STREAM_PROMISE_SLOT)]promise: v8::Local<'scope, v8::Promise>,@@ -78,7 +78,7 @@ struct WebSocketStreamPendingWriteDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WebSocketStreamCloseInfoDeclaration<'scope> {close_code: f64,reason: Option<v8::Local<'scope, v8::String>>,diff --git a/moli-renderer-v8/src/context_bootstrap/window_events/error.rs b/moli-renderer-v8/src/context_bootstrap/window_events/error.rsindex bf766e04e..a715c1504 100644--- a/moli-renderer-v8/src/context_bootstrap/window_events/error.rs+++ b/moli-renderer-v8/src/context_bootstrap/window_events/error.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ErrorEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]cancelable: bool,@@ -21,7 +21,7 @@ struct ErrorEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ErrorEventDetailsDeclaration<'scope> {message: v8::Local<'scope, v8::Value>,filename: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/window_events/promise.rs b/moli-renderer-v8/src/context_bootstrap/window_events/promise.rsindex b42504890..9fc363a91 100644--- a/moli-renderer-v8/src/context_bootstrap/window_events/promise.rs+++ b/moli-renderer-v8/src/context_bootstrap/window_events/promise.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PromiseRejectionEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]cancelable: bool,diff --git a/moli-renderer-v8/src/context_bootstrap/window_runtime.rs b/moli-renderer-v8/src/context_bootstrap/window_runtime.rsindex ba582def2..8a1f35c6e 100644--- a/moli-renderer-v8/src/context_bootstrap/window_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/window_runtime.rs@@ -70,7 +70,7 @@ pub(super) use service_worker::{pub(super) use structured_clone::window_structured_clone_callback;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ChildWindowOwnMethodsDeclaration {#[webapi(method, length = 0, callback = window_open_callback)]open: (),diff --git a/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs b/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rsindex 8f7afd6b5..b2f6d5627 100644--- a/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs+++ b/moli-renderer-v8/src/context_bootstrap/window_runtime/navigator.rs@@ -157,7 +157,7 @@ struct MidiPermissionDescriptorMembers {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigatorUaBrandEntryDeclaration {#[webapi(data_property, enumerable)]brand: String,@@ -183,7 +183,7 @@ struct NavigatorUaDataObjectDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigatorUaDataSnapshotDeclaration {#[webapi(data_property, enumerable)]brands: Vec<NavigatorUaBrandEntryDeclaration>,@@ -196,7 +196,7 @@ struct NavigatorUaDataSnapshotDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NavigatorUaDataHighEntropySnapshotDeclaration {#[webapi(data_property, enumerable)]architecture: Option<String>,@@ -246,7 +246,7 @@ struct StorageEstimateObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StorageUsageDetailsObjectDeclaration {#[webapi(data_property = "indexedDB", enumerable)]indexed_db: Option<f64>,@@ -323,7 +323,7 @@ struct CacheQueryOptions {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StorageBucketCachePutPendingDataDeclaration<'scope> {#[webapi(slot = STORAGE_BUCKET_CACHE_PUT_RESOLVER_SLOT)]resolver: v8::Local<'scope, v8::PromiseResolver>,diff --git a/moli-renderer-v8/src/context_bootstrap/window_runtime/service_worker.rs b/moli-renderer-v8/src/context_bootstrap/window_runtime/service_worker.rsindex f5d93bcea..664379c66 100644--- a/moli-renderer-v8/src/context_bootstrap/window_runtime/service_worker.rs+++ b/moli-renderer-v8/src/context_bootstrap/window_runtime/service_worker.rs@@ -107,7 +107,7 @@ struct ServiceWorkerRegistrationObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerNavigationPreloadStateDeclaration {#[webapi(data_property, enumerable)]enabled: bool,@@ -284,7 +284,7 @@ struct ServiceWorkerObjectDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/context_bootstrap/worker_host/dispatch.rs b/moli-renderer-v8/src/context_bootstrap/worker_host/dispatch.rsindex 79a8620ea..5523fa31f 100644--- a/moli-renderer-v8/src/context_bootstrap/worker_host/dispatch.rs+++ b/moli-renderer-v8/src/context_bootstrap/worker_host/dispatch.rs@@ -15,7 +15,7 @@ use crate::util::v8str;use crate::worker::{WorkerParentErrorEventKind, WorkerToParentMessage};#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerHostEventInitDeclaration {#[webapi(data_property, enumerable)]cancelable: bool,@@ -31,7 +31,7 @@ struct WorkerHostEventFallbackDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerHostMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,@@ -51,7 +51,7 @@ struct WorkerHostMessageEventFallbackDeclaration<'scope, 'event> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerHostErrorEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]message: v8::Local<'scope, v8::String>,@@ -85,7 +85,7 @@ struct WorkerHostErrorEventFallbackDeclaration<'scope, 'text> {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope, data_properties, enumerable)]+#[webapi(plain, scope_lifetime = 'scope, data_properties, enumerable)]struct WorkerHostErrorEventDetailsDeclaration<'scope, 'text> {message: &'text str,filename: &'text str,diff --git a/moli-renderer-v8/src/context_bootstrap/worker_location_runtime.rs b/moli-renderer-v8/src/context_bootstrap/worker_location_runtime.rsindex 6a8390d1d..8d3c4397a 100644--- a/moli-renderer-v8/src/context_bootstrap/worker_location_runtime.rs+++ b/moli-renderer-v8/src/context_bootstrap/worker_location_runtime.rs@@ -17,7 +17,7 @@ struct WorkerLocationObjectDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerLocationGlobalDeclaration<'scope> {#[webapi(data_property = "location")]location: v8::Local<'scope, v8::Object>,@@ -94,7 +94,7 @@ struct WorkerLocationPrototypeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerLocationBackingDeclaration {#[webapi(data_property, enumerable)]href: String,diff --git a/moli-renderer-v8/src/detached_event_target.rs b/moli-renderer-v8/src/detached_event_target.rsindex b50b7066c..3fa634af5 100644--- a/moli-renderer-v8/src/detached_event_target.rs+++ b/moli-renderer-v8/src/detached_event_target.rs@@ -2,7 +2,7 @@ use super::util::{call_script_visible_function, v8_string, v8str};use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedFocusEventInitDeclaration<'scope> {bubbles: bool,#[webapi(constructor_default = false)]@@ -13,7 +13,7 @@ struct DetachedFocusEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedSimpleEventInitDeclaration {bubbles: bool,cancelable: bool,diff --git a/moli-renderer-v8/src/host/events.rs b/moli-renderer-v8/src/host/events.rsindex cca6d1d44..4612dfdf3 100644--- a/moli-renderer-v8/src/host/events.rs+++ b/moli-renderer-v8/src/host/events.rs@@ -11,7 +11,7 @@ use moli_webapi_declare::WebApiObject;use std::collections::HashSet;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct HostErrorEventInitDeclaration<'scope> {cancelable: bool,bubbles: bool,@@ -23,7 +23,7 @@ struct HostErrorEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct HostEventInitDeclaration {bubbles: bool,cancelable: bool,diff --git a/moli-renderer-v8/src/host/timers.rs b/moli-renderer-v8/src/host/timers.rsindex ba5fede91..e0cbc8c41 100644--- a/moli-renderer-v8/src/host/timers.rs+++ b/moli-renderer-v8/src/host/timers.rs@@ -25,7 +25,7 @@ use moli_time::{TimerId, TimerReadyAllowance, TimerScheduler};use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TimerErrorEventInitDeclaration<'scope> {cancelable: bool,bubbles: bool,diff --git a/moli-renderer-v8/src/host_bindings.rs b/moli-renderer-v8/src/host_bindings.rsindex 0fb4f6a54..4450da17d 100644--- a/moli-renderer-v8/src/host_bindings.rs+++ b/moli-renderer-v8/src/host_bindings.rs@@ -15,7 +15,7 @@ use super::{use crate::{context_bootstrap::CHILD_BROWSING_CONTEXT_HANDLE_SLOT, util::get_private_value};#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct HostBindingsDeclaration<'scope> {external: v8::Local<'scope, v8::External>,@@ -612,7 +612,7 @@ fn host_selector_debug_stats_callback(}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct SelectorDebugStatsDeclaration {query_selector: u32,query_selector_all: u32,diff --git a/moli-renderer-v8/src/module_runtime/host_callbacks.rs b/moli-renderer-v8/src/module_runtime/host_callbacks.rsindex 5e0303a06..b4e31af1f 100644--- a/moli-renderer-v8/src/module_runtime/host_callbacks.rs+++ b/moli-renderer-v8/src/module_runtime/host_callbacks.rs@@ -14,7 +14,7 @@ use crate::{};#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ImportMetaDeclaration<'scope> {#[webapi(data_property, enumerable)]url: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/native_bridge/bindings.rs b/moli-renderer-v8/src/native_bridge/bindings.rsindex 17a21a4d9..8083c15f5 100644--- a/moli-renderer-v8/src/native_bridge/bindings.rs+++ b/moli-renderer-v8/src/native_bridge/bindings.rs@@ -18,7 +18,7 @@ use native_template::build_native_bridge_template;use node_template::build_node_wrapper_template;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NativeBridgeGlobalDeclaration<'scope> {#[webapi(data_property = "__moliNativeBridge")]bridge: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/child_window_surface/webassembly_realm.rs b/moli-renderer-v8/src/native_bridge/child_window_surface/webassembly_realm.rsindex 1524c1b1c..b46e62823 100644--- a/moli-renderer-v8/src/native_bridge/child_window_surface/webassembly_realm.rs+++ b/moli-renderer-v8/src/native_bridge/child_window_surface/webassembly_realm.rs@@ -5,14 +5,14 @@ use crate::{use moli_webapi_declare::{ObjectLiteralDeclaration, WebApiObject};#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ChildWindowWebAssemblyConstructorDataDeclaration<'scope> {name: v8::Local<'scope, v8::String>,native_constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ChildWindowInstancePrototypeDeclaration<'scope> {#[webapi(data_property)]constructor: v8::Local<'scope, v8::Function>,diff --git a/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/document.rs b/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/document.rsindex 99b8dffb9..9ece1f338 100644--- a/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/document.rs+++ b/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/document.rs@@ -15,7 +15,7 @@ use url::Url;pub(crate) const CHILD_DOCUMENT_CONTEXT_HANDLE_SLOT: &str = "__lmChildDocumentContextHandle";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ChildDocumentStreamMethodsDeclaration<'scope> {handle: v8::Local<'scope, v8::Value>,#[webapi(method, callback = child_document_open_callback, data = self.handle)]diff --git a/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/window.rs b/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/window.rsindex 6e84c21d5..fb8a4ea71 100644--- a/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/window.rs+++ b/moli-renderer-v8/src/native_bridge/context_host/child_frame_runtime/window.rs@@ -686,7 +686,7 @@ struct CrossOriginLocationReplaceArgs {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginWindowMethodsDeclaration {#[webapi(method,@@ -705,7 +705,7 @@ struct CrossOriginWindowMethodsDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CrossOriginPropertyDescriptorDeclaration<'scope> {value: v8::Local<'scope, v8::Value>,writable: bool,@@ -714,7 +714,7 @@ struct CrossOriginPropertyDescriptorDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginLocationMethodsDeclaration {#[webapi(method,@@ -727,7 +727,7 @@ struct CrossOriginLocationMethodsDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginLocationProxyHandlerDeclaration {#[webapi(method, length = 3, callback = cross_origin_location_proxy_get_callback)]get: (),@@ -740,7 +740,7 @@ struct CrossOriginLocationProxyHandlerDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginWindowProxyHandlerDeclaration {#[webapi(method, length = 2, callback = cross_origin_window_proxy_has_callback)]has: (),@@ -751,7 +751,7 @@ struct CrossOriginWindowProxyHandlerDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginWindowLiveAccessorsDeclaration {#[webapi(accessor_property,@@ -770,7 +770,7 @@ struct CrossOriginWindowLiveAccessorsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct CrossOriginWindowLocationAccessorDeclaration {#[webapi(accessor_property,diff --git a/moli-renderer-v8/src/native_bridge/context_host/popups.rs b/moli-renderer-v8/src/native_bridge/context_host/popups.rsindex 0d93e4fe0..6f5cf5651 100644--- a/moli-renderer-v8/src/native_bridge/context_host/popups.rs+++ b/moli-renderer-v8/src/native_bridge/context_host/popups.rs@@ -113,7 +113,7 @@ pub(crate) enum PopupClassicScriptLoadApplication {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LightweightPopupDocumentStreamMethodsDeclaration<'scope> {popup_id: v8::Local<'scope, v8::BigInt>,#[webapi(@@ -156,14 +156,14 @@ struct LightweightPopupPopStateEventDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LightweightPopupWindowMethodsDeclaration {#[webapi(method, length = 0, callback = lightweight_popup_close_callback)]close: (),}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LightweightPopupComputedStyleMethodDeclaration<'scope> {document: v8::Local<'scope, v8::BigInt>,#[webapi(diff --git a/moli-renderer-v8/src/native_bridge/document/attributes/attr_object/instance/builder.rs b/moli-renderer-v8/src/native_bridge/document/attributes/attr_object/instance/builder.rsindex 8972aeaa3..b568a1aa5 100644--- a/moli-renderer-v8/src/native_bridge/document/attributes/attr_object/instance/builder.rs+++ b/moli-renderer-v8/src/native_bridge/document/attributes/attr_object/instance/builder.rs@@ -5,7 +5,7 @@ use crate::web_api_interfaces;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct AttrStateDeclaration<'scope> {name: v8::Local<'scope, v8::String>,value: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/native_bridge/document/css_state/accessors.rs b/moli-renderer-v8/src/native_bridge/document/css_state/accessors.rsindex 6a12c65b8..fe80467ea 100644--- a/moli-renderer-v8/src/native_bridge/document/css_state/accessors.rs+++ b/moli-renderer-v8/src/native_bridge/document/css_state/accessors.rs@@ -48,7 +48,7 @@ const ADOPTED_STYLE_SHEETS_ARRAY_OWNER_DOCUMENT: i32 = 1;const ADOPTED_STYLE_SHEETS_ARRAY_OWNER_SHADOW_ROOT: i32 = 2;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AdoptedStyleSheetsArrayMutationMethodsDeclaration {#[webapi(method,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_style.rs b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_style.rsindex e3f3e5238..9796ec6c0 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_style.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_style.rs@@ -16,7 +16,7 @@ use super::super::super::detached_native_handle_for_runtime;use super::iframe_style_viewport::detached_iframe_viewport_width;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DetachedIframeWindowComputedStyleMethodDeclaration<'scope> {iframe: v8::Local<'scope, v8::Object>,#[webapi(diff --git a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_message_event.rs b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_message_event.rsindex 6d6531328..67e6778c0 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_message_event.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_message_event.rs@@ -3,7 +3,7 @@ use moli_webapi_declare::WebApiObject;use url::Url;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedWindowMessageEventInitDeclaration<'scope> {data: v8::Local<'scope, v8::Value>,source: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_messaging.rs b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_messaging.rsindex e8b924aed..a1ba0c98f 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_messaging.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_install/accessors/iframe_window_messaging.rs@@ -12,7 +12,7 @@ use super::iframe_window_message_event::{detached_window_message_event, detachedconst DETACHED_IFRAME_WINDOW_EVENT_LISTENERS_SLOT: &str = "__lmDetachedIframeWindowEventListeners";#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DetachedIframeWindowMethodsDeclaration {#[webapi(method, length = 1, callback = detached_iframe_window_post_message)]post_message: (),diff --git a/moli-renderer-v8/src/native_bridge/document/detached_install/bridge_methods/live_attribute_bridge.rs b/moli-renderer-v8/src/native_bridge/document/detached_install/bridge_methods/live_attribute_bridge.rsindex 344c63dcc..51eb04fec 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_install/bridge_methods/live_attribute_bridge.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_install/bridge_methods/live_attribute_bridge.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LiveAttributeBridgeMethodsDeclaration {#[webapi(method = "__setAttributeNodeForLiveElement",diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/attributes.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/attributes.rsindex f17abaca5..7a8a4fb14 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/attributes.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/attributes.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedNamespaceAttributeRecordDeclaration<'scope> {name: v8::Local<'scope, v8::String>,value: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/documents.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/documents.rsindex 6a69b9ef5..24efac9d6 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/documents.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/documents.rs@@ -6,7 +6,7 @@ use moli_webapi_declare::WebApiObject;use url::Url;#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct DetachedDocumentObjectDeclaration<'scope, 'tag> {#[webapi(prototype)]prototype: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/elements.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/elements.rsindex 771e66d85..b88da42ac 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/elements.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/builders/elements.rs@@ -23,7 +23,7 @@ use moli_webapi_declare::WebApiObject;const DETACHED_ELEMENT_BRIDGE_PROTOTYPE_SLOT: &str = "__moliDetachedElementBridgePrototype";#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct GenericHtmlElementProxyHandlerDeclaration {#[webapi(method, length = 3, callback = generic_html_element_proxy_get_callback)]get: (),@@ -34,7 +34,7 @@ struct GenericHtmlElementProxyHandlerDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SelectHtmlElementProxyHandlerDeclaration {#[webapi(method, length = 3, callback = select_html_element_proxy_get_callback)]get: (),@@ -45,7 +45,7 @@ struct SelectHtmlElementProxyHandlerDeclaration {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct DetachedElementObjectDeclaration<'scope, 'tag> {#[webapi(prototype)]prototype: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/clone.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/clone.rsindex 2b08d215a..fb5aec64c 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/clone.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/clone.rs@@ -6,7 +6,7 @@ use crate::{use moli_webapi_declare::{ObjectLiteralDeclaration, WebApiObject};#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CloneShadowRootInitDeclaration<'scope> {mode: String,delegates_focus: Option<v8::Local<'scope, v8::Value>>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/collections.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/collections.rsindex 8677cf57c..820579e83 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/collections.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/collections.rs@@ -17,7 +17,7 @@ use moli_webapi_declare::{ObjectLiteralDeclaration, WebApiObject};use super::*;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedCollectionItemsAndNamedDataDeclaration<'scope> {items: v8::Local<'scope, v8::Value>,named: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/object_access.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/object_access.rsindex 4da4ee31c..dc27e9a56 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/object_access.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/object_access.rs@@ -6,7 +6,7 @@ pub(in crate::native_bridge::document) use crate::util::{use moli_webapi_declare::WebApiObject;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ObjectArrayItemMethodDeclaration {#[webapi(method, callback = object_array_item_callback)]item: (),diff --git a/moli-renderer-v8/src/native_bridge/document/detached_objects/prototypes.rs b/moli-renderer-v8/src/native_bridge/document/detached_objects/prototypes.rsindex 8f2dbbb80..98ff34306 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_objects/prototypes.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_objects/prototypes.rs@@ -3,14 +3,14 @@ use crate::web_api_interfaces;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DetachedBridgePrototypeDeclaration<'scope> {#[webapi(prototype)]prototype: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct DetachedObjectWithPrototypeDeclaration<'scope, 'tag> {#[webapi(prototype)]prototype: v8::Local<'scope, v8::Object>,@@ -20,7 +20,7 @@ struct DetachedObjectWithPrototypeDeclaration<'scope, 'tag> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DetachedObjectTagDeclaration {#[webapi(to_string_tag)]to_string_tag: String,diff --git a/moli-renderer-v8/src/native_bridge/document/detached_surface/element_attributes.rs b/moli-renderer-v8/src/native_bridge/document/detached_surface/element_attributes.rsindex 18d97d4c7..5e1b9d3b1 100644--- a/moli-renderer-v8/src/native_bridge/document/detached_surface/element_attributes.rs+++ b/moli-renderer-v8/src/native_bridge/document/detached_surface/element_attributes.rs@@ -4,7 +4,7 @@ use crate::util::context_host_ptr_from_global_bridge;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DetachedSurfaceNamespaceAttributeRecordDeclaration<'scope> {name: v8::Local<'scope, v8::String>,value: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/native_bridge/document/live_collections/all/builder.rs b/moli-renderer-v8/src/native_bridge/document/live_collections/all/builder.rsindex e702aeb40..d2f7641e1 100644--- a/moli-renderer-v8/src/native_bridge/document/live_collections/all/builder.rs+++ b/moli-renderer-v8/src/native_bridge/document/live_collections/all/builder.rs@@ -13,7 +13,7 @@ use super::callbacks::{use super::items::{document_all_items_array, document_all_named_lookup};#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DocumentAllCollectionDataDeclaration<'scope> {items: v8::Local<'scope, v8::Array>,named: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/element/events/constructors.rs b/moli-renderer-v8/src/native_bridge/element/events/constructors.rsindex 454092eb0..3ca293f2b 100644--- a/moli-renderer-v8/src/native_bridge/element/events/constructors.rs+++ b/moli-renderer-v8/src/native_bridge/element/events/constructors.rs@@ -5,7 +5,7 @@ use super::{construct_event, event_constructor};use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct MouseEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -23,7 +23,7 @@ struct MouseEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct PointerEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -50,7 +50,7 @@ struct PointerEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DragEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -65,7 +65,7 @@ struct DragEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WheelEventInitDeclaration {bubbles: bool,cancelable: bool,@@ -83,7 +83,7 @@ struct WheelEventInitDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TouchEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -94,7 +94,7 @@ struct TouchEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TouchInitDeclaration<'scope> {identifier: i32,target: v8::Local<'scope, v8::Object>,@@ -107,7 +107,7 @@ struct TouchInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct KeyboardEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -295,7 +295,7 @@ fn keyboard_event_key_code_for_printable_key(key: &str) -> Option<u32> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct FocusEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -304,7 +304,7 @@ struct FocusEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct SimpleEventInitDeclaration {bubbles: bool,cancelable: bool,@@ -312,7 +312,7 @@ struct SimpleEventInitDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct SubmitEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -320,7 +320,7 @@ struct SubmitEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CommandEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -330,7 +330,7 @@ struct CommandEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ToggleEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,@@ -341,7 +341,7 @@ struct ToggleEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct InterestEventInitDeclaration<'scope> {bubbles: bool,cancelable: bool,diff --git a/moli-renderer-v8/src/native_bridge/element/media/text_tracks.rs b/moli-renderer-v8/src/native_bridge/element/media/text_tracks.rsindex 0ef62c1e0..064605d65 100644--- a/moli-renderer-v8/src/native_bridge/element/media/text_tracks.rs+++ b/moli-renderer-v8/src/native_bridge/element/media/text_tracks.rs@@ -195,7 +195,7 @@ struct TextTrackTemplateDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct TrackEventInitDeclaration<'scope> {track: v8::Local<'scope, v8::Object>,}diff --git a/moli-renderer-v8/src/native_bridge/history_queue.rs b/moli-renderer-v8/src/native_bridge/history_queue.rsindex 3579bc6a3..5d865e1c5 100644--- a/moli-renderer-v8/src/native_bridge/history_queue.rs+++ b/moli-renderer-v8/src/native_bridge/history_queue.rs@@ -73,7 +73,7 @@ pub(crate) struct PendingChildCrossDocumentTraversal {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NavigationResultDeclaration<'scope> {committed: v8::Local<'scope, v8::Promise>,finished: v8::Local<'scope, v8::Promise>,diff --git a/moli-renderer-v8/src/native_bridge/node/foreign/clone.rs b/moli-renderer-v8/src/native_bridge/node/foreign/clone.rsindex 0043e4c39..c7310916b 100644--- a/moli-renderer-v8/src/native_bridge/node/foreign/clone.rs+++ b/moli-renderer-v8/src/native_bridge/node/foreign/clone.rs@@ -252,13 +252,13 @@ mod tests {use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct TestForeignElementDeclaration {local_name: String,}#[derive(WebApiObject)]- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct TestForeignDocumentDeclaration<'scope> {node_name: &'static str,document_element: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/native_bridge/node/metadata.rs b/moli-renderer-v8/src/native_bridge/node/metadata.rsindex e724d2279..d1d6f7c0b 100644--- a/moli-renderer-v8/src/native_bridge/node/metadata.rs+++ b/moli-renderer-v8/src/native_bridge/node/metadata.rs@@ -2,7 +2,7 @@ use crate::dom::native::LiveDomNodeMetadata;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NodeMetadataDeclaration<'scope> {kind: v8::Local<'scope, v8::Value>,node_type: u8,diff --git a/moli-renderer-v8/src/network_host/body_source.rs b/moli-renderer-v8/src/network_host/body_source.rsindex fd670e7d8..d088f19e4 100644--- a/moli-renderer-v8/src/network_host/body_source.rs+++ b/moli-renderer-v8/src/network_host/body_source.rs@@ -42,7 +42,7 @@ static NETWORK_BODY_SOURCES: OnceLock<Mutex<HashMap<NetworkBodySourceId, NetworkOnceLock::new();#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct OwnedNetworkBodySourceDeclaration<'scope> {#[webapi(slot = NETWORK_BODY_SOURCE_KIND_SLOT)]kind: &'static str,@@ -51,7 +51,7 @@ struct OwnedNetworkBodySourceDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct RegisteredNetworkBodySourceDeclaration<'scope> {#[webapi(slot = NETWORK_BODY_SOURCE_KIND_SLOT)]kind: &'static str,@@ -66,7 +66,7 @@ struct RegisteredNetworkBodySourceDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PendingNetworkBodySourceDeclaration<'scope> {#[webapi(slot = NETWORK_BODY_SOURCE_KIND_SLOT)]kind: &'static str,diff --git a/moli-renderer-v8/src/network_host/event_source/bindings.rs b/moli-renderer-v8/src/network_host/event_source/bindings.rsindex 447cfa77a..17f9b1e0c 100644--- a/moli-renderer-v8/src/network_host/event_source/bindings.rs+++ b/moli-renderer-v8/src/network_host/event_source/bindings.rs@@ -111,7 +111,7 @@ struct EventSourceAccessorsDeclaration {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct EventSourceMessageEventInitDeclaration<'scope> {data: v8::Local<'scope, v8::String>,origin: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/network_host/fetch/bindings.rs b/moli-renderer-v8/src/network_host/fetch/bindings.rsindex 1ac407f40..918c26b60 100644--- a/moli-renderer-v8/src/network_host/fetch/bindings.rs+++ b/moli-renderer-v8/src/network_host/fetch/bindings.rs@@ -16,7 +16,7 @@ use crate::structured_clone::V8StructuredClonePayload;use moli_webapi_declare::{ObjectLiteralDeclaration, WebApiObject};#[derive(Default, WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct FetchAbortListenerOptionsDeclaration {#[webapi(init = true)]once: (),diff --git a/moli-renderer-v8/src/network_host/fetch_surface.rs b/moli-renderer-v8/src/network_host/fetch_surface.rsindex 68e07f63b..5a3a64f83 100644--- a/moli-renderer-v8/src/network_host/fetch_surface.rs+++ b/moli-renderer-v8/src/network_host/fetch_surface.rs@@ -56,7 +56,7 @@ struct ResponseCloneShellDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ResponseInitObjectDeclaration<'scope> {status: Option<f64>,status_text: Option<String>,diff --git a/moli-renderer-v8/src/network_host/headers/methods/iteration.rs b/moli-renderer-v8/src/network_host/headers/methods/iteration.rsindex cb1cf2885..15d695dfa 100644--- a/moli-renderer-v8/src/network_host/headers/methods/iteration.rs+++ b/moli-renderer-v8/src/network_host/headers/methods/iteration.rs@@ -36,7 +36,7 @@ enum HeadersIteratorKind {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct HeadersIteratorResultDeclaration<'scope> {done: bool,value: v8::Local<'scope, v8::Value>,diff --git a/moli-renderer-v8/src/network_host/response/materialize.rs b/moli-renderer-v8/src/network_host/response/materialize.rsindex 80627ffc9..6d5d17595 100644--- a/moli-renderer-v8/src/network_host/response/materialize.rs+++ b/moli-renderer-v8/src/network_host/response/materialize.rs@@ -32,7 +32,7 @@ impl From<crate::types::AsyncSubresourceFetchResponseFilter> for FetchResponseFi}#[derive(WebApiObject)]-#[webapi(record, prototype = "Response")]+#[webapi(plain, prototype = "Response")]struct FetchResponseHeadDeclaration {#[webapi(slot = RESPONSE_STATUS_SLOT)]status: f64,@@ -47,14 +47,14 @@ struct FetchResponseHeadDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct FetchResponseInternalUrlDeclaration {#[webapi(slot = RESPONSE_INTERNAL_URL_SLOT)]internal_url: String,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct FetchResponseBodyDeclaration<'scope> {#[webapi(slot = RESPONSE_STATUS_TEXT_SLOT)]status_text: String,diff --git a/moli-renderer-v8/src/network_host/xhr/delivery/progress.rs b/moli-renderer-v8/src/network_host/xhr/delivery/progress.rsindex ed1c11c4d..1cd11442b 100644--- a/moli-renderer-v8/src/network_host/xhr/delivery/progress.rs+++ b/moli-renderer-v8/src/network_host/xhr/delivery/progress.rs@@ -14,7 +14,7 @@ const XHR_PROGRESS_DATA_INTERNAL_ID: &str = "internalId";const XHR_PROGRESS_MINIMUM_INTERVAL_MS: u32 = 50;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct XhrProgressTimerDataDeclaration<'scope> {xhr: v8::Local<'scope, v8::Object>,internal_id: f64,diff --git a/moli-renderer-v8/src/network_host/xhr/delivery/timeout.rs b/moli-renderer-v8/src/network_host/xhr/delivery/timeout.rsindex 277b28cbc..6637effc1 100644--- a/moli-renderer-v8/src/network_host/xhr/delivery/timeout.rs+++ b/moli-renderer-v8/src/network_host/xhr/delivery/timeout.rs@@ -9,7 +9,7 @@ const XHR_TIMEOUT_DATA_XHR: &str = "xhr";const XHR_TIMEOUT_DATA_INTERNAL_ID: &str = "internalId";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct XhrTimeoutDataDeclaration<'scope> {xhr: v8::Local<'scope, v8::Object>,internal_id: f64,diff --git a/moli-renderer-v8/src/network_host/xhr/events/dispatch.rs b/moli-renderer-v8/src/network_host/xhr/events/dispatch.rsindex bb6ee6cdc..be7c04f73 100644--- a/moli-renderer-v8/src/network_host/xhr/events/dispatch.rs+++ b/moli-renderer-v8/src/network_host/xhr/events/dispatch.rs@@ -6,7 +6,7 @@ use crate::util::get_private_value;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct XhrReadyStateChangeEventDeclaration<'scope> {r#type: &'static str,target: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/network_host/xhr/events/progress.rs b/moli-renderer-v8/src/network_host/xhr/events/progress.rsindex 05c6e07db..46489067b 100644--- a/moli-renderer-v8/src/network_host/xhr/events/progress.rs+++ b/moli-renderer-v8/src/network_host/xhr/events/progress.rs@@ -2,14 +2,14 @@ use super::super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ProgressEventTargetDeclaration<'scope> {target: v8::Local<'scope, v8::Object>,current_target: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct ProgressEventInitDeclaration {length_computable: bool,loaded: f64,diff --git a/moli-renderer-v8/src/network_host/xhr/instance_state.rs b/moli-renderer-v8/src/network_host/xhr/instance_state.rsindex 15d561c41..2dbed91d3 100644--- a/moli-renderer-v8/src/network_host/xhr/instance_state.rs+++ b/moli-renderer-v8/src/network_host/xhr/instance_state.rs@@ -33,7 +33,7 @@ const XHR_STATE_FIELD_INDEX: usize = 0;const XHR_UPLOAD_FIELD_INDEX: usize = 1;#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct XmlHttpRequestStateDeclaration {#[webapi(slot = XHR_EXECUTION_CONTEXT_BINDING_SLOT, init = "")]execution_context_binding: (),diff --git a/moli-renderer-v8/src/runtime_binding_data.rs b/moli-renderer-v8/src/runtime_binding_data.rsindex c683f52a6..bdd34e67c 100644--- a/moli-renderer-v8/src/runtime_binding_data.rs+++ b/moli-renderer-v8/src/runtime_binding_data.rs@@ -13,7 +13,7 @@ use crate::{};#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct RuntimeBindingDataDeclaration<'scope> {host: v8::Local<'scope, v8::External>,name: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/script_vm/native_module.rs b/moli-renderer-v8/src/script_vm/native_module.rsindex b6c360358..e93e76b80 100644--- a/moli-renderer-v8/src/script_vm/native_module.rs+++ b/moli-renderer-v8/src/script_vm/native_module.rs@@ -583,13 +583,13 @@ const MODULE_REACTION_DOCUMENT_ID_SLOT: &str = "documentId";const MODULE_REACTION_REALM_ID_SLOT: &str = "realmId";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NativeDynamicModuleReactionDataDeclaration<'scope> {reaction_id: v8::Local<'scope, v8::BigInt>,}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NativeModuleScriptReactionDataDeclaration<'scope> {module_script_reaction_id: v8::Local<'scope, v8::BigInt>,scheduler_lane_id: v8::Local<'scope, v8::BigInt>,@@ -598,7 +598,7 @@ struct NativeModuleScriptReactionDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct NativeChildModuleScriptReactionDataDeclaration<'scope> {module_script_reaction_id: v8::Local<'scope, v8::BigInt>,scheduler_lane_id: v8::Local<'scope, v8::BigInt>,diff --git a/moli-renderer-v8/src/script_vm/tests/dom_xhr/xhr.rs b/moli-renderer-v8/src/script_vm/tests/dom_xhr/xhr.rsindex 883cf1a3b..0f047cccf 100644--- a/moli-renderer-v8/src/script_vm/tests/dom_xhr/xhr.rs+++ b/moli-renderer-v8/src/script_vm/tests/dom_xhr/xhr.rs@@ -3,11 +3,11 @@ use crate::util::v8str;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct PendingBodyOwnerProbeDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct StreamingXhrProbeDeclaration {}fn pending_body_owner_probe<'s>(scope: &mut v8::PinScope<'s, '_>) -> v8::Local<'s, v8::Object> {diff --git a/moli-renderer-v8/src/script_vm/tests/webidl_fetch.rs b/moli-renderer-v8/src/script_vm/tests/webidl_fetch.rsindex dcbe59505..dcc205f67 100644--- a/moli-renderer-v8/src/script_vm/tests/webidl_fetch.rs+++ b/moli-renderer-v8/src/script_vm/tests/webidl_fetch.rs@@ -3,13 +3,13 @@ use crate::util::v8str;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties)]+#[webapi(plain, data_properties)]struct NullableRequiredDictionaryValueProbe<'scope> {value: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NullableRequiredDictionaryAbsentProbe {}#[test]diff --git a/moli-renderer-v8/src/script_vm/tests/websocket.rs b/moli-renderer-v8/src/script_vm/tests/websocket.rsindex 6af7e680b..4a069e418 100644--- a/moli-renderer-v8/src/script_vm/tests/websocket.rs+++ b/moli-renderer-v8/src/script_vm/tests/websocket.rs@@ -2,7 +2,7 @@ use super::*;use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct LoadingWorkerWrapperProbeDeclaration {}fn loading_worker_wrapper_probe<'s>(scope: &mut v8::PinScope<'s, '_>) -> v8::Local<'s, v8::Object> {diff --git a/moli-renderer-v8/src/script_vm/webcrypto_tasks.rs b/moli-renderer-v8/src/script_vm/webcrypto_tasks.rsindex 2b27a4ac9..b10d60bf0 100644--- a/moli-renderer-v8/src/script_vm/webcrypto_tasks.rs+++ b/moli-renderer-v8/src/script_vm/webcrypto_tasks.rs@@ -10,7 +10,7 @@ use crate::{use moli_webapi_declare::WebApiObject;#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct CryptoKeyPairResultDeclaration<'scope> {private_key: v8::Local<'scope, v8::Object>,public_key: v8::Local<'scope, v8::Object>,diff --git a/moli-renderer-v8/src/util.rs b/moli-renderer-v8/src/util.rsindex 9a7c55822..154626bac 100644--- a/moli-renderer-v8/src/util.rs+++ b/moli-renderer-v8/src/util.rs@@ -644,19 +644,19 @@ mod tests {use url::Url;#[derive(WebApiObject)]- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct TestParentObjectDeclaration<'scope> {parent_node: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct TestParentValueDeclaration<'scope> {parent_node: v8::Local<'scope, v8::Value>,}#[derive(WebApiObject)]- #[webapi(record)]+ #[webapi(plain)]struct TestIdentityObjectDeclaration {}fn primitive_host_defined_options<'s>(diff --git a/moli-renderer-v8/src/webidl_iterator.rs b/moli-renderer-v8/src/webidl_iterator.rsindex 429376e81..d34532c1e 100644--- a/moli-renderer-v8/src/webidl_iterator.rs+++ b/moli-renderer-v8/src/webidl_iterator.rs@@ -131,7 +131,7 @@ pub(crate) enum MaplikeWebIdlIteratorMethod {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SnapshotWebIdlIteratorDeclaration<'s> {#[webapi(slot = SNAPSHOT_ITERATOR_VALUES_SLOT)]values: v8::Local<'s, v8::Array>,@@ -140,7 +140,7 @@ struct SnapshotWebIdlIteratorDeclaration<'s> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NativeCollectionWebIdlIteratorDeclaration<'s> {#[webapi(slot = NATIVE_COLLECTION_ITERATOR_SLOT)]iterator: v8::Local<'s, v8::Object>,@@ -149,7 +149,7 @@ struct NativeCollectionWebIdlIteratorDeclaration<'s> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct SnapshotWebIdlIteratorResultDeclaration<'s> {value: v8::Local<'s, v8::Value>,done: bool,diff --git a/moli-renderer-v8/src/window_host.rs b/moli-renderer-v8/src/window_host.rsindex a60a7606b..6677906cf 100644--- a/moli-renderer-v8/src/window_host.rs+++ b/moli-renderer-v8/src/window_host.rs@@ -64,7 +64,7 @@ const WINDOW_REQUEST_ANIMATION_FRAME_DELAY_MS: u32 = 16;pub(crate) const TOP_WINDOW_MESSAGE_ENDPOINT_SLOT: &str = "__moliTopWindowMessageEndpoint";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WindowMessageEventInitDeclaration<'scope> {data: v8::Local<'scope, v8::Value>,origin: v8::Local<'scope, v8::String>,@@ -73,7 +73,7 @@ struct WindowMessageEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WindowDocumentEventInitDeclaration {bubbles: bool,cancelable: bool,diff --git a/moli-renderer-v8/src/worker/global_scope/mod.rs b/moli-renderer-v8/src/worker/global_scope/mod.rsindex 2ded26ad4..5c61bcbb2 100644--- a/moli-renderer-v8/src/worker/global_scope/mod.rs+++ b/moli-renderer-v8/src/worker/global_scope/mod.rs@@ -182,7 +182,7 @@ const SERVICE_WORKER_CLIENT_ID_SLOT: &str = "__lmServiceWorkerClientId";const WORKER_ORIGINAL_CONSOLE_SLOT: &str = "__moliWorkerOriginalConsole";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalBootstrapPropertiesDeclaration<'scope> {#[webapi(slot = WORKER_STATE_SLOT)]worker_state: v8::Local<'scope, v8::External>,@@ -197,35 +197,35 @@ struct WorkerGlobalBootstrapPropertiesDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalNameDeclaration {#[webapi(data_property, enumerable)]name: String,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalOriginDeclaration {#[webapi(data_property, readonly)]origin: String,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalConsoleDeclaration<'scope> {#[webapi(data_property)]console: v8::Local<'scope, v8::Object>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalPerformanceDeclaration<'scope> {#[webapi(data_property)]performance: v8::Local<'scope, v8::Object>,}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerConsoleObjectDeclaration {#[webapi(method, enumerable, callback = console_log_callback, data = v8str(scope, "log"))]log: (),@@ -281,7 +281,7 @@ struct WorkerPerformanceObjectDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct WorkerGlobalCommonEventHandlersDeclaration {#[webapi(accessor_property = "onerror",@@ -316,7 +316,7 @@ struct WorkerGlobalCommonEventHandlersDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct DedicatedWorkerGlobalEventHandlersDeclaration {#[webapi(accessor_property = "onmessage",@@ -333,7 +333,7 @@ struct DedicatedWorkerGlobalEventHandlersDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct SharedWorkerGlobalEventHandlersDeclaration {#[webapi(accessor_property = "onconnect",@@ -344,7 +344,7 @@ struct SharedWorkerGlobalEventHandlersDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalCommonEventHandlerStateDeclaration {#[webapi(slot = WORKER_GLOBAL_ONERROR_SLOT, init = "null")]onerror: (),@@ -359,7 +359,7 @@ struct WorkerGlobalCommonEventHandlerStateDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DedicatedWorkerGlobalEventHandlerStateDeclaration {#[webapi(slot = WORKER_GLOBAL_ONMESSAGE_SLOT, init = "null")]onmessage: (),@@ -368,7 +368,7 @@ struct DedicatedWorkerGlobalEventHandlerStateDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SharedWorkerGlobalEventHandlerStateDeclaration {#[webapi(slot = WORKER_GLOBAL_ONCONNECT_SLOT, init = "null")]onconnect: (),@@ -382,7 +382,7 @@ struct DedicatedWorkerGlobalMethodsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DedicatedWorkerGlobalPostMessageDeclaration {#[webapi(method = "postMessage", callback = worker_post_message_callback, length = 1)]post_message: (),@@ -396,7 +396,7 @@ struct SharedWorkerGlobalMethodsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalCommonOperationsDeclaration {#[webapi(method = "structuredClone",@@ -411,7 +411,7 @@ struct WorkerGlobalCommonOperationsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalTimerOperationsDeclaration {#[webapi(method = "setTimeout", callback = worker_set_timeout_callback, length = 1)]set_timeout: (),@@ -442,7 +442,7 @@ struct WorkerGlobalTimerOperationsDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalCreateImageBitmapDeclaration {#[webapi(method = "createImageBitmap",@@ -453,7 +453,7 @@ struct WorkerGlobalCreateImageBitmapDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct ServiceWorkerGlobalEventHandlersDeclaration {#[webapi(accessor_property = "oninstall",@@ -518,7 +518,7 @@ struct ServiceWorkerGlobalEventHandlersDeclaration {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerGlobalEventHandlerStateDeclaration {#[webapi(slot = WORKER_GLOBAL_ONINSTALL_SLOT, init = "null")]oninstall: (),@@ -564,7 +564,7 @@ struct ServiceWorkerClientsDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerGlobalRuntimeDeclaration<'scope> {#[webapi(data_property, readonly)]registration: v8::Local<'scope, v8::Object>,@@ -594,56 +594,56 @@ struct ExtendableEventTemplateDeclaration {struct ExtendableMessageEventTemplateDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerGlobalScopeConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "WorkerGlobalScope")]constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DedicatedWorkerGlobalScopeConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "DedicatedWorkerGlobalScope")]constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct SharedWorkerGlobalScopeConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "SharedWorkerGlobalScope")]constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerGlobalScopeConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "ServiceWorkerGlobalScope")]constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ExtendableEventConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "ExtendableEvent")]extendable_event: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ExtendableMessageEventConstructorGlobalDeclaration<'scope> {#[webapi(data_property = "ExtendableMessageEvent")]extendable_message_event: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerScopePrototypeConstructorDeclaration<'scope> {#[webapi(data_property = "constructor")]constructor: v8::Local<'scope, v8::Function>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerPrototypeTagDeclaration {#[webapi(to_string_tag, readonly)]tag: &'static str,@@ -850,7 +850,7 @@ struct ServiceWorkerPushSubscriptionOptionsDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerNavigationPreloadStateDeclaration {#[webapi(data_property, enumerable)]enabled: bool,diff --git a/moli-renderer-v8/src/worker/global_scope/xhr.rs b/moli-renderer-v8/src/worker/global_scope/xhr.rsindex 7c8f79f3f..11a54fc5b 100644--- a/moli-renderer-v8/src/worker/global_scope/xhr.rs+++ b/moli-renderer-v8/src/worker/global_scope/xhr.rs@@ -22,7 +22,7 @@ pub(in crate::worker) const WORKER_XHR_TIMEOUT_DATA_XHR: &str = "xhr";pub(in crate::worker) const WORKER_XHR_TIMEOUT_DATA_XHR_ID: &str = "xhrId";#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct WorkerXhrTimeoutDataDeclaration<'scope> {xhr: v8::Local<'scope, v8::Object>,xhr_id: f64,diff --git a/moli-renderer-v8/src/worker/module_runtime.rs b/moli-renderer-v8/src/worker/module_runtime.rsindex f273dfd1f..86ad935c6 100644--- a/moli-renderer-v8/src/worker/module_runtime.rs+++ b/moli-renderer-v8/src/worker/module_runtime.rs@@ -35,14 +35,14 @@ pub(super) type WorkerModuleEvaluationId = u64;const WORKER_MODULE_EVALUATION_REACTION_ID_SLOT: &str = "workerModuleEvaluationReactionId";#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerModuleEvaluationReactionDataDeclaration {#[webapi(slot = WORKER_MODULE_EVALUATION_REACTION_ID_SLOT)]evaluation_id: f64,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerImportMetaDeclaration<'scope> {#[webapi(data_property, enumerable)]url: v8::Local<'scope, v8::String>,diff --git a/moli-renderer-v8/src/worker/thread/dispatch.rs b/moli-renderer-v8/src/worker/thread/dispatch.rsindex 2564598bb..2a78b8c65 100644--- a/moli-renderer-v8/src/worker/thread/dispatch.rs+++ b/moli-renderer-v8/src/worker/thread/dispatch.rs@@ -88,7 +88,7 @@ const SERVICE_WORKER_PERIODIC_SYNC_EVENT_ID_SLOT: &str = "__lmServiceWorkerPerioconst MAX_REPORTED_WORKER_PROMISE_REJECTIONS: usize = 1024;#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,@@ -99,7 +99,7 @@ struct WorkerMessageEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerErrorEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]message: v8::Local<'scope, v8::String>,@@ -116,7 +116,7 @@ struct WorkerErrorEventInitDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct WorkerPromiseRejectionEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]cancelable: bool,@@ -227,7 +227,7 @@ struct ServiceWorkerMessageEventDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerExtendableMessageEventInitDeclaration<'scope> {#[webapi(data_property, enumerable)]data: v8::Local<'scope, v8::Value>,@@ -242,7 +242,7 @@ struct ServiceWorkerExtendableMessageEventInitDeclaration<'scope> {}#[derive(Default, WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerMessageDispatchMethodsDeclaration {#[webapi(method = "preventDefault",@@ -344,7 +344,7 @@ struct ServiceWorkerPeriodicSyncEventDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerRespondWithCallbackDataDeclaration<'scope> {#[webapi(data_property, enumerable)]event_id: v8::Local<'scope, v8::BigInt>,@@ -353,21 +353,21 @@ struct ServiceWorkerRespondWithCallbackDataDeclaration<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerRespondWithLifetimeCallbackDataDeclaration<'scope> {#[webapi(data_property, enumerable)]event_id: v8::Local<'scope, v8::BigInt>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerRespondWithBodyCallbackDataDeclaration<'scope> {#[webapi(data_property, enumerable)]event_id: v8::Local<'scope, v8::BigInt>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerRespondWithStreamChunkCallbackDataDeclaration<'scope> {#[webapi(data_property, enumerable)]event_id: v8::Local<'scope, v8::BigInt>,@@ -2834,7 +2834,7 @@ fn build_service_worker_wait_until_callback<'s>(}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ServiceWorkerWaitUntilCallbackDataDeclaration<'scope> {#[webapi(data_property, enumerable)]event_id: v8::Local<'scope, v8::BigInt>,diff --git a/moli-webapi-declare-derive/src/attrs.rs b/moli-webapi-declare-derive/src/attrs.rsindex 498590292..d4b7b2d27 100644--- a/moli-webapi-declare-derive/src/attrs.rs+++ b/moli-webapi-declare-derive/src/attrs.rs@@ -6,7 +6,7 @@ pub(crate) type ReceiverAttr = Path;#[derive(Clone)]pub(crate) enum ObjectRole {Instance(Path),- Record,+ Plain,Fragment,}@@ -14,7 +14,7 @@ impl ObjectRole {pub(crate) fn interface(&self) -> Option<&Path> {match self {Self::Instance(interface) => Some(interface),- Self::Record | Self::Fragment => None,+ Self::Plain | Self::Fragment => None,}}}@@ -235,18 +235,16 @@ pub(crate) fn parse_object_attrs(attrs: &[syn::Attribute]) -> Result<ObjectAttrsreturn Ok(());}if meta.path.is_ident("interface")- || meta.path.is_ident("record")+ || meta.path.is_ident("plain")|| meta.path.is_ident("fragment"){if parsed.role.is_some() {- return Err(- meta.error("choose one object role: interface, record, or fragment")- );+ return Err(meta.error("choose one object role: interface, plain, or fragment"));}parsed.role = Some(if meta.path.is_ident("interface") {ObjectRole::Instance(meta.value()?.parse()?)- } else if meta.path.is_ident("record") {- ObjectRole::Record+ } else if meta.path.is_ident("plain") {+ ObjectRole::Plain} else {ObjectRole::Fragment});@@ -998,15 +996,15 @@ mod tests {#[test]fn object_roles_are_exclusive() {let cases: [Vec<syn::Attribute>; 3] = [- syn::parse_quote!(#[webapi(record, fragment)]),- syn::parse_quote!(#[webapi(interface = Event, record)]),+ syn::parse_quote!(#[webapi(plain, fragment)]),+ syn::parse_quote!(#[webapi(interface = Event, plain)]),syn::parse_quote!(#[webapi(fragment, interface = Event)]),];for attrs in cases {let error = parse_object_attrs(&attrs).err().expect("conflicting roles");assert_eq!(error.to_string(),- "choose one object role: interface, record, or fragment"+ "choose one object role: interface, plain, or fragment");}}@@ -1021,7 +1019,7 @@ mod tests {quote::quote!(#receiver).to_string(),"interfaces :: Event :: is_instance");- let attrs: Vec<syn::Attribute> = syn::parse_quote!(#[webapi(record, receiver)]);+ let attrs: Vec<syn::Attribute> = syn::parse_quote!(#[webapi(plain, receiver)]);assert!(parse_object_attrs(&attrs).is_err());}@@ -1089,7 +1087,7 @@ mod tests {#[test]fn object_enumerable_default_can_be_used_without_default_data_properties() {let attrs: Vec<syn::Attribute> = syn::parse_quote! {- #[webapi(record, enumerable)]+ #[webapi(plain, enumerable)]};let attrs = parse_object_attrs(&attrs).expect("enumerable default should parse without data properties");@@ -1100,7 +1098,7 @@ mod tests {#[test]fn object_data_properties_default_is_parsed() {let attrs: Vec<syn::Attribute> = syn::parse_quote! {- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]};let attrs = parse_object_attrs(&attrs).expect("data-properties default should parse");assert!(attrs.default_data_properties);@@ -1109,13 +1107,13 @@ mod tests {#[test]fn rename_all_none_is_the_only_explicit_rename_rule() {let attrs: Vec<syn::Attribute> = syn::parse_quote! {- #[webapi(record, rename_all = "none")]+ #[webapi(plain, rename_all = "none")]};let attrs = parse_object_attrs(&attrs).expect("rename_all none should parse");assert!(matches!(attrs.rename_all, RenameRule::None));let attrs: Vec<syn::Attribute> = syn::parse_quote! {- #[webapi(record, rename_all = "camelCase")]+ #[webapi(plain, rename_all = "camelCase")]};let error = match parse_object_attrs(&attrs) {Ok(_) => panic!("explicit camelCase rename_all should be rejected"),@@ -1295,7 +1293,7 @@ mod tests {#[test]fn removed_object_properties_spelling_is_rejected() {let attrs: Vec<syn::Attribute> = syn::parse_quote! {- #[webapi(record, properties)]+ #[webapi(plain, properties)]};let error = match parse_object_attrs(&attrs) {Ok(_) => panic!("removed object properties spelling should be rejected"),diff --git a/moli-webapi-declare-derive/src/expand.rs b/moli-webapi-declare-derive/src/expand.rsindex 0f8e26222..acb0ef2a4 100644--- a/moli-webapi-declare-derive/src/expand.rs+++ b/moli-webapi-declare-derive/src/expand.rs@@ -213,7 +213,7 @@ pub(crate) fn expand_webapi_object(input: DeriveInput) -> Result<proc_macro2::Tolet (impl_generics, ty_generics, where_clause) = generics.split_for_impl();let attrs = parse_object_attrs(&input.attrs)?;let role = attrs.role.as_ref().ok_or_else(|| Error::new(- struct_name.span(), "choose an object role with #[webapi(interface = Type)], #[webapi(record)], or #[webapi(fragment)]",+ struct_name.span(), "choose an object role with #[webapi(interface = Type)], #[webapi(plain)], or #[webapi(fragment)]",))?;let prototype = attrs.prototype@@ -221,7 +221,7 @@ pub(crate) fn expand_webapi_object(input: DeriveInput) -> Result<proc_macro2::To.map(|prototype| quote!(#prototype)).or_else(|| match role {ObjectRole::Instance(interface) => Some(quote!(<#interface>::DESCRIPTOR.name())),- ObjectRole::Record => Some(quote!("Object")),+ ObjectRole::Plain => Some(quote!("Object")),ObjectRole::Fragment => None,});let own_to_string_tag = match attrs.own_to_string_tag.as_ref() {@@ -1769,7 +1769,7 @@ mod tests {#[test]fn inherited_receiver_cannot_silently_skip_an_already_built_getter() {let input = syn::parse_quote! {- #[webapi(record, receiver = check)]+ #[webapi(plain, receiver = check)]struct Invalid {#[webapi(accessor_property, getter_value = self.getter)]getter: (),@@ -1782,7 +1782,7 @@ mod tests {#[test]fn declaration_only_field_attributes_are_rejected() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct BadObject {#[webapi(init = "null")]ignored: (),@@ -1801,7 +1801,7 @@ mod tests {#[test]fn default_data_property_fields_can_use_data_property_initializers() {let input = syn::parse_quote! {- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct DefaultObject {#[webapi(init = "null")]value: (),@@ -1813,7 +1813,7 @@ mod tests {#[test]fn object_generated_constructor_defaults_to_new_for_dynamic_fields() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct DynamicObject {#[webapi(data_property, init = true)]brand: (),@@ -1832,7 +1832,7 @@ mod tests {#[test]fn object_generated_constructor_defaults_to_new_for_unit_fields() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct StaticObject {#[webapi(data_property, init = true)]brand: (),@@ -1851,7 +1851,7 @@ mod tests {#[test]fn object_generated_constructor_uses_constructor_defaults() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct DefaultedObject {#[webapi(data_property)]value: u32,@@ -1875,7 +1875,7 @@ mod tests {#[test]fn object_generated_constructor_defaults_can_reference_previous_fields() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct DerivedDefaultObject {#[webapi(data_property)]client_x: i32,@@ -1894,7 +1894,7 @@ mod tests {#[test]fn object_generated_constructor_can_be_suppressed() {let input = syn::parse_quote! {- #[webapi(record, no_dynamic_constructor)]+ #[webapi(plain, no_dynamic_constructor)]struct ManualObject {#[webapi(data_property)]value: u32,@@ -1979,7 +1979,7 @@ mod tests {#[test]fn object_intrinsic_data_properties_are_rejected() {let input = syn::parse_quote! {- #[webapi(record)]+ #[webapi(plain)]struct BadObject {#[webapi(intrinsic_data_property = v8::Intrinsic::ArrayProtoValues@@ -2145,7 +2145,7 @@ mod tests {#[test]fn object_static_method_fields_are_rejected() {let input = syn::parse_quote! {- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct BadObject {#[webapi(static_method, callback = sample_callback)]create: (),@@ -2164,7 +2164,7 @@ mod tests {#[test]fn object_constant_fields_are_supported() {let input = syn::parse_quote! {- #[webapi(record, data_properties)]+ #[webapi(plain, data_properties)]struct BadObject {#[webapi(constant = "READY", value = 4u32)]ready: (),diff --git a/moli-webapi-declare-derive/src/lib.rs b/moli-webapi-declare-derive/src/lib.rsindex 233410a66..71f4e95a4 100644--- a/moli-webapi-declare-derive/src/lib.rs+++ b/moli-webapi-declare-derive/src/lib.rs@@ -29,7 +29,7 @@ pub fn derive_webapi_function_template(input: TokenStream) -> TokenStream {/// Derives a Web API object declaration binder.///-/// Choose `interface = NativeType` for native identity, `record` for a plain+/// Choose `interface = NativeType` for native identity, `plain` for a plain/// object, or `fragment` for shared initialization without implicit identity or/// prototype changes. Empty declarations and a single scope lifetime require/// no additional flags.diff --git a/moli-webapi-declare/src/declaration.rs b/moli-webapi-declare/src/declaration.rsindex a1b195df1..c27da4465 100644--- a/moli-webapi-declare/src/declaration.rs+++ b/moli-webapi-declare/src/declaration.rs@@ -25,7 +25,7 @@ pub trait WebApiFunctionTemplateDeclaration {);}-/// Binds a native instance, plain record, or shared initialization fragment.+/// Binds a native instance, plain object, or shared initialization fragment.////// Implementations are generated by `#[derive(WebApiObject)]`. `initialize`/// installs only the fields that are explicitly declared as properties, methods,@@ -54,7 +54,7 @@ pub trait WebApiObjectDeclaration<'s> {/// Declares the descriptor object returned by native named/indexed property/// descriptor interceptors for data properties.#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable, no_dynamic_constructor)]+#[webapi(plain, data_properties, enumerable, no_dynamic_constructor)]pub struct DataPropertyDescriptorDeclaration<'scope> {value: v8::Local<'scope, v8::Value>,enumerable: bool,diff --git a/moli-webapi-declare/src/lib.rs b/moli-webapi-declare/src/lib.rsindex 571b9301d..62d10709b 100644--- a/moli-webapi-declare/src/lib.rs+++ b/moli-webapi-declare/src/lib.rs@@ -72,7 +72,7 @@//! expose Rust field spelling. Struct-level `#[webapi(enumerable)]` makes//! explicitly declared string-keyed data properties, methods, accessor//! properties, native data properties, and aliases enumerable by default. It-//! can be used with `#[webapi(data_properties)]` for plain record-like objects,+//! can be used with `#[webapi(data_properties)]` for plain objects,//! or by itself for WebIDL prototype declarations where every operation and//! attribute should inherit WebIDL's enumerable prototype-member default.//! Well-known symbol keys remain non-enumerable unless the field itself@@ -91,7 +91,7 @@//! called through `bind`, `bind_into`, or `initialize`. Its default prototype//! comes from the descriptor; an explicit `prototype` can preserve another//! public shape without changing native identity.-//! - `#[webapi(record)]` describes an ordinary unbranded object, defaulting to+//! - `#[webapi(plain)]` describes an ordinary unbranded object, defaulting to//! `Object.prototype`. Field annotations and `data_properties` still control//! which Rust fields become JavaScript properties.//! - `#[webapi(fragment)]` installs shared state or members on an existing@@ -99,8 +99,8 @@//! prototype or tag declarations are applied by `bind_into`; `initialize`//! installs only the declared fields. Fragments never erase native identity.//!-//! Empty declarations need no special opt-in: creating an empty record, branding-//! a native instance and installing prototype metadata all have defined roles.+//! Empty declarations need no special opt-in: creating an empty plain object,+//! branding a native instance and installing prototype metadata all have defined roles.//! A single lifetime parameter is inferred as the V8 scope lifetime; use//! `scope_lifetime` only when a declaration has multiple lifetimes. Payload slots//! hold data, ownership and lifecycle state, not additional boolean brands.@@ -110,8 +110,8 @@//! Implementation sharing does not imply interface inheritance. For example,//! encoding streams share TransformStream internals but have distinct native//! interfaces. Their factory assigns the concrete type while the shared state-//! declaration uses `fragment`. Do not turn actual native instances into records to-//! make them pass structured clone.+//! declaration uses `fragment`. Do not turn actual native instances into plain+//! objects to make them pass structured clone.//!//! Declare each interface once with `declare_web_api_interfaces!` and reference//! it using `#[webapi(interface = interfaces::ProgressEvent)]`. The generateddiff --git a/moli-webapi-declare/tests/brand.rs b/moli-webapi-declare/tests/brand.rsindex d8a233821..9d8ef98c3 100644--- a/moli-webapi-declare/tests/brand.rs+++ b/moli-webapi-declare/tests/brand.rs@@ -15,8 +15,8 @@ struct Base {}struct Derived {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]-struct Record {+#[webapi(plain, data_properties, enumerable)]+struct PlainObject {value: u32,}@@ -50,7 +50,7 @@ fn declarations_brand_instances_and_preserve_derived_identity_across_realms() {let object = Base::new().bind(scope).unwrap();Derived::new().initialize(scope, object).unwrap();Base::new().initialize(scope, object).unwrap();- Record::new(7).initialize(scope, object).unwrap();+ PlainObject::new(7).initialize(scope, object).unwrap();assert_eq!(web_api_object_type(scope, object).unwrap().name(),"TestDerived"@@ -108,9 +108,9 @@ fn identity_is_own_private_and_never_invokes_author_code() {assert_eq!(web_api_object_type(scope, object), None, "{source}");assert!(!implements_interface(scope, object, "TestBase"), "{source}");}- let record = Record::new(7).bind(scope).unwrap();+ let plain = PlainObject::new(7).bind(scope).unwrap();let prototype = PrototypeMembers::new().bind(scope).unwrap();- assert_eq!(web_api_object_type(scope, record), None);+ assert_eq!(web_api_object_type(scope, plain), None);assert_eq!(web_api_object_type(scope, prototype), None);}diff --git a/moli-webapi-declare/tests/declare.rs b/moli-webapi-declare/tests/declare.rsindex bb9691b56..a1769e0b6 100644--- a/moli-webapi-declare/tests/declare.rs+++ b/moli-webapi-declare/tests/declare.rs@@ -267,7 +267,7 @@ struct SampleLocalObjectSlot<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct GeneratedConstructorObject<'scope> {#[webapi(data_property, init = true)]brand: (),@@ -280,7 +280,7 @@ struct GeneratedConstructorObject<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NestedValueRecord {#[webapi(data_property, enumerable)]name: &'static str,@@ -290,7 +290,7 @@ struct NestedValueRecord {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct DefaultNameObject<'scope> {#[webapi(data_property, enumerable)]_visible_label: &'static str,@@ -351,7 +351,7 @@ struct DefaultNameObject<'scope> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct AliasObject {#[webapi(method, enumerable, length = 0, callback = sample_now_callback)]entries: (),@@ -361,7 +361,7 @@ struct AliasObject {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ConstantObject {#[webapi(constant = "READY", value = 4u32)]ready: (),@@ -462,7 +462,7 @@ struct IntrinsicIteratorTemplateDeclaration {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct ExplicitFunctionNameSymbolMethodObject {#[webapi(method,@@ -474,14 +474,14 @@ struct ExplicitFunctionNameSymbolMethodObject {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct NativeDataPropertyObject {#[webapi(native_data_property, getter = sample_native_holder_getter)]native_holder: (),}#[derive(WebApiObject)]-#[webapi(record, enumerable)]+#[webapi(plain, enumerable)]struct DefaultEnumerableMembersObject {#[webapi(data_property)]property_value: &'static str,@@ -501,7 +501,7 @@ struct DefaultEnumerableMembersObject {}#[derive(WebApiObject)]-#[webapi(record, data_properties, enumerable)]+#[webapi(plain, data_properties, enumerable)]struct DefaultEnumerablePropertiesObject {client_x: f64,is_2d: bool,@@ -516,7 +516,7 @@ struct PrototypeBackedEnumerablePropertiesObject {}#[derive(WebApiObject)]-#[webapi(record, rename_all = "none", data_properties, enumerable)]+#[webapi(plain, rename_all = "none", data_properties, enumerable)]struct ExplicitSnakeCasePropertiesObject {snake_case_name: &'static str,}@@ -534,15 +534,15 @@ struct ReadonlyTagObject {}struct RequiredPrototypeObject {}#[derive(WebApiObject)]-#[webapi(record, prototype = "SamplePerformance", require_prototype)]+#[webapi(plain, prototype = "SamplePerformance", require_prototype)]struct PrototypeOnlyObject {}#[derive(WebApiObject)]-#[webapi(record, prototype = "MissingSampleInterface", require_prototype)]+#[webapi(plain, prototype = "MissingSampleInterface", require_prototype)]struct MissingPrototypeOnlyObject {}#[derive(WebApiObject)]-#[webapi(record, scope_lifetime = 'scope)]+#[webapi(plain, scope_lifetime = 'scope)]struct RuntimePrototypeTaggedObject<'scope, 'tag> {#[webapi(prototype)]prototype: v8::Local<'scope, v8::Object>,@@ -552,14 +552,14 @@ struct RuntimePrototypeTaggedObject<'scope, 'tag> {}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct RuntimeTagOnlyObject<'tag> {#[webapi(to_string_tag)]to_string_tag: Option<&'tag str>,}#[derive(WebApiObject)]-#[webapi(record)]+#[webapi(plain)]struct RuntimeReadonlyLockedTagObject {#[webapi(to_string_tag, readonly, dont_delete, init = string("LockedRuntimeTag"))]to_string_tag: (),