feat(webidl): expose reporting interface shells

This commit is contained in:
ldm0
2026-10-11 18:06:46 +08:00
parent 0313a70c49
commit d628485e5d
3 changed files with 12 additions and 0 deletions
@@ -47,6 +47,8 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] =
"RTCEncodedVideoFrame",
"EncodedVideoChunk",
"PerformanceServerTiming",
"ReportBody",
"ReportingObserver",
"EventTarget",
"Event",
"CustomEvent",
@@ -328,6 +328,14 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::PerformanceServerTiming::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::ReportBody::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::ReportingObserver::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 1 },
},
ConstructorSpec {
interface: web_api_interfaces::External::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -97,6 +97,8 @@ interfaces! {
PerformanceEventTiming: PerformanceEntry;
PerformancePaintTiming: PerformanceEntry;
PerformanceServerTiming;
ReportBody;
ReportingObserver;
AbortController;
AbortSignal: EventTarget;
AbstractRange;