From 7633cab63a0080350b3883a7fed045d3b9d83a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Mon, 14 Jan 2019 22:50:06 +0100 Subject: [PATCH] Terminate poster frame load blocker before blocking again --- components/script/dom/htmlvideoelement.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index 197ec53ae7b4..e8c831221d0b 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -179,6 +179,7 @@ impl HTMLVideoElement { // (which triggers no media load algorithm unless a explicit call to .load() is done) // will block the document's load event forever. let mut blocker = self.load_blocker.borrow_mut(); + LoadBlocker::terminate(&mut *blocker); *blocker = Some(LoadBlocker::new( &document_from_node(self), LoadType::Image(poster_url.clone()),