mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:27:36 +00:00
LibWeb+Browser: Make ad blocking work in the multi-process world
We now send the list of content filters over to new WebContent processes after creating an OutOfProcessWebView. :^)
This commit is contained in:
parent
b0858b2a55
commit
a79bdd2bd5
8 changed files with 22 additions and 4 deletions
|
@ -472,4 +472,9 @@ String OutOfProcessWebView::dump_layout_tree()
|
|||
return client().dump_layout_tree();
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
|
||||
{
|
||||
client().async_set_content_filters(filters);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -51,6 +51,8 @@ public:
|
|||
|
||||
String dump_layout_tree();
|
||||
|
||||
void set_content_filters(Vector<String>);
|
||||
|
||||
void notify_server_did_layout(Badge<WebContentClient>, const Gfx::IntSize& content_size);
|
||||
void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id);
|
||||
void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, const Gfx::IntRect&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue