Skip to content

Commit b750843

Browse files
committed
LibWeb: Remove assertion in HTMLImageElement::resource_did_load()
We might end up here with a non-null decoder if the Resource fires load callbacks again for the resource. It's harmless since we'll just get the same decoder again.
1 parent ffae239 commit b750843

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Libraries/LibWeb/DOM/HTMLImageElement.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ void HTMLImageElement::resource_did_load()
7070

7171
dbg() << "HTMLImageElement: Resource did load, encoded data looks tasty: " << this->src();
7272

73-
ASSERT(!m_image_decoder);
7473
m_image_decoder = resource()->ensure_decoder();
7574

7675
if (m_image_decoder->is_animated() && m_image_decoder->frame_count() > 1) {

0 commit comments

Comments
 (0)