mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00: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
Notes:
github-actions[bot]
2024-10-09 21:59:48 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/2156de71729 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1674 Reviewed-by: https://github.com/shannonbooth
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ void Internals::spoof_current_url(String const& url_string)
|
||||||
auto& window = internals_window();
|
auto& window = internals_window();
|
||||||
window.associated_document().set_url(url);
|
window.associated_document().set_url(url);
|
||||||
window.associated_document().set_origin(origin);
|
window.associated_document().set_origin(origin);
|
||||||
|
HTML::relevant_settings_object(window.associated_document()).creation_url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
JS::NonnullGCPtr<InternalAnimationTimeline> Internals::create_internal_animation_timeline()
|
JS::NonnullGCPtr<InternalAnimationTimeline> Internals::create_internal_animation_timeline()
|
||||||
|
|
Loading…
Reference in a new issue