mirror of
https://github.com/lexmount/moli.git
synced 2026-11-24 08:02:58 +00:00
fix(webcodecs): deduplicate shell registration after main rebase
This commit is contained in:
@@ -145,10 +145,6 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] =
|
||||
"BroadcastChannel",
|
||||
"Notification",
|
||||
"ImageData",
|
||||
"MediaSourceHandle",
|
||||
"SourceBuffer",
|
||||
"SourceBufferList",
|
||||
"EncodedVideoChunk",
|
||||
"ImageBitmap",
|
||||
"ImageBitmapRenderingContext",
|
||||
"CanvasGradient",
|
||||
@@ -580,9 +576,7 @@ fn exposure_for_name(name: &str) -> ExposureSet {
|
||||
"ServiceWorkerContainer" => ExposureSet::WINDOW_ONLY,
|
||||
"ServiceWorker" => ExposureSet::WINDOW_AND_SERVICE_WORKER,
|
||||
"FileSystemSyncAccessHandle" => ExposureSet::DEDICATED_WORKER_ONLY,
|
||||
"RTCEncodedAudioFrame" | "RTCEncodedVideoFrame" | "EncodedVideoChunk" => {
|
||||
ExposureSet::WINDOW_AND_DEDICATED_WORKER
|
||||
}
|
||||
"RTCEncodedAudioFrame" | "RTCEncodedVideoFrame" => ExposureSet::WINDOW_AND_DEDICATED_WORKER,
|
||||
_ if WINDOW_AND_DEDICATED_WORKER_INTERFACE_NAMES.contains(&name) => {
|
||||
ExposureSet::WINDOW_AND_DEDICATED_WORKER
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::EncodedVideoChunk::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
kind: ConstructorKind::EncodedVideoChunk,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::LargestContentfulPaint::DESCRIPTOR,
|
||||
@@ -1260,14 +1260,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
|
||||
interface: web_api_interfaces::MediaCapabilities::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::VideoDecoder::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::VideoEncoder::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::Touch::DESCRIPTOR,
|
||||
kind: ConstructorKind::Touch,
|
||||
@@ -1599,10 +1591,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
|
||||
interface: web_api_interfaces::ImageBitmap::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::EncodedVideoChunk::DESCRIPTOR,
|
||||
kind: ConstructorKind::EncodedVideoChunk,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::RTCPeerConnection::DESCRIPTOR,
|
||||
kind: ConstructorKind::RtcPeerConnection,
|
||||
|
||||
Reference in New Issue
Block a user