diff --git a/Tests/LibWeb/Text/expected/HTML/pageshow-event-istrusted.txt b/Tests/LibWeb/Text/expected/HTML/pageshow-event-istrusted.txt
new file mode 100644
index 0000000000..7ef22e9a43
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/HTML/pageshow-event-istrusted.txt
@@ -0,0 +1 @@
+PASS
diff --git a/Tests/LibWeb/Text/input/HTML/pageshow-event-istrusted.html b/Tests/LibWeb/Text/input/HTML/pageshow-event-istrusted.html
new file mode 100644
index 0000000000..bb8a89c344
--- /dev/null
+++ b/Tests/LibWeb/Text/input/HTML/pageshow-event-istrusted.html
@@ -0,0 +1,14 @@
+
+
+
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp
index 73af7d4d4c..795484b7a2 100644
--- a/Userland/Libraries/LibWeb/HTML/Window.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Window.cpp
@@ -423,6 +423,9 @@ void Window::fire_a_page_transition_event(FlyString const& event_name, bool pers
// the bubbles attribute initialized to true,
event->set_bubbles(true);
+ // isTrusted is a convenience that indicates whether an event is dispatched by the user agent (as opposed to using dispatchEvent())
+ event->set_is_trusted(true);
+
// and legacy target override flag set.
dispatch_event(event);
}