mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb/HTML: Implement WorkerGlobalScope::cross_origin_isolated()
This commit is contained in:
parent
ed15c34387
commit
b118cc782e
Notes:
sideshowbarker
2024-07-17 00:47:29 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/b118cc782e Pull-request: https://github.com/SerenityOS/serenity/pull/17734 Reviewed-by: https://github.com/ADKaster
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…
Reference in a new issue