aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorMatthias Deiml <matthias@deiml.net>2020-06-15 18:44:59 +0200
committerMatthias Deiml <matthias@deiml.net>2020-06-17 19:07:14 +0200
commitfa18cf620f1c271bee8808026ab40ffbaa11aee6 (patch)
treeb5f1aa3518bf1c21dca0c43cf1299ee9e3ad7d4e /components/script_traits/lib.rs
parent37394a892c79d6edbef868d6451710648669cc1c (diff)
downloadservo-fa18cf620f1c271bee8808026ab40ffbaa11aee6.tar.gz
servo-fa18cf620f1c271bee8808026ab40ffbaa11aee6.zip
Make url for "client" referrer mandatory
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index b3e92cbce21..d50f34ed554 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -176,7 +176,7 @@ pub struct LoadData {
/// The result of evaluating a javascript scheme url.
pub js_eval_result: Option<JsEvalResult>,
/// The referrer.
- pub referrer: Option<Referrer>,
+ pub referrer: Referrer,
/// The referrer policy.
pub referrer_policy: Option<ReferrerPolicy>,
@@ -200,7 +200,7 @@ impl LoadData {
load_origin: LoadOrigin,
url: ServoUrl,
creator_pipeline_id: Option<PipelineId>,
- referrer: Option<Referrer>,
+ referrer: Referrer,
referrer_policy: Option<ReferrerPolicy>,
) -> LoadData {
LoadData {