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:
Victor Tran 2024-07-03 22:12:28 +10:00 committed by Alexander Kalenik
commit 31698281b6
Notes: sideshowbarker 2024-07-17 21:16:31 +09:00
6 changed files with 18 additions and 1 deletions

View file

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