LibWeb: Support the X-Frame-Options header

Navigation responses are now checked for adherence to the
`X-Frame-Options` header and an error is shown accordingly.
This commit is contained in:
Glenn Skrzypczak
2024-12-05 00:33:35 +01:00
committed by Tim Ledbetter
parent 88884c370c
commit 156f9fff32
5 changed files with 88 additions and 3 deletions

View File

@@ -757,6 +757,8 @@ public:
bool css_styling_flag() const { return m_css_styling_flag; }
void set_css_styling_flag(bool flag) { m_css_styling_flag = flag; }
GC::Ptr<DOM::Document> container_document() const;
protected:
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;