SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.45k stars 3.18k forks source link

Cherry-pick "LibWeb: Check for navigable destruction in declarative refresh timer" #24596

Closed nico closed 3 months ago

nico commented 3 months ago

If the Document's navigable has been destroyed since we started this timer, or it's no longer the active document of its navigable, we shouldn't navigate to it.

(cherry picked from commit 7b67fa706fd2dabfda3c72a752ac70d8c95bb060; amended commit message to say "LibWeb:" instead of "DOM:")


Cherry-picks https://github.com/LadybirdBrowser/ladybird/pull/69