mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Stop deadlocking on unit tests
Unit tests on macOS deadlock because the WebContent process is waiting for the next opportunity to render before a screenshot is taken. For some reason unknown to myself, this opportunity never arrives. In order to not deadlock, screenshot requests are now also processed separately from rendering.
This commit is contained in:
parent
7de669dc07
commit
31698281b6
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/vicr123 🔰
Commit: 31698281b6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/386
Reviewed-by: https://github.com/kalenikaliaksandr ✅
Reviewed-by: https://github.com/nico
6 changed files with 18 additions and 1 deletions
|
@ -76,6 +76,7 @@ public:
|
|||
virtual CSS::PreferredMotion preferred_motion() const override { return m_host_page->client().preferred_motion(); }
|
||||
virtual void request_file(FileRequest) override { }
|
||||
virtual void paint_next_frame() override { }
|
||||
virtual void process_screenshot_requests() override { }
|
||||
virtual void paint(DevicePixelRect const&, Painting::BackingStore&, Web::PaintOptions = {}) override { }
|
||||
virtual void schedule_repaint() override { }
|
||||
virtual bool is_ready_to_paint() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue