This is an attempt to fix the hanging CI on macOS caused by some screenshot requests being stuck unprocessed. With this change, we at least make sure that the HTML event loop processing, which triggers repainting, will happen as long as there are navigables that need to be repainted.
(cherry picked from commit 72b4d44d07e12cc04bde90872e2f31aaab64aa00)
This is an attempt to fix the hanging CI on macOS caused by some screenshot requests being stuck unprocessed. With this change, we at least make sure that the HTML event loop processing, which triggers repainting, will happen as long as there are navigables that need to be repainted.
(cherry picked from commit 72b4d44d07e12cc04bde90872e2f31aaab64aa00)
--
Cherry-picks https://github.com/LadybirdBrowser/ladybird/pull/361