Skip to content

Commit

Permalink
Terminate poster frame load blocker before blocking again
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Jan 14, 2019
1 parent fde7d45 commit 7633cab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/script/dom/htmlvideoelement.rs
Expand Up @@ -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()),
Expand Down

0 comments on commit 7633cab

Please sign in to comment.