feat(webidl): expose reporting interface shells

This commit is contained in:
ldm0
2026-11-24 14:36:22 +08:00
parent eb7ce49711
commit e025dfc147
3 changed files with 13 additions and 1 deletions
@@ -56,6 +56,8 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] =
"RTCEncodedVideoFrame",
"EncodedVideoChunk",
"PerformanceServerTiming",
"ReportBody",
"ReportingObserver",
"EventTarget",
"Event",
"CustomEvent",
@@ -372,6 +372,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,
+3 -1
View File
@@ -97,6 +97,8 @@ interfaces! {
PerformanceEventTiming: PerformanceEntry;
PerformancePaintTiming: PerformanceEntry;
PerformanceServerTiming;
ReportBody;
ReportingObserver;
AbortController;
AbortSignal: EventTarget;
AbstractRange;
@@ -556,7 +558,7 @@ interfaces! {
ReadableStreamBYOBRequest;
ReadableStreamDefaultController;
ReadableStreamDefaultReader;
ReportBody;
Request;
ResizeObserver;