Apply the daemon's current `blocklist` to the persistent session via `Network.setBlockedURLs`. Patterns are Chrome-style globs (e.g. `*.png`). Falls back silently if no persistent session is active (e.g. during daemon startup or after a target switch that hasn't finished attaching).
(&mut self)
| 375 | /// Falls back silently if no persistent session is active (e.g. during |
| 376 | /// daemon startup or after a target switch that hasn't finished attaching). |
| 377 | pub async fn apply_network_rules(&mut self) -> Result<()> { |
| 378 | if let Some(ref session) = self.persistent_session.clone() { |
| 379 | self.apply_network_rules_internal(session).await?; |
| 380 | } |
| 381 | Ok(()) |
| 382 | } |
| 383 | |
| 384 | /// Apply the current `blocklist` to a specific session via |
| 385 | /// `Network.setBlockedURLs`. Used for both the persistent session and |
no test coverage detected