diff options
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r-- | components/script/document_loader.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index 122b732cd65..2d369697303 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -164,10 +164,9 @@ impl DocumentLoader { } pub fn is_only_blocked_by_iframes(&self) -> bool { - self.blocking_loads.iter().all(|load| match *load { - LoadType::Subframe(_) => true, - _ => false, - }) + self.blocking_loads + .iter() + .all(|load| matches!(*load, LoadType::Subframe(_))) } pub fn inhibit_events(&mut self) { |