diff --git a/components/script/script_module.rs b/components/script/script_module.rs index 13171db65ce7..c6b7f4814c12 100644 --- a/components/script/script_module.rs +++ b/components/script/script_module.rs @@ -280,7 +280,9 @@ impl ModuleTree { } pub fn remove_incomplete_fetch_url(&self, dependency: ServoUrl) { - self.incomplete_fetch_urls.borrow_mut().remove(&dependency); + self.incomplete_fetch_urls + .borrow_mut() + .shift_remove(&dependency); } /// recursively checks if all of the transitive descendants are