mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Set referrer policy on navigation fetch requests
This commit is contained in:
committed by
Shannon Booth
parent
1df792ddbd
commit
1022ec3b4a
Notes:
github-actions[bot]
2026-01-12 11:48:37 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1022ec3b4ab Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7437 Reviewed-by: https://github.com/shannonbooth ✅
@@ -1110,6 +1110,7 @@ static void create_navigation_params_by_fetching(GC::Ptr<SessionHistoryEntry> en
|
||||
request->set_replaces_client_id(active_document.relevant_settings_object().id);
|
||||
request->set_mode(Fetch::Infrastructure::Request::Mode::Navigate);
|
||||
request->set_referrer(entry->document_state()->request_referrer());
|
||||
request->set_referrer_policy(entry->document_state()->request_referrer_policy());
|
||||
request->set_policy_container(source_snapshot_params.source_policy_container);
|
||||
|
||||
// 4. If navigable is a top-level traversable, then set request's top-level navigation initiator origin to entry's
|
||||
|
||||
Reference in New Issue
Block a user