mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
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:
committed by
Shannon Booth
parent
05c785b081
commit
00911a8b01
Notes:
github-actions[bot]
2026-02-14 22:24:14 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/00911a8b011 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7958
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user