1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:17:34 +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:
Andreas Kling 2021-09-27 11:39:17 +02:00
parent b0858b2a55
commit a79bdd2bd5
8 changed files with 22 additions and 4 deletions

View file

@ -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);
}
}

View file

@ -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&);