diff options
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r-- | components/script/document_loader.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index 9fa1f251dbc..6761f175a3f 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -141,6 +141,13 @@ impl DocumentLoader { !self.blocking_loads.is_empty() } + pub fn is_only_blocked_by_iframes(&self) -> bool { + self.blocking_loads.iter().all(|load| match *load { + LoadType::Subframe(_) => true, + _ => false + }) + } + pub fn inhibit_events(&mut self) { self.events_inhibited = true; } |