mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Read the content blocking rules and make them available to the HTTP loader.
This commit is contained in:
parent
19b1cb4f07
commit
50fea8554e
7 changed files with 66 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
use about_loader;
|
||||
use chrome_loader;
|
||||
use connector::{Connector, create_http_connector};
|
||||
use content_blocker::BLOCKED_CONTENT_RULES;
|
||||
use cookie;
|
||||
use cookie_storage::CookieStorage;
|
||||
use data_loader;
|
||||
|
@ -453,7 +454,8 @@ impl CoreResourceManager {
|
|||
let http_state = HttpState {
|
||||
hsts_list: self.hsts_list.clone(),
|
||||
cookie_jar: self.cookie_jar.clone(),
|
||||
auth_cache: self.auth_cache.clone()
|
||||
auth_cache: self.auth_cache.clone(),
|
||||
blocked_content: BLOCKED_CONTENT_RULES.clone(),
|
||||
};
|
||||
http_loader::factory(self.user_agent.clone(),
|
||||
http_state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue