mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibWeb/HTML: Implement WorkerGlobalScope::cross_origin_isolated()
This commit is contained in:
parent
ed15c34387
commit
b118cc782e
1 changed files with 1 additions and 3 deletions
|
@ -124,9 +124,7 @@ bool WorkerGlobalScope::is_secure_context() const
|
|||
bool WorkerGlobalScope::cross_origin_isolated() const
|
||||
{
|
||||
// The crossOriginIsolated getter steps are to return this's relevant settings object's cross-origin isolated capability.
|
||||
// FIXME: Is this the same thing as https://html.spec.whatwg.org/multipage/workers.html#concept-workerglobalscope-cross-origin-isolated-capability?
|
||||
// "A WorkerGlobalScope object has an associated cross-origin isolated capability boolean. It is initially false."
|
||||
return m_cross_origin_isolated_capability;
|
||||
return relevant_settings_object(*this).cross_origin_isolated_capability() == CanUseCrossOriginIsolatedAPIs::Yes;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue