mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Remove referrer policy from document (#34263)
* Remove the referrer policy from document and rely on its policy container Signed-off-by: Shane Handley <shanehandley@fastmail.com> * Make ReferrerPolicy non-optional, instead using a new enum value to represent the empty string case Signed-off-by: Shane Handley <shanehandley@fastmail.com> * Fix clippy issue Signed-off-by: Shane Handley <shanehandley@fastmail.com> * Fix usage of Option<ReferrerPolicy> in unit test Signed-off-by: Shane Handley <shanehandley@fastmail.com> --------- Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
parent
83f8e88818
commit
975e2ae859
108 changed files with 171 additions and 1509 deletions
|
@ -131,7 +131,7 @@ use media::{GLPlayerThreads, WindowGLContext};
|
|||
use net_traits::pub_domains::reg_host;
|
||||
use net_traits::request::{Referrer, RequestBuilder};
|
||||
use net_traits::storage_thread::{StorageThreadMsg, StorageType};
|
||||
use net_traits::{self, FetchResponseMsg, IpcSend, ResourceThreads};
|
||||
use net_traits::{self, FetchResponseMsg, IpcSend, ReferrerPolicy, ResourceThreads};
|
||||
use profile_traits::{mem, time};
|
||||
use script_layout_interface::{LayoutFactory, ScriptThreadFactory};
|
||||
use script_traits::CompositorEvent::{MouseButtonEvent, MouseMoveEvent};
|
||||
|
@ -1413,7 +1413,7 @@ where
|
|||
url,
|
||||
None,
|
||||
Referrer::NoReferrer,
|
||||
None,
|
||||
ReferrerPolicy::EmptyString,
|
||||
None,
|
||||
);
|
||||
let ctx_id = BrowsingContextId::from(top_level_browsing_context_id);
|
||||
|
@ -3033,7 +3033,7 @@ where
|
|||
url,
|
||||
None,
|
||||
Referrer::NoReferrer,
|
||||
None,
|
||||
ReferrerPolicy::EmptyString,
|
||||
None,
|
||||
);
|
||||
let sandbox = IFrameSandboxState::IFrameUnsandboxed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue