mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
25516e351e
commit
2156de7172
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user