LibWeb: Parse and propagate the iframe sandbox attribute

This commit is contained in:
Luke Wilde 2024-12-06 14:53:03 +00:00 committed by Alexander Kalenik
commit 40bb50ac60
Notes: github-actions[bot] 2025-08-07 17:26:35 +00:00
51 changed files with 1155 additions and 12 deletions

View file

@ -293,7 +293,9 @@ bool is_scripting_enabled(JS::Realm const& realm)
if (!document.page().is_scripting_enabled())
return false;
// FIXME: Either settings's global object is not a Window object, or settings's global object's associated Document's active sandboxing flag set does not have its sandboxed scripts browsing context flag set.
// Either settings's global object is not a Window object, or settings's global object's associated Document's active sandboxing flag set does not have its sandboxed scripts browsing context flag set.
if (has_flag(document.active_sandboxing_flag_set(), SandboxingFlagSet::SandboxedScripts))
return false;
return true;
}