mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Set Cookie header on <img> and <object> resource requests
This required passing a reference to the owning HTML*Element to ImageLoader, the same way that CSSLoader has a reference to its owner.
This commit is contained in:
committed by
Andreas Kling
parent
347838a240
commit
0cacc52990
@@ -38,6 +38,7 @@ namespace Web::HTML {
|
||||
|
||||
HTMLImageElement::HTMLImageElement(DOM::Document& document, QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
, m_image_loader(*this)
|
||||
{
|
||||
m_image_loader.on_load = [this] {
|
||||
this->document().update_layout();
|
||||
|
||||
Reference in New Issue
Block a user