LibWeb/HTML: Assume WorkerGlobalScope runs in a SecureContext

As a stopgap until we have things wired up fully, consider
WorkerGlobalScope as a SecureContext so that IDL marked with
[SecureContext] is still exposed.
This commit is contained in:
Shannon Booth
2026-02-14 22:20:39 +01:00
committed by Shannon Booth
parent 05c785b081
commit 00911a8b01
Notes: github-actions[bot] 2026-02-14 22:24:14 +00:00

View File

@@ -556,6 +556,8 @@ bool is_secure_context(Environment const& environment)
if (is<WorkerGlobalScope>(global)) {
// FIXME: 1. If global's owner set[0]'s relevant settings object is a secure context, then return true.
// NOTE: We only need to check the 0th item since they will necessarily all be consistent.
if (true)
return true;
// 2. Return false.
return false;