From bf69b6fea7c7eed2ba3b96e5c77573f25b7929ed Mon Sep 17 00:00:00 2001 From: jaymodi98 Date: Mon, 28 Oct 2019 17:21:45 -0400 Subject: Implement srcdoc support for iframes. --- components/script_traits/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/script_traits') diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 468cfb19fb3..1b1a0e80e65 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -163,6 +163,9 @@ pub struct LoadData { pub referrer: Option, /// The referrer policy. pub referrer_policy: Option, + + /// The source to use instead of a network response for a srcdoc document. + pub srcdoc: String, } /// The result of evaluating a javascript scheme url. @@ -194,6 +197,7 @@ impl LoadData { js_eval_result: None, referrer: referrer, referrer_policy: referrer_policy, + srcdoc: "".to_string(), } } } -- cgit v1.2.3