mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb: Fill-in some fixmes around sandboxing flag sets
...Including a couple of steps in obtain_a_browsing_context_to_use_for_a_navigation_response() which didn't have FIXMEs. No apparent changes on WPT.
This commit is contained in:
parent
2c7e730726
commit
310cdc35f0
Notes:
github-actions[bot]
2024-11-26 10:00:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: 310cdc35f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2575
5 changed files with 28 additions and 6 deletions
|
@ -183,8 +183,10 @@ static GC::Ref<HTML::BrowsingContext> obtain_a_browsing_context_to_use_for_a_nav
|
|||
VERIFY(navigation_coop.value == HTML::OpenerPolicyValue::UnsafeNone);
|
||||
|
||||
// 2. Assert: newBrowsingContext's popup sandboxing flag set is empty.
|
||||
VERIFY(is_empty(new_browsing_context->popup_sandboxing_flag_set()));
|
||||
|
||||
// 3. Set newBrowsingContext's popup sandboxing flag set to a clone of sandboxFlags.
|
||||
new_browsing_context->set_popup_sandboxing_flag_set(sandbox_flags);
|
||||
}
|
||||
|
||||
// 6. Return newBrowsingContext.
|
||||
|
@ -3215,6 +3217,11 @@ HTML::SandboxingFlagSet Document::active_sandboxing_flag_set() const
|
|||
return m_active_sandboxing_flag_set;
|
||||
}
|
||||
|
||||
void Document::set_active_sandboxing_flag_set(HTML::SandboxingFlagSet sandboxing_flag_set)
|
||||
{
|
||||
m_active_sandboxing_flag_set = sandboxing_flag_set;
|
||||
}
|
||||
|
||||
HTML::PolicyContainer Document::policy_container() const
|
||||
{
|
||||
return m_policy_container;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue