From 23d683cf6ba9e1e568516d730681421786098b00 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sun, 21 Apr 2024 11:18:35 +0200 Subject: [PATCH] LibWeb: Update document url after same-document back/forward navigation Seems like a specification bug, but other browsers update url before popstate event is fired and so should we. Fixes back/forward navigation on GitHub. --- Tests/LibWeb/Text/data/iframe-popstate-event.html | 6 ++++-- .../Text/expected/navigation/history-popstate-event.txt | 2 +- Userland/Libraries/LibWeb/DOM/Document.cpp | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Tests/LibWeb/Text/data/iframe-popstate-event.html b/Tests/LibWeb/Text/data/iframe-popstate-event.html index d2ec29fdb6b..24ea968ac29 100644 --- a/Tests/LibWeb/Text/data/iframe-popstate-event.html +++ b/Tests/LibWeb/Text/data/iframe-popstate-event.html @@ -1,8 +1,10 @@