LibWeb: Remove "locked for focus" concept

Corresponds to 5ba23f9f6d
This commit is contained in:
Sam Atkins 2025-04-11 16:15:50 +01:00 committed by Andreas Kling
commit 609d568776
Notes: github-actions[bot] 2025-04-18 09:08:31 +00:00
3 changed files with 4 additions and 20 deletions

View file

@ -3490,10 +3490,7 @@ bool Document::allow_focus() const
if (is_allowed_to_use_feature(PolicyControlledFeature::FocusWithoutUserActivation))
return true;
// FIXME: 2. If any of the following are true:
// - target's relevant global object has transient user activation; or
// - target's node navigable's container, if any, is marked as locked for focus,
// then return true.
// FIXME: 2. If target's relevant global object has transient activation, then return true.
// 3. Return false.
return false;