feat(webidl): expose secure Web Locks interface shells

This commit is contained in:
ldm0
2026-11-24 14:36:21 +08:00
parent 3c793375a0
commit 165341c7e3
2 changed files with 12 additions and 0 deletions
@@ -34,6 +34,8 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] =
"DOMQuad",
"DOMMatrixReadOnly",
"DOMMatrix",
"Lock",
"LockManager",
"EventTarget",
"Event",
"CustomEvent",
@@ -200,6 +202,8 @@ const SECURE_CONTEXT_ONLY_INTERFACE_NAMES: &[&str] = &[
"MediaDeviceInfo",
"InputDeviceInfo",
"CredentialsContainer",
"Lock",
"LockManager",
"Worklet",
"AudioWorklet",
"ServiceWorker",
@@ -88,6 +88,14 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::CredentialsContainer::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::Lock::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::LockManager::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::External::DESCRIPTOR,
kind: ConstructorKind::Illegal,