mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-09 01:29:43 +00:00
LibWeb: Parse and propagate the iframe sandbox attribute
This commit is contained in:
parent
a5e2fd2e12
commit
40bb50ac60
Notes:
github-actions[bot]
2025-08-07 17:26:35 +00:00
Author: https://github.com/Lubrsi
Commit: 40bb50ac60
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5765
51 changed files with 1155 additions and 12 deletions
|
@ -33,6 +33,8 @@ public:
|
|||
|
||||
GC::Ref<DOM::DOMTokenList> sandbox();
|
||||
|
||||
SandboxingFlagSet iframe_sandboxing_flag_set() const { return m_iframe_sandboxing_flag_set; }
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
|
@ -64,6 +66,9 @@ private:
|
|||
Optional<HighResolutionTime::DOMHighResTimeStamp> m_pending_resource_start_time = {};
|
||||
|
||||
GC::Ptr<DOM::DOMTokenList> m_sandbox;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#iframe-sandboxing-flag-set
|
||||
SandboxingFlagSet m_iframe_sandboxing_flag_set {};
|
||||
};
|
||||
|
||||
void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue