LibWeb: Spoof the ESO's creation url in tests

This is necessary when we add more ServiceWorker capabilities, that
actually check this value. The more this spoof functionality is used,
the more we'll need to actually support serving test files over https.
This commit is contained in:
Andrew Kaster 2024-10-07 20:16:21 -06:00 committed by Andrew Kaster
parent 25516e351e
commit 2156de7172
Notes: github-actions[bot] 2024-10-09 21:59:48 +00:00

View file

@ -148,6 +148,7 @@ void Internals::spoof_current_url(String const& url_string)
auto& window = internals_window();
window.associated_document().set_url(url);
window.associated_document().set_origin(origin);
HTML::relevant_settings_object(window.associated_document()).creation_url = url;
}
JS::NonnullGCPtr<InternalAnimationTimeline> Internals::create_internal_animation_timeline()